THSH-0.0.0.1: A "noDSL" approach to mixing shell scripting with Haskell programs using Template Haskell
Safe HaskellSafe-Inferred
LanguageGHC2021

THSH.Funclet

Synopsis

Documentation

class Funclet f where Source #

A funclet is an IO process that communicates through handles and returns an exit code.

Methods

runFunclet :: f -> (ExitCode -> IO ()) -> IO (Handle, Handle, Handle) Source #

Instances

Instances details
Funclet AnyFunclet Source # 
Instance details

Defined in THSH.Funclet

Funclet Script Source # 
Instance details

Defined in THSH.Script

Methods

runFunclet :: Script -> (ExitCode -> IO ()) -> IO (Handle, Handle, Handle) Source #

data AnyFunclet Source #

Existential wrapper of any funclet.

Constructors

forall f.Funclet f => MkAnyFunclet f 

Instances

Instances details
Funclet AnyFunclet Source # 
Instance details

Defined in THSH.Funclet

runFuncletWithStdHandles :: Funclet f => f -> IO ExitCode Source #

Run a funclet with standard handles