-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
I've replaced Bool
with it in remote but same thing is used by ReadOnlyStore
and S3
in #37
For the reference since it will move around
-- | Recursive, used by @addToStore@
newtype Recursive = Recursive { unRecursive :: Bool }
deriving (Eq, Ord, Show)
addRecursive, addNonRecursive :: Recursive
-- | Add target directory recursively
addRecursive = Recursive True
-- | Add target directory non-recursively
addNonRecursive = Recursive False
Maybe sum type / enum would be even better, draft
data Recursive =
Recursive_Recursive
Recursive_NonRecursive
sounds kind-of superfluous and very recursive 🙃
Also wondering where to put it, considering System.Nix.Store.Types
Metadata
Metadata
Assignees
Labels
No labels