Friend modules
For the sake of testing, I would like to import everything from a module that I test, not only the things it exports.
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
Trac metadata
Trac field | Value |
---|---|
Version | 8.2.1 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |