Copyright | Profpatsch 2018 |
---|---|
License | GPL-3 |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- newtype NixAction e a = NixAction {
- unNixAction :: ExceptT (NixActionError e) IO a
- data NixActionError e = NixActionError {
- actionStderr :: Text
- actionError :: e
- runNixAction :: NixAction e a -> IO (Either (NixActionError e) a)
- newtype StorePath a = StorePath {}
- data Derivation
- data Realized
Documentation
newtype NixAction e a Source #
Calls a command that returns an error and the whole stderr on failure.
NixAction | |
|
data NixActionError e Source #
Combines the standard error of running a command with a more semantic error type one should match on first.
NixActionError | |
|
Instances
Functor NixActionError Source # | |
Defined in Foreign.Nix.Shellout.Types fmap :: (a -> b) -> NixActionError a -> NixActionError b # (<$) :: a -> NixActionError b -> NixActionError a # | |
Show e => Show (NixActionError e) Source # | |
Defined in Foreign.Nix.Shellout.Types showsPrec :: Int -> NixActionError e -> ShowS # show :: NixActionError e -> String # showList :: [NixActionError e] -> ShowS # |
runNixAction :: NixAction e a -> IO (Either (NixActionError e) a) Source #
A path in the nix store. It carries a phantom a
to differentiate
between Derivation
files and Realized
paths.
data Derivation Source #
A nix derivation is a complete build instruction that can be realized.