[GHC] #12481: Add MonadFail instance for Either String

GHC ghc-devs at haskell.org
Thu Aug 11 17:23:01 UTC 2016


#12481: Add MonadFail instance for Either String
-------------------------------------+-------------------------------------
           Reporter:  hesiod         |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:  Core           |           Version:
  Libraries                          |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Other
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 There seems to be the low hanging fruit of a MonadFail instance for Either
 String.

 {{{#!hs
 instance MonadFail (Either String) where
     fail = Left
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12481>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list