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





_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to