diff options
| author | Andreas Källberg <anka.213@gmail.com> | 2020-08-05 16:20:35 +0200 |
|---|---|---|
| committer | Andreas Källberg <anka.213@gmail.com> | 2020-08-05 18:48:24 +0200 |
| commit | 251845f83ea52965b5205fd231ffa2c87bb34de6 (patch) | |
| tree | 66b22f4370f09b673a44607ed1b0cc1294a2f74e /src/runtime/haskell | |
| parent | deddde953f9e9b71e35a80bb29af0ce81e1dc6d0 (diff) | |
First attempt at fixing incompabilities with newer cabal
Diffstat (limited to 'src/runtime/haskell')
| -rw-r--r-- | src/runtime/haskell/Data/Binary/Get.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/haskell/Data/Binary/Get.hs b/src/runtime/haskell/Data/Binary/Get.hs index 6e98434f5..01561d7d9 100644 --- a/src/runtime/haskell/Data/Binary/Get.hs +++ b/src/runtime/haskell/Data/Binary/Get.hs @@ -101,6 +101,10 @@ import GHC.Word --import GHC.Int #endif +-- Control.Monad.Fail import will become redundant in GHC 8.8+ +import qualified Control.Monad.Fail as Fail + + -- | The parse state data S = S {-# UNPACK #-} !B.ByteString -- current chunk L.ByteString -- the rest of the input @@ -126,6 +130,11 @@ instance Monad Get where (a, s') -> unGet (k a) s') {-# INLINE (>>=) #-} +#if !(MIN_VERSION_base(4,13,0)) + fail = failDesc +#endif + +instance Fail.MonadFail Get where fail = failDesc instance MonadFix Get where |
