#1444: Template Haskell: add proper support for qualified names in non-splicing
applications
---------------------------------+------------------------------------------
Reporter: SamB | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Template Haskell | Version: 6.6.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
---------------------------------+------------------------------------------
Comment (by simonpj):
You'd refer to `GHC.Base.map` or whereever `map` is actually defined.
The problem you are trying to solve is this: you want Derive to print out
a Haskell program that mentions `map` and, when compiled, will get the
right `map`. The only way I know to do that for sure is
a) print out `GHC.Base.map` and import `GHC.Base` (or whatever the right
module is; Dervive, being a TH program, can find out easily.
b) or add some new lexical syntax so you can `{-# ORIG #-} GHC.Base.map`
as I suggested earlier.
The advantage of (a) is that can do it right away, without waiting for
some not-yet-designed feature to be implemented.
S
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1444>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs