throwable-exceptions-0.1.0.9: 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 :: DatatypeName -> [ValueConstructorName] -> DecsQ Source #

Declare simple concrete exception data type in the compile time.

If the empty list is given to constrNames, create empty data type.

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