Ticket #1800 (new feature request)
Template Haskell support for running functions defined in the same module
| Reported by: | simonpj | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | _|_ |
| Component: | Template Haskell | Version: | 7.7 |
| Keywords: | Cc: | alfonso.acosta@…, Deewiant, reiner.pope@…, eir@…, hackage.haskell.org@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
See http://www.haskell.org/pipermail/template-haskell/2007-October/000619.html, for example.
Change History
Note: See
TracTickets for help on using
tickets.
