| Safe Haskell | None |
|---|
IHaskell.Flags
- data IHaskellMode
- data Argument
- data Args = Args IHaskellMode [Argument]
- data LhsStyle string = LhsStyle {
- lhsCodePrefix :: string
- lhsOutputPrefix :: string
- lhsBeginCode :: string
- lhsEndCode :: string
- lhsBeginOutput :: string
- lhsEndOutput :: string
- lhsStyleBird :: LhsStyle String
- data NotebookFormat
- = LhsMarkdown
- | IpynbFile
- parseFlags :: [String] -> Either String Args
- help :: IHaskellMode -> String
Documentation
data IHaskellMode Source
Constructors
| ShowHelp String | |
| Notebook | |
| Console | |
| ConvertLhs | |
| Kernel (Maybe String) | |
| View (Maybe ViewFormat) (Maybe String) |
Instances
Constructors
| ServeFrom String | Which directory to serve notebooks from. |
| Extension String | An extension to load at startup. |
| ConfFile String | A file with commands to load at startup. |
| IPythonFrom String | Which executable to use for IPython. |
| OverwriteFiles | Present when output should overwrite existing files. |
| ConvertFrom String | |
| ConvertTo String | |
| ConvertFromFormat NotebookFormat | |
| ConvertToFormat NotebookFormat | |
| ConvertLhsStyle (LhsStyle String) | |
| Help | Display help text. |
Constructors
| LhsStyle | |
Fields
| |
parseFlags :: [String] -> Either String ArgsSource
Given a list of command-line arguments, return the IHaskell mode and arguments to process.
help :: IHaskellMode -> StringSource
Get help text for a given IHaskell ode.