[Haskell-cafe] Optimization flag changing result of code execution

Aleksey Khudyakov alexey.skladnoy at gmail.com
Tue Jul 9 20:43:36 CEST 2013

On 09.07.2013 22:10, kudah wrote:
> Same here, I used mwc-random to generate random strings. It works in
> ghci and when compiled with -O0, but with -O1 and -O2 I've been getting
> exclusively a's and b's.
It looks like MWC generates only 0 and 1 for some reason. I've tried to 
write simple test but everything works fine. Could you post test case 
and compiler/libraries/OS versions you use?

More information about the Haskell-Cafe mailing list