Skip to content

Commit

Permalink
Follow-up to 889dd2e
Browse files Browse the repository at this point in the history
  • Loading branch information
hvr committed Jan 15, 2019
1 parent 2e93788 commit c3c29a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Cabal/Distribution/Compat/MonadFail.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cabal/Distribution/Parsec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3c29a4

Please sign in to comment.