telomare-0.1.0.0: A simple but robust virtual machine
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telomare.RunTime

Synopsis

Documentation

debugTrace :: String -> a -> a Source #

cPlus :: ((a -> a) -> a -> a) -> ((a -> a) -> a -> a) -> (a -> a) -> a -> a Source #

rEval Source #

Arguments

:: IExpr

The enviroment.

-> IExpr

IExpr to be evaluated.

-> IExpr 

IExpr evaluation with a given enviroment e (as in the second element of a closure).

iEval :: MonadError RunTimeError m => (IExpr -> IExpr -> m IExpr) -> IExpr -> IExpr -> m IExpr Source #

The fix point combinator of this function (of type `IExpr -> IExpr -> m IExpr`) yields a function that evaluates an IExpr with a given enviroment (another IExpr).

hvmEval :: IExpr -> IO IExpr Source #

Evaluation with hvm backend

showPass :: (Show a, MonadIO m) => m a -> m a Source #

typedEval :: (IExpr -> DataType -> Bool) -> IExpr -> (IExpr -> IO ()) -> IO () Source #

debugEval :: (IExpr -> DataType -> Bool) -> IExpr -> IO () Source #

fullEval :: (IExpr -> DataType -> Bool) -> IExpr -> IO () Source #

Orphan instances

AbstractRunTime NExprs Source # 
Instance details

Methods

eval :: NExprs -> NExprs Source #

AbstractRunTime IExpr Source # 
Instance details

Methods

eval :: IExpr -> IExpr Source #

TelomareLike NExprs Source # 
Instance details

TelomareLike IExpr Source # 
Instance details