lambda-calculator-3.0.0: A lambda calculus interpreter
Safe HaskellNone
LanguageHaskell2010

Language.Lambda.Shared.Errors

Synopsis

Documentation

data LambdaException Source #

Constructors

ParseError Text

An expression that cannot be parsed Examples:

x y = y

InvalidLet Text

A let binding nested in another expression

TyMismatchError Text

The expected type does not match the actual type Examples:

(x: X. x) (y:Y)

ImpossibleError

A catch-all error that indicates a bug in this project

isLambdaException :: LambdaException -> Bool Source #

Returns true if the passed in value is a LamdbaExpression. Can be used, for example, as a shouldThrow matcher