shell-conduit-4.7.0: 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

Instances

Instances details
MonadTrans ShellT Source # 
Instance details

Defined in Data.Conduit.Shell.Types

Methods

lift :: Monad m => m a -> ShellT m a #

Monad m => Monad (ShellT m) Source # 
Instance details

Defined in Data.Conduit.Shell.Types

Methods

(>>=) :: ShellT m a -> (a -> ShellT m b) -> ShellT m b

(>>) :: ShellT m a -> ShellT m b -> ShellT m b

return :: a -> ShellT m a

Functor m => Functor (ShellT m) Source # 
Instance details

Defined in Data.Conduit.Shell.Types

Methods

fmap :: (a -> b) -> ShellT m a -> ShellT m b

(<$) :: a -> ShellT m b -> ShellT m a

Applicative m => Applicative (ShellT m) Source # 
Instance details

Defined in Data.Conduit.Shell.Types

Methods

pure :: a -> ShellT m a

(<*>) :: ShellT m (a -> b) -> ShellT m a -> ShellT m b

liftA2 :: (a -> b -> c) -> ShellT m a -> ShellT m b -> ShellT m c

(*>) :: ShellT m a -> ShellT m b -> ShellT m b

(<*) :: ShellT m a -> ShellT m b -> ShellT m a

MonadIO m => MonadIO (ShellT m) Source # 
Instance details

Defined in Data.Conduit.Shell.Types

Methods

liftIO :: IO a -> ShellT m a #

MonadUnliftIO m => MonadResource (ShellT m) Source # 
Instance details

Defined in Data.Conduit.Shell.Types

Methods

liftResourceT :: ResourceT IO a -> ShellT m a Source #

MonadThrow m => MonadThrow (ShellT m) Source # 
Instance details

Defined in Data.Conduit.Shell.Types

Methods

throwM :: Exception e => e -> ShellT m a #

(MonadUnliftIO (ShellT m), Applicative m, MonadThrow m) => Alternative (ConduitT i o (ShellT m)) Source #

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

Instance details

Defined in Data.Conduit.Shell.Types

Methods

empty :: ConduitT i o (ShellT m) a

(<|>) :: ConduitT i o (ShellT m) a -> ConduitT i o (ShellT m) a -> ConduitT i o (ShellT m) a

some :: ConduitT i o (ShellT m) a -> ConduitT i o (ShellT m) [a]

many :: ConduitT i o (ShellT m) a -> ConduitT i o (ShellT m) [a]

data ShellException Source #

An exception resulting from a shell command.

Constructors

ShellEmpty

For mempty.

ShellExitFailure !Int

Process exited with failure.

Instances

Instances details
Show ShellException Source # 
Instance details

Defined in Data.Conduit.Shell.Types

Methods

showsPrec :: Int -> ShellException -> ShowS

show :: ShellException -> String

showList :: [ShellException] -> ShowS

Exception ShellException Source # 
Instance details

Defined in Data.Conduit.Shell.Types