Files
freeCodeCamp/guide/portuguese/haskell/hello-world/index.md
2018-10-16 21:32:40 +05:30

397 B

title, localeTitle
title localeTitle
Hello World Program Programa Hello World

O mais simples programa Hello World em Haskell

main :: IO () 
 main = do 
    putStrLn "Hello World" 

Hello World usando a composição da função

hello :: String 
 hello = "Hello World" 
 
 printer :: String -> IO () 
 printer = putStrLn . show 
 
 main :: IO () 
 main = printer hello