| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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 |
Instances
| Eq LambdaException Source # | |
Defined in Language.Lambda.Shared.Errors Methods (==) :: LambdaException -> LambdaException -> Bool # (/=) :: LambdaException -> LambdaException -> Bool # | |
| Show LambdaException Source # | |
Defined in Language.Lambda.Shared.Errors Methods showsPrec :: Int -> LambdaException -> ShowS # show :: LambdaException -> String # showList :: [LambdaException] -> ShowS # | |
| Exception LambdaException Source # | |
Defined in Language.Lambda.Shared.Errors Methods toException :: LambdaException -> SomeException # | |
| Display LambdaException Source # | |
Defined in Language.Lambda.Shared.Errors | |
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 #