Ticket #1800 (new feature request)
Template Haskell support for running functions defined in the same module
|Reported by:||simonpj||Owned by:|
|Keywords:||Cc:||alfonso.acosta@…, Deewiant, reiner.pope@…, eir@…, hackage.haskell.org@…|
|Type of failure:||None/Unknown||Difficulty:||Unknown|
|Test Case:||Blocked By:|
Currently TH has the following restriction:
You can only run a function at compile time if it is imported from another module. That is, you can't define a function in a module, and call it from within a splice in the same module.
This is a pain. It should be fixed.