Skip to content

Commit 194261b

Browse files
committed
KnownStoreDir: Note pathiness requirement in haddocks.
1 parent 8fa0119 commit 194261b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,9 @@ storeDirVal :: forall storeDir . (KnownStoreDir storeDir)
157157
storeDirVal = BC.pack $ symbolVal @storeDir Proxy
158158

159159
-- | A 'StoreDir' whose value is known at compile time.
160+
--
161+
-- A valid instance of 'KnownStoreDir' should represent a valid path,
162+
-- i.e. all "characters" fit into bytes (as determined by the logic of
163+
-- 'BC.pack') and there are no 0 "characters". Currently this is not
164+
-- enforced, but it should be.
160165
type KnownStoreDir = KnownSymbol

0 commit comments

Comments
 (0)