On 25 July 2010 05:50, Tobias Brandt <tob.bra...@googlemail.com> wrote: > > You have to fix the type of 1 and 6, e.g. by writing > x <- randomRIO (1, 6) :: IO Int > or > x <- randomRIO (1, 6 :: Int) > GHCi defaults integral numbers to Int, that's why it works there.
The default numeric type is Integer, not Int. -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe