shell-conduit-3.0: Write shell scripts with Conduit

Safe HaskellNone
LanguageHaskell98

Data.Conduit.Shell.Variadic

Description

Variadic process calling.

Synopsis

Documentation

class ProcessType t where Source

Process return type.

Methods

spr :: String -> [Text] -> t Source

Instances

(ProcessType r, CmdArg a) => ProcessType (a -> r)

Accept strings as arguments.

(MonadResource m, (~) * c Chunk, (~) * c' Chunk, (~) * r ()) => ProcessType (ConduitM c c' m r)

The real type should be:

ConduitM Chunk Chunk m ()

But with this more liberal instance head we catch all cases in the instance resolver, and then apply the equality restrictions later.

variadicProcess :: ProcessType r => String -> r Source

A variadic process maker.

class CmdArg a where Source

Command line argument.

Methods

toTextArg :: a -> Text Source