#3290: Add Functor, Applicative, Monad, and Monoid instances for ParseResult
-----------------------------+----------------------------------------------
Reporter:  YitzGale          |          Owner:                   
    Type:  proposal          |         Status:  new              
Priority:  normal            |      Component:  libraries (other)
 Version:  6.10.3            |       Severity:  normal           
Keywords:  haskell-src       |       Testcase:                   
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple 
-----------------------------+----------------------------------------------
 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3290>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to