Bizarre Haskell Problem

2003-01-29 Thread Matthew Donadio
Hello, I am having a bizarre Haskell problem that I am having difficulty debugging. I am not positive this is a compiler problem, but my results are not making any sense. I have attached a few source files which compiled with ghc-5.04.2 running under Win95. The files were compiled as: ghc -c

RE: Bizarre Haskell Problem

2003-01-29 Thread Simon Marlow
I am having a bizarre Haskell problem that I am having difficulty debugging. I am not positive this is a compiler problem, but my results are not making any sense. I have attached a few source files which compiled with ghc-5.04.2 running under Win95. The files were compiled as: ghc

Bizarre Haskell Problem

2003-01-27 Thread Matthew Donadio
Hi all, I am currently a having a bizarre Haskell problem, and was wondering if anyone had any suggestions. This is a snippet from a source file: foo n = [ a ^* i | i - [0..(n-2)] ] where i ^* j = (i ^ j) `mod` n a = generator n rader :: Array Int (Complex Double) - Int

Re: Bizarre Haskell Problem

2003-01-27 Thread Daan Leijen
Problem Hi all, I am currently a having a bizarre Haskell problem, and was wondering if anyone had any suggestions. This is a snippet from a source file: foo n = [ a ^* i | i - [0..(n-2)] ] where i ^* j = (i ^ j) `mod` n a = generator n rader :: Array Int (Complex Double