Fix build on GHC 8.4

This commit is contained in:
Shea Levy 2019-03-22 10:00:08 -04:00
parent a9312d91d3
commit 2ad76d2b8b
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27
2 changed files with 8 additions and 1 deletions

View File

@ -10,5 +10,7 @@
in {
haskellPackages =
pkgs.haskellPackages.override overrideHaskellPackages;
haskell844Packages =
pkgs.haskell.packages.ghc844.override overrideHaskellPackages;
inherit pkgs;
}

View File

@ -10,8 +10,13 @@ Description : Representation of Nix store paths.
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE TypeInType #-} -- Needed for GHC 8.4.4 for some reason
module System.Nix.Internal.StorePath where
import System.Nix.Hash (HashAlgorithm(Truncated, SHA256), Digest, encodeBase32)
import System.Nix.Hash
( HashAlgorithm(Truncated, SHA256)
, Digest
, encodeBase32
)
import Text.Regex.Base.RegexLike (makeRegex, matchTest)
import Text.Regex.TDFA.Text (Regex)
import Data.Text (Text)