Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype StorePath = StorePath {}
- class (MonadFile m, MonadStore m, MonadPutStr m, MonadHttp m, MonadEnv m, MonadPaths m, MonadInstantiate m, MonadExec m, MonadIntrospect m) => MonadEffects t f m where
- makeAbsolutePath :: FilePath -> m FilePath
- findEnvPath :: String -> m FilePath
- findPath :: [NValue t f m] -> FilePath -> m FilePath
- importPath :: FilePath -> m (NValue t f m)
- pathToDefaultNix :: FilePath -> m FilePath
- derivationStrict :: NValue t f m -> m (NValue t f m)
- traceEffect :: String -> m ()
- class Monad m => MonadIntrospect m where
- recursiveSize :: a -> m Word
- class Monad m => MonadExec m where
- class Monad m => MonadInstantiate m where
- instantiateExpr :: String -> m (Either ErrorCall NExprLoc)
- pathExists :: MonadFile m => FilePath -> m Bool
- class Monad m => MonadEnv m where
- getEnvVar :: String -> m (Maybe String)
- getCurrentSystemOS :: m Text
- getCurrentSystemArch :: m Text
- class Monad m => MonadPaths m where
- getDataDir :: m FilePath
- class Monad m => MonadHttp m where
- class Monad m => MonadPutStr m where
- putStrLn :: MonadPutStr m => String -> m ()
- print :: (MonadPutStr m, Show a) => a -> m ()
- class Monad m => MonadStore m where
- addPath :: (Framed e m, MonadStore m) => FilePath -> m StorePath
- toFile_ :: (Framed e m, MonadStore m) => FilePath -> String -> m StorePath
Documentation
A path into the nix store
class (MonadFile m, MonadStore m, MonadPutStr m, MonadHttp m, MonadEnv m, MonadPaths m, MonadInstantiate m, MonadExec m, MonadIntrospect m) => MonadEffects t f m where Source #
makeAbsolutePath :: FilePath -> m FilePath Source #
Determine the absolute path of relative path in the current context
findEnvPath :: String -> m FilePath Source #
findPath :: [NValue t f m] -> FilePath -> m FilePath Source #
Having an explicit list of sets corresponding to the NIX_PATH and a file path try to find an existing path
importPath :: FilePath -> m (NValue t f m) Source #
pathToDefaultNix :: FilePath -> m FilePath Source #
derivationStrict :: NValue t f m -> m (NValue t f m) Source #
traceEffect :: String -> m () Source #
Instances
class Monad m => MonadIntrospect m where Source #
Nothing
recursiveSize :: a -> m Word Source #
default recursiveSize :: (MonadTrans t, MonadIntrospect m', m ~ t m') => a -> m Word Source #
Instances
MonadIntrospect IO Source # | |
Defined in Nix.Effects recursiveSize :: a -> IO Word Source # | |
MonadIntrospect m => MonadIntrospect (StdIdT m) Source # | |
Defined in Nix.Fresh.Basic recursiveSize :: a -> StdIdT m Word Source # | |
MonadIntrospect (t (Fix1 t)) => MonadIntrospect (Fix1 t) Source # | |
Defined in Nix.Standard recursiveSize :: a -> Fix1 t Word Source # | |
(MonadIntrospect r, MonadIntrospect m) => MonadIntrospect (StandardTF r m) Source # | |
Defined in Nix.Standard recursiveSize :: a -> StandardTF r m Word Source # | |
MonadIntrospect (t (Fix1T t m) m) => MonadIntrospect (Fix1T t m) Source # | |
Defined in Nix.Standard recursiveSize :: a -> Fix1T t m Word Source # |
class Monad m => MonadExec m where Source #
Nothing
class Monad m => MonadInstantiate m where Source #
Nothing
instantiateExpr :: String -> m (Either ErrorCall NExprLoc) Source #
default instantiateExpr :: (MonadTrans t, MonadInstantiate m', m ~ t m') => String -> m (Either ErrorCall NExprLoc) Source #
Instances
MonadInstantiate IO Source # | |
Defined in Nix.Effects | |
MonadInstantiate m => MonadInstantiate (StdIdT m) Source # | |
Defined in Nix.Fresh.Basic | |
MonadInstantiate (t (Fix1 t)) => MonadInstantiate (Fix1 t) Source # | |
Defined in Nix.Standard | |
(MonadInstantiate r, MonadInstantiate m) => MonadInstantiate (StandardTF r m) Source # | |
Defined in Nix.Standard instantiateExpr :: String -> StandardTF r m (Either ErrorCall NExprLoc) Source # | |
MonadInstantiate (t (Fix1T t m) m) => MonadInstantiate (Fix1T t m) Source # | |
Defined in Nix.Standard |
class Monad m => MonadEnv m where Source #
Nothing
getEnvVar :: String -> m (Maybe String) Source #
getCurrentSystemOS :: m Text Source #
default getCurrentSystemOS :: (MonadTrans t, MonadEnv m', m ~ t m') => m Text Source #
getCurrentSystemArch :: m Text Source #
default getCurrentSystemArch :: (MonadTrans t, MonadEnv m', m ~ t m') => m Text Source #
Instances
MonadEnv IO Source # | |
MonadEnv m => MonadEnv (StdIdT m) Source # | |
MonadEnv (t (Fix1 t)) => MonadEnv (Fix1 t) Source # | |
(MonadEnv r, MonadEnv m) => MonadEnv (StandardTF r m) Source # | |
Defined in Nix.Standard getEnvVar :: String -> StandardTF r m (Maybe String) Source # getCurrentSystemOS :: StandardTF r m Text Source # getCurrentSystemArch :: StandardTF r m Text Source # | |
MonadEnv (t (Fix1T t m) m) => MonadEnv (Fix1T t m) Source # | |
class Monad m => MonadPaths m where Source #
Nothing
getDataDir :: m FilePath Source #
default getDataDir :: (MonadTrans t, MonadPaths m', m ~ t m') => m FilePath Source #
Instances
MonadPaths IO Source # | |
Defined in Nix.Effects getDataDir :: IO FilePath Source # | |
MonadPaths m => MonadPaths (StdIdT m) Source # | |
Defined in Nix.Fresh.Basic getDataDir :: StdIdT m FilePath Source # | |
MonadPaths (t (Fix1 t)) => MonadPaths (Fix1 t) Source # | |
Defined in Nix.Standard getDataDir :: Fix1 t FilePath Source # | |
(MonadPaths r, MonadPaths m) => MonadPaths (StandardTF r m) Source # | |
Defined in Nix.Standard getDataDir :: StandardTF r m FilePath Source # | |
MonadPaths (t (Fix1T t m) m) => MonadPaths (Fix1T t m) Source # | |
Defined in Nix.Standard getDataDir :: Fix1T t m FilePath Source # |
class Monad m => MonadHttp m where Source #
Nothing
class Monad m => MonadPutStr m where Source #
Nothing
putStr :: String -> m () Source #
default putStr :: (MonadTrans t, MonadPutStr m', m ~ t m') => String -> m () Source #
Instances
MonadPutStr IO Source # | |
MonadPutStr m => MonadPutStr (StdIdT m) Source # | |
MonadPutStr (t (Fix1 t)) => MonadPutStr (Fix1 t) Source # | |
(MonadPutStr r, MonadPutStr m) => MonadPutStr (StandardTF r m) Source # | |
Defined in Nix.Standard putStr :: String -> StandardTF r m () Source # | |
MonadPutStr (t (Fix1T t m) m) => MonadPutStr (Fix1T t m) Source # | |
putStrLn :: MonadPutStr m => String -> m () Source #
print :: (MonadPutStr m, Show a) => a -> m () Source #
class Monad m => MonadStore m where Source #
addPath' :: FilePath -> m (Either ErrorCall StorePath) Source #
Import a path into the nix store, and return the resulting path
toFile_' :: FilePath -> String -> m (Either ErrorCall StorePath) Source #
Add a file with the given name and contents to the nix store
Instances
MonadStore IO Source # | |
MonadStore m => MonadStore (StdIdT m) Source # | |
(MonadFix1T t m, MonadStore m) => MonadStore (Fix1T t m) Source # | |