Safe Haskell | None |
---|
This module exports all functions used for evaluation of IHaskell input.
- interpret :: Bool -> Interpreter a -> IO a
- evaluate :: KernelState -> String -> (EvaluationResult -> IO ()) -> Interpreter KernelState
- type Interpreter = Ghc
- liftIO :: MonadIO m => forall a. IO a -> m a
- typeCleaner :: String -> String
- globalImports :: [String]
Documentation
interpret :: Bool -> Interpreter a -> IO aSource
Run an interpreting action. This is effectively runGhc with
initialization and importing. First argument indicates whether stdin
is handled specially, which cannot be done in a testing environment.
:: KernelState | The kernel state. |
-> String | Haskell code or other interpreter commands. |
-> (EvaluationResult -> IO ()) | Function used to publish data outputs. |
-> Interpreter KernelState |
Evaluate some IPython input code.
type Interpreter = GhcSource
typeCleaner :: String -> StringSource