Add Functor, Applicative, Monad, and Monoid instances for ParseResult
In the haskell-src package, add the following instances to !ParseResult:
instance Functor ParseResult
instance Applicative ParseResult
instance Monad ParseResult
instance Monoid m => Monoid (ParseResult m)
This makes it more convenient to traverse and modify a syntax tree that is the result of the parser.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries (other) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |