Skip to content

Commit b1e5906

Browse files
committed
core: don't (re)export StorePathName constructor
1 parent e7622b3 commit b1e5906

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hnix-store-core/src/System/Nix/ReadonlyStore.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ makeStorePath storeDir ty h nm = StorePath (coerce storeHash) nm
3838
[ algoName @h
3939
, encodeDigestWith Base16 h
4040
, toText . Bytes.Char8.unpack $ unStoreDir storeDir
41-
, coerce nm
41+
, unStorePathName nm
4242
]
4343

4444
makeTextPath

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ module System.Nix.StorePath
55
( -- * Basic store path types
66
StoreDir(..)
77
, StorePath(..)
8-
, StorePathName(..)
8+
, StorePathName
99
, StorePathSet
1010
, mkStorePathHashPart
1111
, StorePathHashPart(..)
1212
, ContentAddressableAddress(..)
1313
, NarHashMode(..)
1414
, -- * Manipulating 'StorePathName'
1515
makeStorePathName
16+
, unStorePathName
1617
, validStorePathName
1718
, -- * Rendering out 'StorePath's
1819
storePathToFilePath

0 commit comments

Comments
 (0)