#2705: ghc discards version of wired-in packages
------------------------------+---------------------------------------------
Reporter: thoughtpolice | Owner:
Type: bug | Status: new
Priority: normal | Milestone: _|_
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown/Multiple
Os: Unknown/Multiple |
------------------------------+---------------------------------------------
Changes (by simonmar):
* difficulty: => Unknown
* summary: ghc does not report haskell98's version number. => ghc
discards version of wired-in packages
* milestone: => _|_
Comment:
This will happen for any of the "wired-in" packages. The current list of
wired-in packages is
{{{
ghc-prim
integer
base (the new one, not base-3.0.3.0)
rts
haskell98
syb
template-haskell
dph-seq
dph-par
}}}
For these, we internally use unversioned package Ids, because GHC needs to
refer to entities in these packages without knowing their version numbers.
So I agree that technically the error message is wrong, but it's not easy
to fix because we've thrown away the version information about these
packages.
I agree with Duncan that parsing these error message to figure out which
packages to enable is a bad idea. For instance, it told you about
"base-3.0.3.0", when you probably wanted "base-4.0.0.0".
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2705#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs