Skip to content

Commit 9b67337

Browse files
committed
Merge branch 'master' of github.com:haskell-nix/hnix-store
2 parents 2ba0a4b + da0f19a commit 9b67337

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

hnix-store-core/hnix-store-core.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ library
2525
binary,
2626
bytestring, containers, cryptonite, memory, foundation, basement,
2727
text, regex-base, regex-tdfa-text,
28-
hashable, unordered-containers
28+
hashable, unordered-containers, bytestring
2929
hs-source-dirs: src
3030
default-language: Haskell2010

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module System.Nix.Store
1616
import Crypto.Hash (Digest)
1717
import Crypto.Hash.Truncated (Truncated)
1818
import Crypto.Hash.Algorithms (SHA256)
19+
import qualified Data.ByteString.Lazy as BS
1920
import qualified Data.ByteArray as B
2021
import Data.Text (Text)
2122
import Text.Regex.Base.RegexLike (makeRegex, matchTest)
@@ -49,7 +50,7 @@ data StoreEffects rootedPath validPath m =
4950
, -- | Project out the underlying 'rootedPath' from a 'validPath'
5051
fromValidPath :: !(validPath -> rootedPath)
5152
, -- | Which of the given paths are valid?
52-
validPaths :: !(HashSet rootedPath -> HashSet validPath)
53+
validPaths :: !(HashSet rootedPath -> m (HashSet validPath))
5354
, -- | Get the paths that refer to a given path.
5455
referrers :: !(validPath -> m (HashSet Path))
5556
, -- | Get a root to the 'Path'.
@@ -66,4 +67,6 @@ data StoreEffects rootedPath validPath m =
6667
, -- | Get a full 'Path' corresponding to a given 'Digest'.
6768
pathFromHashPart :: !(Digest PathHashAlgo -> m Path)
6869
, narEffects :: NarEffects m
70+
, -- | Add a non-nar file to the store
71+
addFile :: !(BS.ByteString -> m validPath)
6972
}

0 commit comments

Comments
 (0)