[Haskell-cafe] random colors, stack space overflow,
mersenne and mersenne.pure64
Cetin Sert
cetin.sert at gmail.com
Fri Sep 12 22:15:16 EDT 2008
Oh, sorry... ^__^"
ghc -fglasgow-exts -O2 --make var
ghc -fglasgow-exts -O2 --make var2
I've not used pragmas in any source file o_O so far... should go fix that
sometime. Thanks for reminding...
Using ghc 6.8.3, mersenne-random-0.1.3 and mersenne-random-pure64-0.2.0.2.
(Cause I could not find out how to check things out with darcs from hackage
o__O google was not very helpful there so I used the latest tar packages.)
@don: sorry I sent my reply twice only to you and then to the list and
you... it's because of gmail... I'll be very careful not to repeat my
mistake.
2008/9/13 Don Stewart <dons at galois.com>
> Oh, you've got unicode source. What's the flag to get this to actually
> compile? (Note to readers, using extensions , you should always include
> the LANGUAGE pragmas required to build the file when asking for help :)
>
> How are you compiling this?
>
> -- Don
>
> cetin.sert:
> > Oh, hi *^o^*
> >
> > mersenne.pure64
> > [1]http://sert.homedns.org/lab/colors/var2.hs
> >
> > mersenne
> > [2]http://sert.homedns.org/lab/colors/var.hs
> >
> > the problem seems to be with the definition of colorR in var2.hs
> >
> > CS
> >
> > 2008/9/13 Don Stewart <[3]dons at galois.com>
> >
> > cetin.sert:
> > > random = color2
> > > randomR = colorR
> > >
> > > color2 :: RandomGen g .$B"M.(B g .$B"*.(B (RGB,g)
> > > color2 = colorR (minRGB,maxRGB)
> > >
> > > color :: RandomGen g .$B"M.(B g .$B"*.(B (RGB,g)
> > > color s0 = ((r,g,b),s3)
> > > where
> >
> > ^^^^^^^^^^
> >
> > There's some corruption in this text. Could you post the file
> somewhere?
> > -- Don
> >
> > References
> >
> > Visible links
> > 1. http://sert.homedns.org/lab/colors/var2.hs
> > 2. http://sert.homedns.org/lab/colors/var.hs
> > 3. mailto:dons at galois.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080913/dab75938/attachment.htm
More information about the Haskell-Cafe
mailing list