throwable-exceptions-0.1.0.5: throwable-exceptions gives the easy way to throw exceptions

Safe HaskellNone
LanguageHaskell2010

Control.Exception.Throwable.TH

Description

The data types creator of exceptions in the compile type.

It has the record of "cause" and "clue".

Synopsis

Documentation

declareException :: String -> DecsQ Source #

Declare simple concrete exception datat type in the compile time.

exceptionName must be PascalCase (e.g> IOException', IndexOutOfBoundsException. NG> "ioException'", "indexOutOfBoundsException") .

And exceptionName should have the suffix of Exception.