mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-09-11 18:05:56 +03:00
core: add unsafeMakeStorePathHashPart
This commit is contained in:
parent
b3a77eaf4a
commit
2e54e33bed
@ -34,6 +34,7 @@ module System.Nix.StorePath
|
||||
, pathParser
|
||||
-- * Utilities for tests
|
||||
, unsafeMakeStorePath
|
||||
, unsafeMakeStorePathHashPart
|
||||
) where
|
||||
|
||||
import Crypto.Hash (HashAlgorithm)
|
||||
@ -307,3 +308,11 @@ unsafeMakeStorePath
|
||||
-> StorePathName
|
||||
-> StorePath
|
||||
unsafeMakeStorePath = StorePath
|
||||
|
||||
-- | Path hash parts rarely need to be constructed directly.
|
||||
-- Prefer @mkStorePathHashPart@
|
||||
-- Used by remote store in wire protocol
|
||||
unsafeMakeStorePathHashPart
|
||||
:: ByteString
|
||||
-> StorePathHashPart
|
||||
unsafeMakeStorePathHashPart = StorePathHashPart
|
||||
|
Loading…
Reference in New Issue
Block a user