@@ -24,6 +24,7 @@ import System.Nix.Store.Types (RepairMode)
2424import System.Nix.StorePath (StorePath , StorePathName , StorePathHashPart )
2525import System.Nix.StorePath.Metadata (Metadata )
2626import System.Nix.Store.Remote.Types.CheckMode (CheckMode )
27+ import System.Nix.Store.Remote.Types.StoreText (StoreText )
2728import System.Nix.Store.Remote.Types.SubstituteMode (SubstituteMode )
2829
2930data StoreRequest :: Type -> Type where
@@ -49,8 +50,7 @@ data StoreRequest :: Type -> Type where
4950 -- Reference accepts repair but only uses it
5051 -- to throw error in case of remote talking to nix-daemon.
5152 AddTextToStore
52- :: Text -- ^ Name of the text
53- -> Text -- ^ Actual text to add
53+ :: StoreText
5454 -> HashSet StorePath -- ^ Set of @StorePath@s that the added text references
5555 -> RepairMode -- ^ Repair mode, must be @RepairMode_DontRepair@ in case of remote backend
5656 -> StoreRequest StorePath
@@ -167,7 +167,7 @@ deriveGShow ''StoreRequest
167167
168168instance {-# OVERLAPPING #-} Eq (Some StoreRequest ) where
169169 Some (AddToStore a b c d) == Some (AddToStore a' b' c' d') = (a, b, c, d) == (a', b', c', d')
170- Some (AddTextToStore a b c d ) == Some (AddTextToStore a' b' c' d' ) = (a, b, c, d ) == (a', b', c', d ')
170+ Some (AddTextToStore a b c) == Some (AddTextToStore a' b' c') = (a, b, c) == (a', b', c')
171171 Some (AddSignatures a b) == Some (AddSignatures a' b') = (a, b) == (a', b')
172172 Some (AddIndirectRoot a) == Some (AddIndirectRoot a') = a == a'
173173 Some (AddTempRoot a) == Some (AddTempRoot a') = a == a'
0 commit comments