shell-conduit-4.5.2: Write shell scripts with Conduit

Safe HaskellNone
LanguageHaskell98

Data.Conduit.Shell.Types

Description

All types.

Synopsis

Documentation

newtype ShellT m a Source

Shell transformer.

Constructors

ShellT 

Fields

runShellT :: ResourceT m a
 

Instances

MonadTrans ShellT 
(MonadThrow m, MonadIO m, MonadBaseControl IO m) => MonadBaseControl IO (ShellT m)

Dumb instance.

MonadResourceBase m => MonadBase IO (ShellT m) 
Monad m => Monad (ShellT m) 
Functor m => Functor (ShellT m) 
Applicative m => Applicative (ShellT m) 
MonadThrow m => MonadThrow (ShellT m) 
MonadIO m => MonadIO (ShellT m) 
MonadResourceBase m => MonadResource (ShellT m) 
(MonadBaseControl IO (ShellT m), Applicative m, MonadThrow m) => Alternative (ConduitM i o (ShellT m))

Intentionally only handles ShellException. Use normal exception handling to handle usual exceptions.

type StM (ShellT m) a = StMShell m a 

newtype StMShell m a Source

Constructors

StMShell 

Fields

unStMGeoServer :: StM (ResourceT m) a
 

data ShellException Source

An exception resulting from a shell command.

Constructors

ShellEmpty

For mempty.

ShellExitFailure !Int

Process exited with failure.