three dots of :browse

Kazu Yamamoto ( 山本和彦 ) kazu at iij.ad.jp
Mon Apr 26 05:54:37 EDT 2010


> | data R = R {x :: Char, y :: Int, z :: Float}
> | data R = R {x :: Char, ...}
> | data R = R {..., y :: Int, ...}
> | data R = R {..., z :: Float}
> | 
> | which cannot be parsed.
> 
> That's a bug, plain and simple.  I know why it happens, too, though
> I will not bore you with the details.  I'll make a Trac ticket.

Thanks.

Another related question: ":browse Prelude" of GHC 6.12 displays:

data Integer
  = integer-gmp:GHC.Integer.Type.S# GHC.Prim.Int#
  | integer-gmp:GHC.Integer.Type.J# GHC.Prim.Int# GHC.Prim.ByteArray#

That of GHC 6.10 displays:

data Integer
  = GHC.Integer.Internals.S# GHC.Prim.Int#
  | GHC.Integer.Internals.J# GHC.Prim.Int# GHC.Prim.ByteArray#

Is the additional prefix of "integer-gmp:" intentional or a bug?

--Kazu


More information about the Glasgow-haskell-users mailing list