Skip to content

Commit a474d77

Browse files
Anton-Latukhaali-abrar
authored andcommitted
load Control.Monad.Fail if GHC < 8.8
1 parent 4aa5dcd commit a474d77

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/Nix/Fresh/Stable.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import Nix.Effects
1414
import Nix.Render
1515
import Nix.Thunk
1616
import Nix.Thunk.StableId
17+
#if __GLASGOW_HASKELL__ < 880
18+
import Prelude hiding (fail)
1719
import Control.Monad.Fail
20+
#endif
1821
import Control.Monad.Reader
1922
import Control.Monad.State.Strict
2023
import Control.Monad.Ref

src/Nix/Scope/Basic.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ module Nix.Scope.Basic where
1919

2020
import Control.Applicative
2121
import Control.Monad.Exception
22+
#if __GLASGOW_HASKELL__ < 880
23+
import Prelude hiding (fail)
2224
import Control.Monad.Fail
25+
#endif
2326
import Control.Monad.Reader
2427
import Control.Monad.State
2528
import Control.Monad.Catch

src/Nix/Thunk/Basic.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ module Nix.Thunk.Basic (ThunkT (..), runThunkT, NThunkF (..), Deferred (..)) whe
1818

1919
import Control.Exception hiding ( catch )
2020
import Control.Monad.Catch
21+
#if __GLASGOW_HASKELL__ < 880
22+
import Prelude hiding (fail)
2123
import Control.Monad.Fail
24+
#endif
2225
import Control.Monad.Reader
2326
import Control.Monad.State
2427

0 commit comments

Comments
 (0)