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

GHC ghc-devs at haskell.org
Wed Feb 24 22:27:23 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 ezyang):

 This StackOverflow question suggests one possible use for this:
 http://stackoverflow.com/questions/35608734/alias-a-module-defined-in-the-
 same-file-in-haskell which is to make it possible to disambiguate an
 locally defined identifier which is ambiguous due to another identifier in
 scope with the same name. But it is definitely a bit goofy to use an hs-
 boot file to achieve this.

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


More information about the ghc-tickets mailing list