[Haskell-cafe] Int->[Char] conversion

Jared Updike jupdike at gmail.com
Wed Aug 16 14:47:28 EDT 2006


> putStrLn ("Product: " ++ convertnumbertostring(pp))

Also, there is a predefined function called 'print' where

print x = putStr (convertnumbertostring x)
i.e.
print x = putStr (show x)

  Jared.


More information about the Haskell-Cafe mailing list