ihaskell-0.4.3.0: A Haskell backend kernel for the IPython project.

Safe HaskellNone

IHaskell.Eval.Evaluate

Description

This module exports all functions used for evaluation of IHaskell input.

Synopsis

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.

evaluateSource

Arguments

:: 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.

liftIO :: MonadIO m => forall a. IO a -> m a