[GHC] #15988: Remove Text.Printf and System.Console.GetOpt from base
GHC
ghc-devs at haskell.org
Mon Dec 3 08:58:45 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 svenpanne):
Replying to [ticket:15988 andrewthad]:
> [...] There would be breakage from doing this, but libraries and
applications that use these APIs would only need to add a single line to
`build-depends` to continue being compatible with all versions of `base`.
[...]
Hmmm, I don't think it's that easy: If you add the proposed `getopt`
package to `build-depends` and compile with current `base`, GHC will see
*two* implementations of `System.Console.GetOpt`: One from `base` and one
from `getopt`. I really hope that this will result in a compilation error,
silently picking one of the two implementations would be really, really
bad...
I think you will at least have to guard your `build-depends` with a `if
impl(ghc >= X.Y)`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15988#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list