id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
2962,Reduce space usage of genericLength for common Num instances,thorkilnaur,thorkilnaur,"There is a space leak in {{{genericLength}}}:
{{{
$ ghc/stage2-inplace/ghc --interactive
GHCi, version 6.11.20090116: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :module +List
Prelude List> genericLength [1..600000]
*** Exception: stack overflow
Prelude List>
Prelude List> length [1..600000]
600000
Prelude List>
}}}
The attached patch against the base library provides a fix.

Best regards
Thorkil
",bug,closed,normal,6.12 branch,libraries/base,6.11,fixed,"rules, specialisation",dons dcoutts,Unknown/Multiple,Unknown/Multiple,,Unknown,,,,
