Sometimes space around tokens matters a lot. Take Haskell dot for example.
This proposal is to add a parameter to makeTokenParser
|
makeTokenParser :: (Stream s m Char) |
|
=> GenLanguageDef s u m -> GenTokenParser s u m |
|
{-# INLINABLE makeTokenParser #-} |
|
makeTokenParser languageDef |
which would explicitly specify lexeme options:
- consume trailing space
- do not consume trailing space
Sometimes space around tokens matters a lot. Take Haskell dot for example.
This proposal is to add a parameter to
makeTokenParserparsec/src/Text/Parsec/Token.hs
Lines 358 to 361 in 38dfc54
which would explicitly specify lexeme options: