Ticket #1480 (new feature request)
Template Haskell should allow reification of modules
| Reported by: | igloo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | _|_ |
| Component: | Template Haskell | Version: | 6.6.1 |
| Keywords: | Cc: | Bulat.Ziganshin@…, ezyang@…, v.dijk.bas@…, hackage.haskell.org@…, ddf1991@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
It should be possible to reify a module from a splice. If the module is thisModule then it would only tell you about things above the current splice.
This comes up quite often; for example:
In http://www.haskell.org/pipermail/haskell-cafe/2007-June/027205.html Brent Yorgey wants to get a list of top-level functions names prop_* in order to build a runQuickCheckProps function.
In http://www.haskell.org/pipermail/haskell-cafe/2007-June/026493.html Neil Mitchell wants to get all the data/newtype declarations in a module in order to declare Typeable and Data instances for them.
Change History
Note: See
TracTickets for help on using
tickets.
