Commit c3c29a49 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺

Follow-up to 889dd2e8

parent 2e937887
......@@ -2,7 +2,9 @@
-- | Compatibility layer for "Control.Monad.Fail"
module Distribution.Compat.MonadFail ( MonadFail(fail) ) where
#if __GLASGOW_HASKELL__ >= 800
#if MIN_VERSION_base(4,13,0)
import Prelude (MonadFail(fail))
#elif MIN_VERSION_base(4,9,0)
-- provided by base-4.9.0.0 and later
import Control.Monad.Fail (MonadFail(fail))
#else
......
......@@ -74,7 +74,7 @@ class Parsec a where
--
-- * knows @cabal-version@ we work with
--
class (P.CharParsing m, MonadPlus m) => CabalParsing m where
class (P.CharParsing m, MonadPlus m, Fail.MonadFail m) => CabalParsing m where
parsecWarning :: PWarnType -> String -> m ()
parsecHaskellString :: m String
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment