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 8fa0119 commit 194261bCopy full SHA for 194261b
hnix-store-core/src/System/Nix/Internal/StorePath.hs
@@ -157,4 +157,9 @@ storeDirVal :: forall storeDir . (KnownStoreDir storeDir)
157
storeDirVal = BC.pack $ symbolVal @storeDir Proxy
158
159
-- | 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.
165
type KnownStoreDir = KnownSymbol
0 commit comments