this post was submitted on 12 Jul 2023
2 points (100.0% liked)

Haskell

65 readers
3 users here now

**The Haskell programming language community.** Daily news and info about all things Haskell related: practical stuff, theory, types, libraries, jobs, patches, releases, events and conferences and more... ### Links - Get Started with Haskell

founded 1 year ago
 

How is error information combined when parsers are combined? For example, using <|> to combine parsers, I would expect the set of expected characters for an error to be the union of the sets of expected characters from the individual parsers. (I'm finding it hard to pin down the behaviour of <|> or even to find the relevant source code.)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

I tried a simple example and it seems to work the way I expected.