slab-0.0.2.0: A programmable markup language to generate HTML
Safe HaskellSafe-Inferred
LanguageHaskell2010

Slab.Error

Description

Slab.Error provides a data type to represent all the errors emitted by Slab. It also provides helper functions to report errors in a human-readable way.

Synopsis

Documentation

data Error Source #

Represent all errors emitted by Slab. I.e. this is used in each stage (Parse, PreProcess, Evaluate, ExecuteError).

Instances

Instances details
Show Error Source # 
Instance details

Defined in Slab.Error

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Eq Error Source # 
Instance details

Defined in Slab.Error

Methods

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

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

unwrap :: Either Error a -> IO a Source #

Extract a Right value, or die, emitting an error message.