
Isaac Dupree
main = do if 1 < (2::Integer) then print "SmartIntegerB" else print "StupidIntegerB"
"SmartIntegerB" --not working right
That looks like the correct result to me.
Segmentation fault (core dumped) --Instance Show Integer crashes the program
Interesting.
I suppose maybe I compiled nhc wrong, since I manually modified an "==" to "=" in one file, and restarted its compilation several times, though I can't see how those could cause these problems...
The "==" to "=" change was fine, and there is now a patch in the repo for that anyway. You say that your gcc gives random crashes. My best guess is flaky hardware - bad memory. Maybe there was some random corruption in gcc whilst building something in the runtime system. I would try rm targets/powerpc-Darwin8/obj/runtime rm targets/powerpc-Darwin8/runtime make runtime and see if you get the same behaviour. Regards, Malcolm