purescript-0.5.6.1: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

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

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

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

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

Rethrow an error with source position information