mirror of
https://github.com/sdiehl/write-you-a-haskell.git
synced 2024-08-17 07:30:24 +03:00
Let (<|>) (which equals option) return all parses of the succeeding parser, as seems to be implied by the description in the chapter on Parsing. Example: parse (empty <|> ((unit 'a') `combine` (unit 'b'))) "" |
||
---|---|---|
.. | ||
calc | ||
parsec.hs |