Copyright | (c) Miao ZhiCheng 2024 |
---|---|
License | MIT |
Maintainer | zhicheng.miao@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | GHC2021 |
Synopsis
- class Funclet f where
- data AnyFunclet = Funclet f => MkAnyFunclet f
- runFuncletWithStdHandles :: Funclet f => f -> IO ExitCode
Documentation
class Funclet f where Source #
A funclet is an IO process that communicates through handles and returns an exit code.
Instances
Funclet AnyFunclet Source # | |
Defined in THSH.Funclet runFunclet :: AnyFunclet -> (ExitCode -> IO ()) -> IO (Handle, Handle, Handle) Source # | |
Funclet Script Source # | |
FnFunction f => Funclet (Fn f) Source # | |
data AnyFunclet Source #
Existential wrapper of any funclet.
Funclet f => MkAnyFunclet f |
Instances
Funclet AnyFunclet Source # | |
Defined in THSH.Funclet runFunclet :: AnyFunclet -> (ExitCode -> IO ()) -> IO (Handle, Handle, Handle) Source # |