We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8c540 commit 08277bdCopy full SHA for 08277bd
src/Language/Bluespec/Classic/AST/Id.hs
@@ -146,7 +146,8 @@ mkId pos fs =
146
mkQId :: Position -> FString -> FString -> Id
147
mkQId pos mfs fs
148
| fs == fsEmpty = Id pos fsEmpty fsEmpty []
149
- | isDigit (head (getFString fs)) = Id pos fsEmpty fs [] -- XXX
+ | fHead:_ <- getFString fs
150
+ , isDigit fHead = Id pos fsEmpty fs [] -- XXX
151
| otherwise = Id pos mfs fs []
152
153
ppConId :: PDetail -> Id -> Doc
0 commit comments