Skip to content

Commit 2ad76d2

Browse files
committed
Fix build on GHC 8.4
1 parent a9312d9 commit 2ad76d2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010
in {
1111
haskellPackages =
1212
pkgs.haskellPackages.override overrideHaskellPackages;
13+
haskell844Packages =
14+
pkgs.haskell.packages.ghc844.override overrideHaskellPackages;
1315
inherit pkgs;
1416
}

hnix-store-core/src/System/Nix/Internal/StorePath.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ Description : Representation of Nix store paths.
1010
{-# LANGUAGE TypeApplications #-}
1111
{-# LANGUAGE ScopedTypeVariables #-}
1212
{-# LANGUAGE AllowAmbiguousTypes #-}
13+
{-# LANGUAGE TypeInType #-} -- Needed for GHC 8.4.4 for some reason
1314
module System.Nix.Internal.StorePath where
14-
import System.Nix.Hash (HashAlgorithm(Truncated, SHA256), Digest, encodeBase32)
15+
import System.Nix.Hash
16+
( HashAlgorithm(Truncated, SHA256)
17+
, Digest
18+
, encodeBase32
19+
)
1520
import Text.Regex.Base.RegexLike (makeRegex, matchTest)
1621
import Text.Regex.TDFA.Text (Regex)
1722
import Data.Text (Text)

0 commit comments

Comments
 (0)