Skip to content

Commit a2798b0

Browse files
committed
Core: Internal.Hash: explicit export list
1 parent ef8a2c0 commit a2798b0

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,20 @@ Description : Cryptographic hashing interface for hnix-store, on top
1212
{-# LANGUAGE ExistentialQuantification #-}
1313
{-# LANGUAGE CPP #-}
1414

15-
module System.Nix.Internal.Hash where
15+
module System.Nix.Internal.Hash
16+
( HashAlgorithm(..)
17+
, ValidAlgo(..)
18+
, NamedAlgo(..)
19+
, hash
20+
, hashLazy
21+
, Digest
22+
, SomeNamedDigest(..)
23+
, mkNamedDigest
24+
, encodeDigestWith
25+
, decodeDigestWith
26+
, mkStorePathHash
27+
)
28+
where
1629

1730
import qualified Crypto.Hash.MD5 as MD5
1831
import qualified Crypto.Hash.SHA1 as SHA1

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ Description : Representation of Nix store paths.
1111
{-# LANGUAGE DataKinds #-}
1212

1313
module System.Nix.Internal.StorePath where
14-
import System.Nix.Internal.Hash ( HashAlgorithm(SHA256)
15-
, Digest
16-
, SomeNamedDigest
17-
, mkStorePathHash
18-
)
19-
20-
14+
import System.Nix.Internal.Hash
15+
import System.Nix.Internal.Base
2116
import qualified System.Nix.Internal.Base32 as Nix.Base32
2217

2318
import Data.ByteString ( ByteString )
@@ -34,7 +29,6 @@ import qualified Data.Attoparsec.Text.Lazy as Parser.Text.Lazy
3429
import qualified System.FilePath as FilePath
3530
import Data.Hashable ( Hashable(..) )
3631
import Data.HashSet ( HashSet )
37-
import System.Nix.Internal.Base
3832
import Data.Coerce ( coerce )
3933

4034
-- | A path in a Nix store.

0 commit comments

Comments
 (0)