|
XMonad.Actions.Eval | Portability | unportable | Stability | unstable | Maintainer | Daniel Schoepe <daniel.schoepe@gmail.com> |
|
|
|
|
|
Description |
Evaluate haskell expressions at runtime in the running xmonad instance.
|
|
Synopsis |
|
|
|
|
Usage
|
|
This module provides functions to evaluate haskell expressions at runtime
To use it, bind a key to evalExpression, for example in combination with a prompt:
import XMonad
import XMonad.Actions.Eval
import XMonad.Prompt.Input
..
, ((modMask,xK_t), inputPrompt defaultXPConfig "Eval" >>= flip whenJust (evalExpression defaultEvalConfig))
For detailed instructions on editing your key bindings, see
XMonad.Doc.Extending.
|
|
Documentation
|
|
|
|
|
Evaluates a given expression, but discard the returned value. Provided for
more convenient use in keybindings
|
|
|
Evaluates a given expression whose result type has to be an instance of Show
|
|
|
Configuration structure
| Constructors | EvalConfig | | handleError :: InterpreterError -> X String | Function to handle errors
| imports :: [(ModuleName, Maybe String)] | Modules to import for interpreting the expression.
The pair consists of the module name and an optional
qualification of the imported module.
| modules :: [String] | Other source files that should be loaded
The definitions of these modules will be visible
regardless of whether they are exported.
|
|
|
|
|
|
Defaults for evaluating expressions.
|
|
Produced by Haddock version 2.6.0 |