Hi,
It seem that any record, no matter how trivial, can't be much
longer than about 200 lines in Haskell. If a try to compile a
300 line record containing just:
data X = X {
f1 :: String,
f2 :: String,
f3 :: String,
...
f300 :: String
}
It needs about 90M heap in ghc4.06. Whereas a 150 line record
requires less than 6M heap. After this big gap it levels off
to a somewhat more decent exponential increase: a 450 line
record requires about 180M heap.
I could file a bug report, but it seems that all compilers
(ghc4.06, nhc98, hbc0.9994 and hugs) have this problem. So,
is this a fundamental problem ?
Jan