On Fri, Nov 05, 1999 at 15:59:29 +0100, George Russell wrote:
> Long.hs looks fairly simple to me.  However when compiled with
> ghc -O2, I get a segmentation fault:
> > ghc Long.hs -o long -O2
> > ./long
> > Segmentation Fault

works, regardless of '', '-O', '-O2'...

> ABC.hs is a little more complicated (it generates an infinite string
> of ABCs containing no consecutive equal sequences).  Whatever I do
> (ghc, ghc -O or ghc -O2) it falls over with:
> 
> Fail: resource exhausted
> Action: writeChunks
> Reason: insufficient resources

works, too...

Just tested on:
GHC: 4.04-19991022
OS:  Solaris 2.7

GHC: 4.04-19990813
OS:  Solaris 2.7

GHC: 4.04pl1
OS:  Linux


Cheers,
Michael
-- 
standard construction, def:
    "sort of a mathematical equivalent of 'hey you'"
                           -- Phil Wadler, "Monads"

Reply via email to