[Haskell-cafe] Strange subtract operator behavior - and lazy naturals

David Benbennick dbenbenn at gmail.com
Wed Oct 17 20:43:08 EDT 2007


This module doesn't appear to be very lazy to me.  For example, in ghci,

*Util.LazyNum List> genericLength (1:2:undefined) > (1 :: Nat)
*** Exception: Prelude.undefined

How is this module intended to be used?


More information about the Haskell-Cafe mailing list