Quick question I've encountered while getting my feet under me in Haskell related to this quick test:
module Main where
main :: IO()
main = putStrLn (show (inc 3))
inc :: (Num a) => a -> a
inc x = x+1
Is there a better way to output the value of the inc function? I could not get output without using nested parens to force evaluation order. With fewer parens I receive type errors. Just figure there must be a better way.
Thanks if you can clear my head :)