lambda-calculator-3.1.1.0: A lambda calculus interpreter
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Lambda.Shared.Errors

Synopsis

Documentation

data LambdaException Source #

Constructors

ParseError Text

An expression that cannot be parsed Examples:

x y = y

InvalidLet

A let binding nested in another expression Examples:

x. let y = z x (let y = z)

Fields

  • 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) (x: T. x) [U]

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