| License | BSD3 |
|---|---|
| Maintainer | tbidne@gmail.com |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Common.Parsing.ParseErr
Description
Provides the ParseErr monoid.
Documentation
ParseErr describes an error encountered while parsing.
Errors are either a request for Help or some general error.
The algebra for ParseErr satisfies
1. Identity:Err"" 2.Helpis an ideal:Helpx <>Erry ==Helpx ==Erry <>Helpx 3. Left-biased: l <> r == l, when it doesn't violate 1 or 2.
Strictly speaking property 2 is stronger than saying Help is an ideal.
More precisely, the action by Err on Help in ParseErr is trivial.