haskell read a file code example
Example: haskell print
-- Use 'putStrLn' to print
ghci> putStrLn "Hello World!"
Hello World!
-- Type of 'putStrLn' function
ghci> :t putStrLn
putStrLn :: String -> IO ()
-- Use 'putStrLn' to print
ghci> putStrLn "Hello World!"
Hello World!
-- Type of 'putStrLn' function
ghci> :t putStrLn
putStrLn :: String -> IO ()