[GHC] #10336: Support qualified self {-# SOURCE #-} import

GHC ghc-devs at haskell.org
Thu Feb 25 18:39:09 UTC 2016


#10336: Support qualified self {-# SOURCE #-} import
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  lowest            |            Milestone:  ⊥
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:  7672              |             Blocking:  11637
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 I vote that this is a bug, not a feature. The real problem is that we
 can't qualify the current module, not that we can't do a silly recursive
 self-import. Why not just

 {{{#!hs
 module A as MyA where
 }}}

 That seems much more direct.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10336#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list