Andreas Marth wrote:
>
> I just tried the ghc-4.045 for Win32-sytems and got the error "Variable not in
> scope: 'fromInt' ".
Someone correct me if I'm wrong, but I think the all-purpose function
you are supposed to use to turn an integer into some other sort of
number is called "fromIntegral".
I just tried the ghc-4.045 for Win32-sytems and got the error "Variable not in
scope: 'fromInt' ".
The code is something like:
>import System
>
>main = do args <- getArgs
> let arg = case args of
> [] -> error "No argument!"
> [h] -> h
> _ -> error "More then 1argument!"
> putStr (show (