Skip to content

Commit

Permalink
Fix a -Wx-partial warning with GHC 9.8+
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Feb 8, 2024
1 parent b9d0e77 commit 3c19f85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Language/Bluespec/Classic/AST/Id.hs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ mkId pos fs =
mkQId :: Position -> FString -> FString -> Id
mkQId pos mfs fs
| fs == fsEmpty = Id pos fsEmpty fsEmpty []
| isDigit (head (getFString fs)) = Id pos fsEmpty fs [] -- XXX
| fHead:_ <- getFString fs
, isDigit fHead = Id pos fsEmpty fs [] -- XXX
| otherwise = Id pos mfs fs []

ppConId :: PDetail -> Id -> Doc
Expand Down

0 comments on commit 3c19f85

Please sign in to comment.