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

Safe HaskellNone
LanguageHaskell2010

IHaskell.Eval.Evaluate

Description

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

Synopsis

Documentation

interpret :: String -> Bool -> (Bool -> Interpreter a) -> IO a #

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. The argument passed to the action indicates whether Haskell support libraries are available.

testInterpret :: Interpreter a -> IO a #

Interpreting function for testing.

testEvaluate :: String -> IO () #

Evaluation function for testing.

evaluate #

Arguments

:: KernelState

The kernel state.

-> String

Haskell code or other interpreter commands.

-> Publisher

Function used to publish data outputs.

-> (KernelState -> [WidgetMsg] -> IO KernelState)

Function to handle widget messages

-> Interpreter KernelState 

Evaluate some IPython input code.

liftIO :: MonadIO m => IO a -> m a #

Lift a computation from the IO monad.

capturedIO :: Publisher -> KernelState -> IO a -> Interpreter Display #