fix newer ghc: Don't try to be backwards compatible

This commit is contained in:
Andreas Källberg
2020-08-05 16:51:24 +02:00
parent 251845f83e
commit b8812b54b2
4 changed files with 6 additions and 37 deletions

View File

@@ -69,6 +69,8 @@ instance Monad (BacktrackM s) where
return a = BM (\c s b -> c a s b)
BM m >>= k = BM (\c s b -> m (\a s b -> unBM (k a) c s b) s b)
where unBM (BM m) = m
instance MonadFail (BacktrackM s) where
fail _ = mzero
instance Functor (BacktrackM s) where