Maintainer | Shea Levy <shea@shealevy.com> |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- newtype FilePathPart = FilePathPart {}
- type PathHashAlgo = Truncated 20 SHA256
- data Path = Path !(Digest PathHashAlgo) !PathName
- pathToText :: Text -> Path -> Text
- type PathSet = HashSet Path
- data SubstitutablePathInfo = SubstitutablePathInfo {
- deriver :: !(Maybe Path)
- references :: !PathSet
- downloadSize :: !Integer
- narSize :: !Integer
- data ValidPathInfo = ValidPathInfo {}
- newtype PathName = PathName {}
- filePathPart :: ByteString -> Maybe FilePathPart
- pathName :: Text -> Maybe PathName
- type Roots = Map Path Path
Documentation
newtype FilePathPart Source #
A valid filename or directory name
Instances
Eq FilePathPart Source # | |
Defined in System.Nix.Path (==) :: FilePathPart -> FilePathPart -> Bool # (/=) :: FilePathPart -> FilePathPart -> Bool # | |
Ord FilePathPart Source # | |
Defined in System.Nix.Path compare :: FilePathPart -> FilePathPart -> Ordering # (<) :: FilePathPart -> FilePathPart -> Bool # (<=) :: FilePathPart -> FilePathPart -> Bool # (>) :: FilePathPart -> FilePathPart -> Bool # (>=) :: FilePathPart -> FilePathPart -> Bool # max :: FilePathPart -> FilePathPart -> FilePathPart # min :: FilePathPart -> FilePathPart -> FilePathPart # | |
Show FilePathPart Source # | |
Defined in System.Nix.Path showsPrec :: Int -> FilePathPart -> ShowS # show :: FilePathPart -> String # showList :: [FilePathPart] -> ShowS # |
type PathHashAlgo = Truncated 20 SHA256 Source #
The hash algorithm used for store path hashes.
A path in a store.
data SubstitutablePathInfo Source #
Information about substitutes for a Path
.
Instances
Eq SubstitutablePathInfo Source # | |
Defined in System.Nix.Path (==) :: SubstitutablePathInfo -> SubstitutablePathInfo -> Bool # (/=) :: SubstitutablePathInfo -> SubstitutablePathInfo -> Bool # | |
Ord SubstitutablePathInfo Source # | |
Defined in System.Nix.Path compare :: SubstitutablePathInfo -> SubstitutablePathInfo -> Ordering # (<) :: SubstitutablePathInfo -> SubstitutablePathInfo -> Bool # (<=) :: SubstitutablePathInfo -> SubstitutablePathInfo -> Bool # (>) :: SubstitutablePathInfo -> SubstitutablePathInfo -> Bool # (>=) :: SubstitutablePathInfo -> SubstitutablePathInfo -> Bool # max :: SubstitutablePathInfo -> SubstitutablePathInfo -> SubstitutablePathInfo # min :: SubstitutablePathInfo -> SubstitutablePathInfo -> SubstitutablePathInfo # | |
Show SubstitutablePathInfo Source # | |
Defined in System.Nix.Path showsPrec :: Int -> SubstitutablePathInfo -> ShowS # show :: SubstitutablePathInfo -> String # showList :: [SubstitutablePathInfo] -> ShowS # |
data ValidPathInfo Source #
Information about Path
ValidPathInfo | |
|
Instances
Eq ValidPathInfo Source # | |
Defined in System.Nix.Path (==) :: ValidPathInfo -> ValidPathInfo -> Bool # (/=) :: ValidPathInfo -> ValidPathInfo -> Bool # | |
Ord ValidPathInfo Source # | |
Defined in System.Nix.Path compare :: ValidPathInfo -> ValidPathInfo -> Ordering # (<) :: ValidPathInfo -> ValidPathInfo -> Bool # (<=) :: ValidPathInfo -> ValidPathInfo -> Bool # (>) :: ValidPathInfo -> ValidPathInfo -> Bool # (>=) :: ValidPathInfo -> ValidPathInfo -> Bool # max :: ValidPathInfo -> ValidPathInfo -> ValidPathInfo # min :: ValidPathInfo -> ValidPathInfo -> ValidPathInfo # | |
Show ValidPathInfo Source # | |
Defined in System.Nix.Path showsPrec :: Int -> ValidPathInfo -> ShowS # show :: ValidPathInfo -> String # showList :: [ValidPathInfo] -> ShowS # |
The name portion of a Nix path.
Must be composed of a-z, A-Z, 0-9, +, -, ., _, ?, and =, can't start with a ., and must have at least one character.
PathName | |
|
filePathPart :: ByteString -> Maybe FilePathPart Source #
Construct FilePathPart from Text by checking that there
are no /
or '\\NUL' characters