Skip to content

Commit 08277bd

Browse files
committed
Fix a -Wx-partial warning with GHC 9.8+
1 parent 1f8c540 commit 08277bd

File tree

1 file changed

+2
-1
lines changed
  • src/Language/Bluespec/Classic/AST

1 file changed

+2
-1
lines changed

src/Language/Bluespec/Classic/AST/Id.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ mkId pos fs =
146146
mkQId :: Position -> FString -> FString -> Id
147147
mkQId pos mfs fs
148148
| fs == fsEmpty = Id pos fsEmpty fsEmpty []
149-
| isDigit (head (getFString fs)) = Id pos fsEmpty fs [] -- XXX
149+
| fHead:_ <- getFString fs
150+
, isDigit fHead = Id pos fsEmpty fs [] -- XXX
150151
| otherwise = Id pos mfs fs []
151152

152153
ppConId :: PDetail -> Id -> Doc

0 commit comments

Comments
 (0)