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

#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

#12481: Add MonadFail instance for Either String -------------------------------------+------------------------------------- Reporter: hesiod | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Core Libraries | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by hesiod): I just realized that this instance has already been mentioned in https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail, not in `base` however, but rather in `transformers`. I'm not quite sure why having that instance in `transformers` would be better, since it would make it an orphan. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12481#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12481: Add MonadFail instance for Either String -------------------------------------+------------------------------------- Reporter: hesiod | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: Core Libraries | Version: Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by hesiod): * status: new => closed * resolution: => duplicate Comment: Nevermind, this is a duplicate of #12160. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12481#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC