[Haskell-cafe] Haskell Debugging

Ross Paterson ross at soi.city.ac.uk
Wed Nov 15 11:38:19 EST 2006


On Mon, Nov 13, 2006 at 04:32:34PM +0100, Valentin Gjorgjioski wrote:
> import Hugs.Observe
> 
> ex8 :: [Float]
> ex8 = (observe "after reverse" ) reverse  [10.0,7.0,3.0,0.0,4.0]
> 
> gives me
> 
> >ex8
> [4.0,0.0,3.0,7.0,10.0]
> 
> >>>>>>> Observations <<<<<<
> 
> after reverse
>   { \ ($-990871 : $-990888 : $-990905 : $-990922 : $-990939 : [])  -> 
> $-990939 : $-990922 : $-990905 : $-990888 : $-990871 : []
>   }

It's a Hugs bug (Float only, Double is fine).  Now fixed in CVS.



More information about the Haskell-Cafe mailing list