[GHC] #2344: oddity with package prefixes for data constructors
GHC
trac at galois.com
Wed Jun 4 18:56:16 EDT 2008
#2344: oddity with package prefixes for data constructors
------------------------+---------------------------------------------------
Reporter: claus | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 6.9 | Severity: normal
Keywords: | Testcase:
Architecture: Unknown | Os: Unknown
------------------------+---------------------------------------------------
consider
{{{
$ ./ghc-6.9.20080514/bin/ghcii.sh
GHCi, version 6.9.20080514: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> :browse Data.Time.Clock
getCurrentTime :: IO UTCTime
newtype DiffTime
= time-1.1.2.0:Data.Time.Clock.Scale.MkDiffTime Data.Fixed.Pico
newtype NominalDiffTime
= time-1.1.2.0:Data.Time.Clock.UTC.MkNominalDiffTime Data.Fixed.Pico
data UTCTime
= UTCTime {utctDay :: time-1.1.2.0:Data.Time.Calendar.Days.Day,
utctDayTime :: DiffTime}
newtype UniversalTime
= ModJulianDate {getModJulianDate :: Rational}
addUTCTime :: NominalDiffTime -> UTCTime -> UTCTime
diffUTCTime :: UTCTime -> UTCTime -> NominalDiffTime
picosecondsToDiffTime :: Integer -> DiffTime
secondsToDiffTime :: Integer -> DiffTime
}}}
there is only one time package installed, so i'm surprised to see any
package prefixes at all here
{{{
$ ./ghc-6.9.20080514/bin/ghc-pkg.exe find-module Data.Time.\*
c:/fptools/ghc/ghc-6.9.20080514\package.conf:
time-1.1.2.0
}}}
but by what system do some things get prefixes and others don't? are there
any invisible modules that need the distinction, or is this an output bug?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2344>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list