Safe Haskell | None |
---|
- biegunka :: (Settings () -> Settings ()) -> Interpreter -> Script Sources () -> IO ExitCode
- data Interpreter
- interpret :: (Settings () -> Free (Term Annotate Sources) () -> IO ExitCode -> IO ExitCode) -> Interpreter
- interpretOptimistically :: (Settings () -> Free (Term Annotate Sources) () -> IO ()) -> Interpreter
- pause :: Interpreter
- confirm :: Interpreter
- expandHome :: String -> IO String
Wrap/unwrap biegunka interpreters
:: (Settings () -> Settings ()) | User defined settings |
-> Interpreter | Combined interpreters |
-> Script Sources () | Script to interpret |
-> IO ExitCode |
Entry point into the library
data Interpreter Source
Abstract Interpreter
data type
Monoid Interpreter | Combination of the |
Semigroup Interpreter | Two |
Default Interpreter | Default |
interpret :: (Settings () -> Free (Term Annotate Sources) () -> IO ExitCode -> IO ExitCode) -> InterpreterSource
Construct Interpreter
Provides Settings
, script and continuation, which is supposed to be called
on success to interpreter
interpretOptimistically :: (Settings () -> Free (Term Annotate Sources) () -> IO ()) -> InterpreterSource
Construct Interpreter
optimistically
It is optimistic in a sense what it always calls the continuation, provided that no exceptions were thrown
Generic interpreters
Interpreter that just waits user to press any key
Interpreter that awaits user confirmation
Auxiliary
expandHome :: String -> IO StringSource
Expand "~" at the start of pattern