[Haskell-cafe] random colors, stack space overflow, mersenne and mersenne.pure64

Albert Y. C. Lai trebla at vex.net
Sun Sep 14 13:24:18 EDT 2008


Cetin Sert wrote:
> main = do
>   as <- getArgs
[...]
>   where
>     lo = read $ as !! 0
>     hi = read $ as !! 1
>     tx =        as !! 2
> 
> Why is as not visible in the where block?

The where-block is outside the do-block. (Indentation cannot change that 
fact.)



More information about the Haskell-Cafe mailing list