Closed jeffhappily closed 4 years ago
In GHC 8.8.1, fail has been removed from Monad in favor of the fail method in MonadFail class. https://downloads.haskell.org/~ghc/8.8.1/docs/html/users_guide/8.8.1-notes.html#base-library
fail
Monad
MonadFail
So with GHC 8.8.1 or later, all usage of fail in RIO will fail due to (RIO env) not having an instance of MonadFail
RIO
(RIO env)
Could not deduce (MonadFail (RIO env)) arising from a use of ‘fail’
Should this be added in?
No, it makes it too easy to accidentally introduce partial pattern matches.
In GHC 8.8.1,
fail
has been removed fromMonad
in favor of thefail
method inMonadFail
class. https://downloads.haskell.org/~ghc/8.8.1/docs/html/users_guide/8.8.1-notes.html#base-librarySo with GHC 8.8.1 or later, all usage of
fail
inRIO
will fail due to(RIO env)
not having an instance ofMonadFail
Should this be added in?