cvs commit: hugs98/lib List.hs

Alastair Reid reid@glass.cse.ogi.edu
Tue, 3 Jul 2001 10:37:57 -0700


reid        2001/07/03 10:37:56 PDT

  Modified files:
    lib                  List.hs 
  Log:
  Cut and pasted the Prelude.length implementation into the genericLength
  implementation to avoid stack overflow when running Demos.Mersenne.digitsInP
  
  This changes the strictness of genericLength in the unlikely case that
  it is used with a Num instance with a non-strict + implementation.
  
  Revision  Changes    Path
  1.2       +5 -2      hugs98/lib/List.hs