THSH-0.0.0.4: 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.Script

Description

 
Synopsis

Documentation

data Script Source #

A script is a funclet that has its source code and a list of other funclets it depends on.

Constructors

MkScript 

Fields

Instances

Instances details
Funclet Script Source # 
Instance details

Defined in THSH.Script

Methods

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

genFuncletPipeCode :: Int -> String Source #

The piping code snippet that should substitute the funclet occurrences during quasi quoting.

sh :: Script -> Script Source #

Marker for the thsh quasi-quote to recognize a Script.