forked from GitHub/gf-core
Use isAlpha instead of isLetter to compile with GHC 6.4. Reported by moises.
This commit is contained in:
@@ -28,7 +28,7 @@ pTerm n = skipSpaces >> (pParen <++ pApp <++ pNum <++ pStr <++ pMeta)
|
|||||||
return (AInt (read x)))
|
return (AInt (read x)))
|
||||||
pMeta = char '?' >> return AMet
|
pMeta = char '?' >> return AMet
|
||||||
pIdent = liftM CId $ liftM2 (:) (satisfy isIdentFirst) (munch isIdentRest)
|
pIdent = liftM CId $ liftM2 (:) (satisfy isIdentFirst) (munch isIdentRest)
|
||||||
isIdentFirst c = c == '_' || isLetter c
|
isIdentFirst c = c == '_' || isAlpha c
|
||||||
isIdentRest c = c == '_' || c == '\'' || isAlphaNum c
|
isIdentRest c = c == '_' || c == '\'' || isAlphaNum c
|
||||||
|
|
||||||
-- Parser combinators with only left-biased choice
|
-- Parser combinators with only left-biased choice
|
||||||
|
|||||||
Reference in New Issue
Block a user