Nix.Fresh.Basic
Contents
type StdIdT = FreshIdT Int Source #
Methods
toAbsolutePath :: Path -> StdIdT m Path Source #
findEnvPath :: String -> StdIdT m Path Source #
findPath :: [NValue t f (StdIdT m)] -> Path -> StdIdT m Path Source #
importPath :: Path -> StdIdT m (NValue t f (StdIdT m)) Source #
pathToDefaultNix :: Path -> StdIdT m Path Source #
derivationStrict :: NValue t f (StdIdT m) -> StdIdT m (NValue t f (StdIdT m)) Source #
traceEffect :: String -> StdIdT m () Source #
getEnvVar :: Text -> StdIdT m (Maybe Text) Source #
getCurrentSystemOS :: StdIdT m Text Source #
getCurrentSystemArch :: StdIdT m Text Source #
exec' :: [Text] -> StdIdT m (Either ErrorCall NExprLoc) Source #
getURL :: Text -> StdIdT m (Either ErrorCall StorePath) Source #
instantiateExpr :: Text -> StdIdT m (Either ErrorCall NExprLoc) Source #
recursiveSize :: a -> StdIdT m Word Source #
getDataDir :: StdIdT m Path Source #
putStr :: String -> StdIdT m () Source #
addToStore :: StorePathName -> NarContent -> RecursiveFlag -> RepairFlag -> StdIdT m (Either ErrorCall StorePath) Source #
addTextToStore' :: StorePathName -> Text -> StorePathSet -> RepairFlag -> StdIdT m (Either ErrorCall StorePath) Source #
readFile :: Path -> StdIdT m Text Source #
listDirectory :: Path -> StdIdT m [Path] Source #
getCurrentDirectory :: StdIdT m Path Source #
canonicalizePath :: Path -> StdIdT m Path Source #
getHomeDirectory :: StdIdT m Path Source #
doesPathExist :: Path -> StdIdT m Bool Source #
doesFileExist :: Path -> StdIdT m Bool Source #
doesDirectoryExist :: Path -> StdIdT m Bool Source #
getSymbolicLinkStatus :: Path -> StdIdT m FileStatus Source #