Skip to content

Commit

Permalink
load Control.Monad.Fail if GHC < 8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Latukha authored and ali-abrar committed Jan 8, 2021
1 parent 4aa5dcd commit a474d77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Nix/Fresh/Stable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ import Nix.Effects
import Nix.Render
import Nix.Thunk
import Nix.Thunk.StableId
#if __GLASGOW_HASKELL__ < 880
import Prelude hiding (fail)
import Control.Monad.Fail
#endif
import Control.Monad.Reader
import Control.Monad.State.Strict
import Control.Monad.Ref
Expand Down
3 changes: 3 additions & 0 deletions src/Nix/Scope/Basic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ module Nix.Scope.Basic where

import Control.Applicative
import Control.Monad.Exception
#if __GLASGOW_HASKELL__ < 880
import Prelude hiding (fail)
import Control.Monad.Fail
#endif
import Control.Monad.Reader
import Control.Monad.State
import Control.Monad.Catch
Expand Down
3 changes: 3 additions & 0 deletions src/Nix/Thunk/Basic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ module Nix.Thunk.Basic (ThunkT (..), runThunkT, NThunkF (..), Deferred (..)) whe

import Control.Exception hiding ( catch )
import Control.Monad.Catch
#if __GLASGOW_HASKELL__ < 880
import Prelude hiding (fail)
import Control.Monad.Fail
#endif
import Control.Monad.Reader
import Control.Monad.State

Expand Down

0 comments on commit a474d77

Please sign in to comment.