haskellator-0.1.0.0: SI-Units supporting calculator
Safe HaskellSafe-Inferred
LanguageHaskell2010

Math.Haskellator.Internal.Utils.Error

Synopsis

Documentation

data Error Source #

Error type. Every error has a kind and a message.

Constructors

Error Kind String 

Instances

Instances details
Show Error Source # 
Instance details

Defined in Math.Haskellator.Internal.Utils.Error

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Eq Error Source # 
Instance details

Defined in Math.Haskellator.Internal.Utils.Error

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

data Kind Source #

Constructors

ParseError

Error while syntactic analysis

ScanError

Error while lexical analysis

RuntimeError

Error during execution of the expression

ImplementationError

Error in the implementation. This is the only error that should ideally not happen.

Instances

Instances details
Show Kind Source # 
Instance details

Defined in Math.Haskellator.Internal.Utils.Error

Methods

showsPrec :: Int -> Kind -> ShowS #

show :: Kind -> String #

showList :: [Kind] -> ShowS #

Eq Kind Source # 
Instance details

Defined in Math.Haskellator.Internal.Utils.Error

Methods

(==) :: Kind -> Kind -> Bool #

(/=) :: Kind -> Kind -> Bool #