
Am Samstag 24 April 2010 07:07:15 schrieb Kazu Yamamoto:
Hello,
If I use :browse a module with GHC 6.12, it sometimes displays garbage. Here is an example:
Prelude> :browse Data.IP data AddrRange a = iproute-0.2.0:Data.IP.Range.AddrRange {addr :: a, mask :: a, mlen :: Int} (snip) data AddrRange a = iproute-0.2.0:Data.IP.Range.AddrRange {..., mask :: a, ...} data AddrRange a = iproute-0.2.0:Data.IP.Range.AddrRange {..., mlen :: Int}
"..." is the garbage. Due to this, I cannot parse the output of
:browse. This is not displayed with GHC 6.10.
Q1) What is the intention of "..."? Q2) How to prevent it so that I can obtain output which I can parse?
Perhaps *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?
--Kazu