Skip to content

Commit 774590e

Browse files
committed
remote: add StoreReply (HashSet StorePath) & StoreReply (HashSet StorePathName)
1 parent 04a38e8 commit 774590e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

hnix-store-remote/src/System/Nix/Store/Remote/Types/StoreReply.hs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ module System.Nix.Store.Remote.Types.StoreReply
22
( StoreReply(..)
33
) where
44

5+
import Data.HashSet (HashSet)
56
import System.Nix.Build (BuildResult)
6-
import System.Nix.StorePath (HasStoreDir(..), StorePath)
7+
import System.Nix.StorePath (HasStoreDir(..), StorePath, StorePathName)
78
import System.Nix.StorePath.Metadata (Metadata)
89
import System.Nix.Store.Remote.Serializer
910
import System.Nix.Store.Remote.Types.GC (GCResult)
@@ -43,6 +44,12 @@ instance StoreReply (Maybe (Metadata StorePath)) where
4344
instance StoreReply StorePath where
4445
getReplyS = mapPrimE storePath
4546

47+
instance StoreReply (HashSet StorePath) where
48+
getReplyS = mapPrimE (hashSet storePath)
49+
50+
instance StoreReply (HashSet StorePathName) where
51+
getReplyS = mapPrimE (hashSet storePathName)
52+
4653
mapPrimE
4754
:: NixSerializer r SError a
4855
-> NixSerializer r ReplySError a

0 commit comments

Comments
 (0)