purescript-0.5.7: PureScript Programming Language Compiler

Safe HaskellNone

Language.PureScript.Errors

Description

 

Synopsis

Documentation

data ErrorSource Source

Type for sources of type checking errors

Constructors

ExprError Expr

An error which originated at a Expr

TypeError Type

An error which originated at a Type

Instances

data CompileError Source

Compilation errors

Constructors

CompileError 

Fields

compileErrorMessage :: String

Error message

compileErrorValue :: Maybe ErrorSource

The value where the error occurred

compileErrorPosition :: Maybe SourcePos

Optional source position information

Instances

data ErrorStack Source

A stack trace for an error

stringifyErrorStack :: Bool -> Either ErrorStack a -> Either String aSource

rethrow :: MonadError e m => (e -> e) -> m a -> m aSource

Rethrow an error with a more detailed error message in the case of failure

rethrowWithPosition :: MonadError ErrorStack m => SourcePos -> m a -> m aSource

Rethrow an error with source position information