Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type NixConf = NixConfG [NixConfLine]
- newtype NixConfG a = NixConf a
- data NixConfLine
- = Substituters [Text]
- | TrustedUsers [Text]
- | TrustedPublicKeys [Text]
- | NetRcFile Text
- | Other Text
- data NixConfLoc
- render :: NixConf -> Text
- add :: BinaryCache -> [NixConf] -> NixConf -> NixConf
- read :: NixConfLoc -> IO (Maybe NixConf)
- update :: NixConfLoc -> (Maybe NixConf -> NixConf) -> IO ()
- write :: NixConfLoc -> NixConf -> IO ()
- getFilename :: NixConfLoc -> IO FilePath
- parser :: Parser NixConf
- parse :: Text -> Either (ParseErrorBundle Text Void) NixConf
- readLines :: [NixConf] -> (NixConfLine -> Maybe [Text]) -> [Text]
- writeLines :: (NixConfLine -> Maybe [Text]) -> NixConfLine -> NixConf -> NixConf
- isTrustedUsers :: NixConfLine -> Maybe [Text]
- defaultPublicURI :: Text
- defaultSigningKey :: Text
- setNetRC :: Text -> NixConf -> NixConf
Documentation
type NixConf = NixConfG [NixConfLine] Source #
NixConf a |
data NixConfLine Source #
Instances
Eq NixConfLine Source # | |
Defined in Cachix.Client.NixConf (==) :: NixConfLine -> NixConfLine -> Bool # (/=) :: NixConfLine -> NixConfLine -> Bool # | |
Show NixConfLine Source # | |
Defined in Cachix.Client.NixConf showsPrec :: Int -> NixConfLine -> ShowS # show :: NixConfLine -> String # showList :: [NixConfLine] -> ShowS # |
data NixConfLoc Source #
Instances
Eq NixConfLoc Source # | |
Defined in Cachix.Client.NixConf (==) :: NixConfLoc -> NixConfLoc -> Bool # (/=) :: NixConfLoc -> NixConfLoc -> Bool # | |
Show NixConfLoc Source # | |
Defined in Cachix.Client.NixConf showsPrec :: Int -> NixConfLoc -> ShowS # show :: NixConfLoc -> String # showList :: [NixConfLoc] -> ShowS # |
getFilename :: NixConfLoc -> IO FilePath Source #
writeLines :: (NixConfLine -> Maybe [Text]) -> NixConfLine -> NixConf -> NixConf Source #
isTrustedUsers :: NixConfLine -> Maybe [Text] Source #