strictness of interpreted haskell implementations
Neil Mitchell
ndmitchell at gmail.com
Mon May 18 12:14:56 EDT 2009
Hi
>> data S = S { a :: Int, b :: ! Int }
>>
>> Main> a (S { a = 0, b = 1 })
>> 0
>> Main> a (S { a = 0, b = undefined })
>> 0
>>
>> Ho hum. Is this a "known difference"?
I've submitted a bug: http://hackage.haskell.org/trac/hugs/ticket/92
> As an ex teaching assistant my recommendation is "Use ghci!".
I helped to teach using WinHugs, which was quite nice. Auto reload
cuts out one very frequent source of problems.
Thanks
Neil
More information about the Glasgow-haskell-users
mailing list