File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed
hnix-store-core/src/System/Nix/Internal Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff 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
1730import qualified Crypto.Hash.MD5 as MD5
1831import qualified Crypto.Hash.SHA1 as SHA1
Original file line number Diff line number Diff line change @@ -11,13 +11,8 @@ Description : Representation of Nix store paths.
1111{-# LANGUAGE DataKinds #-}
1212
1313module 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
2116import qualified System.Nix.Internal.Base32 as Nix.Base32
2217
2318import Data.ByteString ( ByteString )
@@ -34,7 +29,6 @@ import qualified Data.Attoparsec.Text.Lazy as Parser.Text.Lazy
3429import qualified System.FilePath as FilePath
3530import Data.Hashable ( Hashable (.. ) )
3631import Data.HashSet ( HashSet )
37- import System.Nix.Internal.Base
3832import Data.Coerce ( coerce )
3933
4034-- | A path in a Nix store.
You can’t perform that action at this time.
0 commit comments