three dots of :browse
Kazu Yamamoto ( 山本和彦 )
kazu at iij.ad.jp
Sun Apr 25 21:50:32 EDT 2010
Hello,
> *Test> :browse! Test
> -- defined locally
> data R = R {x :: Char, y :: Int, z :: Float}
> R :: Char -> Int -> Float -> R
> x :: R -> Char
> y :: R -> Int
> z :: R -> Float
>
> is the answer?
Thank you for your reply. Unfortunately, the answer is NO.
":browse!" cannot be used for my program.
I want to use ":browse".
Again, my question is: suppose the following code is given:
module Test (R(..)) where
data R = R { x :: Char, y :: Int, z :: Float }
and ":browse" of GHC 6.12 displays:
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. But ":browse" of GHC 6.10 displays:
data R = R {x :: Char, y :: Int, z :: Float}
which can be parsed.
Is this intentional change or a bug of GHC 6.12?
--Kazu
More information about the Glasgow-haskell-users
mailing list