[GHC] #15988: Remove Text.Printf and System.Console.GetOpt from base
GHC
ghc-devs at haskell.org
Mon Dec 3 12:41:31 UTC 2018
#15988: Remove Text.Printf and System.Console.GetOpt from base
-------------------------------------+-------------------------------------
Reporter: andrewthad | Owner: (none)
Type: task | Status: new
Priority: normal | Milestone: 8.6.3
Component: Compiler | Version: 8.6.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by andrewthad):
Sorry, I didn't explain that part clearly. I mean using cabal-the-
library's module reexport feature (1) (not GHC's module reexport feature).
In the cabal file for the `getopt` library, we would have something like
this:
{{{
library
default-language: Haskell2010
if impl(ghc < 8.8)
build-depends: base >= 4.5 (or whenever the module was originally
introduced)
reexported-modules: System.Console.GetOpt
else
hs-source-dirs: src
exported-modules: System.Console.GetOpt
}}}
So now on old GHCs, the module really is exported by both libraries, but
cabal (or maybe GHC) understands that these are the same module.
(1) https://ghc.haskell.org/trac/ghc/wiki/ModuleReexports
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15988#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list