[GHC] #12160: MonadFail instance for (Either String)?

GHC ghc-devs at haskell.org
Wed Jun 8 01:09:02 UTC 2016


#12160: MonadFail instance for (Either String)?
-------------------------------------+-------------------------------------
        Reporter:  lexi.lambda       |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  libraries         |              Version:  8.0.1
  (other)                            |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by lexi.lambda):

 Ah, that’s a good point, though I don’t think I agree with it. I’m
 imagining `text` defining a `MonadFail (Either Text)` instance, for
 example, and it seems like it wouldn’t be all that worth it to prevent
 that kind of instance just to help out type inference in a couple cases.

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


More information about the ghc-tickets mailing list