Unfortunately, many Template Haskell functions have absolutely no documentation at all. One such function is report. It takes a Bool and a String, and produces a compilation error with the specified string as the error message. Does anybody have any clue what the hell the Bool is for? As best as I can tell, either value does exactly the same thing…
Unfortunately, many Template Haskell functions have absolutely no documentation at all. One such function
Share
If the
BoolisTrue, an error is reported; if it isFalse, a “warning” is reported, meaning that the template code will continue to run to collect more “warnings.”