We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2beabb commit 61a5365Copy full SHA for 61a5365
hnix-store-core/src/System/Nix/ReadonlyStore.hs
@@ -11,12 +11,12 @@ import Data.Text.Encoding
11
import System.Nix.Hash
12
import System.Nix.StorePath
13
14
-makeStorePath :: forall storeDir . (KnownStoreDir storeDir) => ByteString -> Digest 'SHA256 -> StorePathName -> StorePath storeDir
+makeStorePath :: forall storeDir hashAlgo . (KnownStoreDir storeDir, NamedAlgo hashAlgo) => ByteString -> Digest hashAlgo -> StorePathName -> StorePath storeDir
15
makeStorePath ty h nm = StorePath storeHash nm
16
where
17
s = BS.intercalate ":"
18
[ ty
19
- , encodeUtf8 $ algoName @'SHA256
+ , encodeUtf8 $ algoName @hashAlgo
20
, encodeUtf8 $ encodeBase16 h
21
, storeDirVal @storeDir
22
, encodeUtf8 $ unStorePathName nm
0 commit comments