Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
data LambdaException Source #
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) |
| |
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 |
Instances
Exception LambdaException Source # | |
Defined in Language.Lambda.Shared.Errors | |
Show LambdaException Source # | |
Defined in Language.Lambda.Shared.Errors showsPrec :: Int -> LambdaException -> ShowS # show :: LambdaException -> String # showList :: [LambdaException] -> ShowS # | |
Eq LambdaException Source # | |
Defined in Language.Lambda.Shared.Errors (==) :: LambdaException -> LambdaException -> Bool # (/=) :: LambdaException -> LambdaException -> Bool # | |
Display LambdaException Source # | |
Defined in Language.Lambda.Shared.Errors display :: LambdaException -> Utf8Builder # textDisplay :: LambdaException -> Text # |
isLambdaException :: LambdaException -> Bool Source #
Returns true if the passed in value is a LamdbaExpression. Can be used, for example,
as a shouldThrow
matcher
isLetError :: LambdaException -> Bool Source #
isParseError :: LambdaException -> Bool Source #