[Haskell-cafe] Errors with Template Haskell

Jose A. Lopes jabolopes at google.com
Fri Aug 9 10:48:06 CEST 2013


In Template Haskell, what is the proper way of signalling an error ?

For example, you are generating code and you detect that a given
parameter does not fulfill a precondition (e.g., String is empty), and
you want to abort compilation with a descriptive error message.


Jose Antonio Lopes
Ganeti Engineering
Google Germany GmbH
Dienerstr. 12, 80331, München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores
Steuernummer: 48/725/00206
Umsatzsteueridentifikationsnummer: DE813741370

More information about the Haskell-Cafe mailing list