Skip to content

Commit deaae6e

Browse files
committed
Remove fail from default_typeclass test
This was added when we copied in StateT from MTL, but we don't actually use it. Since the MonadFail Proposal was finished in GHC 8.8.1, it now breaks compiling, so remove it.
1 parent 1e7af95 commit deaae6e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/default_typeclass.x

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ instance (Monad m) => Monad (StateT s m) where
285285
m >>= k = StateT $ \s -> do
286286
(a, s') <- runStateT m s
287287
runStateT (k a) s'
288-
fail str = StateT $ \_ -> fail str
289288

290289
-- | Fetch the current value of the state within the monad.
291290
get' :: (Monad m) => StateT s m s

0 commit comments

Comments
 (0)