mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
Update haskell.html.markdown
This commit is contained in:
parent
a281916b56
commit
fd2b88e576
@ -307,6 +307,7 @@ Just 1
|
|||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = putStrLn "Hello, sky! " ++ (say Blue)
|
main = putStrLn "Hello, sky! " ++ (say Blue)
|
||||||
|
-- putStrLn has type putStrLn :: String -> IO()
|
||||||
|
|
||||||
-- It is easiest to do IO if you can implement your program as
|
-- It is easiest to do IO if you can implement your program as
|
||||||
-- a function from String to String.
|
-- a function from String to String.
|
||||||
|
Loading…
Reference in New Issue
Block a user