THSH-0.0.0.3: A "noDSL" approach to mixing shell scripting with Haskell programs using Template Haskell
Copyright(c) Miao ZhiCheng 2024
LicenseMIT
Maintainerzhicheng.miao@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageGHC2021

THSH.Funclet

Description

 
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 #

FnFunction f => Funclet (Fn f) Source # 
Instance details

Defined in THSH.Fn

Methods

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

data AnyFunclet Source #

Existential wrapper of any funclet.

Constructors

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