[GHC] #12249: Template Haskell top level scoping error
GHC
ghc-devs at haskell.org
Tue Jul 5 14:34:31 UTC 2016
#12249: Template Haskell top level scoping error
-------------------------------------+-------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Template Haskell | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by goldfire):
Your last comment suggests a way to think about all of this: Each
''declaration group'' (as defined in the
[https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html
#template-haskell manual]) is its own unnamed module that exports all of
its symbols. That actually might not be a bad way of implementing it
either. (And `newName` identifiers should never be exported, as per
discussion in comment:13:ticket:10599, yet to be finished.) In any case, I
still say you're building some sort of ad-hoc implicit module system.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12249#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list