> why has the following code indentation problem ?
> 
> rollDice n = do
>     let myGen =
>         if doesFileExist "/dev/urandom" 
>             then betterStdGen
>             else (mkStdGen . fromInteger) <$> picoSec

because "if" starts in the same column as "myGen",
so the parser inserts a ";" before the "if".

J.W.



_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to