handsy-0.0.10: A DSL to describe common shell operations and interpeters for running them locally and remotely.

Safe HaskellNone
LanguageHaskell2010

System.Handsy.Internal

Synopsis

Documentation

type Handsy = FreeT HandsyF IO Source

Main monad

interpret Source

Arguments

:: IO r

Acquire resource

-> (r -> IO ())

Release resource

-> (r -> String -> ByteString -> IO (ExitCode, ByteString, ByteString)) 
-> Options 
-> Handsy a 
-> IO a 

interpretSimple Source

Arguments

:: (FilePath -> ByteString -> IO (ExitCode, ByteString, ByteString))

readProcessWithExitCode

-> Options 
-> Handsy a 
-> IO a 

shell :: forall m. MonadFree HandsyF m => FilePath -> ByteString -> m (ExitCode, ByteString, ByteString) Source

data Options Source

Constructors

Options 

Fields

debug :: Bool

Log commands to stderr before running

Instances