haskell / haskell/parsec

add a parameter to makeTokenParser to specify options for treating space by lexeme

Open
#131 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
892
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Sometimes space around tokens matters a lot. Take Haskell dot for example.

This proposal is to add a parameter to `makeTokenParser`

https://github.com/haskell/parsec/blob/38dfc545874dd44c26382d8dd692eb533396c6f5/src/Text/Parsec/Token.hs#L358-L361

which would explicitly specify lexeme options:
- consume trailing space
- do not consume trailing space

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.