[GHC] #14138: Friend modules
GHC
ghc-devs at haskell.org
Sat Aug 19 07:44:04 UTC 2017
#14138: Friend modules
-------------------------------------+-------------------------------------
Reporter: andreas.abel | Owner: (none)
Type: feature | Status: new
request |
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
For the sake of testing, I would like to import everything from a module
that I test, not only the things it exports.
{{{#!hs
friend import A -- everything from A
friend import B (notExported) -- notExported from B
friend import qualified C.D as E -- you guess it
...
}}}
Current work arounds:
* Give up on export lists (ruins haddockumentation)
* Extra levels of indirection, see
https://mail.haskell.org/pipermail/beginners/2010-November/005717.html
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14138>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list