ReadonlyStoreEffects -> StoreEffects.

We can break out into readonly or binary cache or whatever later if need be.
This commit is contained in:
Shea Levy 2018-04-27 18:47:30 -07:00
parent 561fda594b
commit 3c23fed2ac
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ hnix-store-core
Core effects for interacting with the Nix store.
See `ReadonlyStoreEffects` in [System.Nix.Store] for read-only
operations on the store.
See `StoreEffects` in [System.Nix.Store] for the available operations
on the store.
[System.Nix.Store]: ./src/System/Nix/Store.hs

View File

@ -7,7 +7,7 @@ Maintainer : Shea Levy <shea@shealevy.com>
module System.Nix.Store
( PathName, pathNameContents, pathName
, PathHashAlgo, Path(..)
, ReadonlyStoreEffects(..)
, StoreEffects(..)
, SubstitutablePathInfo(..)
) where
@ -73,7 +73,7 @@ data SubstitutablePathInfo = SubstitutablePathInfo
narSize :: !Integer
}
-- | Read-only interactions with a store.
-- | Interactions with the Nix store.
--
-- @rootedPath@: A path plus a witness to the fact that the path is
-- reachable from a root whose liftime is at least as long as the
@ -86,8 +86,8 @@ data SubstitutablePathInfo = SubstitutablePathInfo
-- reference is held.
--
-- @m@: The monad the effects operate in.
data ReadonlyStoreEffects rootedPath validPath m =
ReadonlyStoreEffects
data StoreEffects rootedPath validPath m =
StoreEffects
{ -- | Project out the underlying 'Path' from a 'rootedPath'
fromRootedPath :: !(rootedPath -> Path)
, -- | Project out the underlying 'rootedPath' from a 'validPath'