[clean-list] stack overflow while compiling

Peter Hercek peter at syncad.com
Thu Aug 30 17:49:16 MEST 2007


Hi,

Not sure this should be really considered a bug.
I was playing with fixed point operators and noticed this.
Surprisingly when the let command looks like:
"let x = x^2 in" then it reports a nicer error:
"cycle in spine detected"

Nice examples work OK though:
Start = let fact = \x = if (x <= 1) 1 (x * fact (x-1)) in fact 3


Peter.



Here is the source of the test. Clean used: v2.2 WinXP 64 bit.

module test
import StdEnv

f :: Real -> Real
f x =
  let x = x * x in
  x

Start = f 0.5



More information about the clean-list mailing list