lambda-calculator-1.1.1: A lambda calculus interpreter

Safe HaskellSafe
LanguageHaskell2010

Language.Lambda

Synopsis

Documentation

data LambdaExpr name Source #

Constructors

Var name 
App (LambdaExpr name) (LambdaExpr name) 
Abs name (LambdaExpr name) 

Instances

Eq name => Eq (LambdaExpr name) Source # 

Methods

(==) :: LambdaExpr name -> LambdaExpr name -> Bool #

(/=) :: LambdaExpr name -> LambdaExpr name -> Bool #

Show name => Show (LambdaExpr name) Source # 

Methods

showsPrec :: Int -> LambdaExpr name -> ShowS #

show :: LambdaExpr name -> String #

showList :: [LambdaExpr name] -> ShowS #

PrettyPrint a => PrettyPrint (LambdaExpr a) Source # 

data ParseError :: * #

The abstract data type ParseError represents parse errors. It provides the source position (SourcePos) of the error and a list of error messages (Message). A ParseError can be returned by the function parse. ParseError is an instance of the Show and Eq classes.

evalExpr :: Eq n => [n] -> LambdaExpr n -> LambdaExpr n Source #