Pedro Henrique	
(@phinfonet/@unixman_)
Pedro Henrique	
(@phinfonet/@unixman_)
Um pouco de Haskell…
Um pouco de Haskell…
• Puramente funcional
Um pouco de Haskell…
• Puramente funcional
• Estaticamente tipada
Um pouco de Haskell…
• Puramente funcional
• Estaticamente tipada
• Preguiçosa, Elegante e Concisa
Syntaxe
Syntaxe
Operações Aritméticas
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
Operações Aritméticas
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
Operações Aritméticas
Funções
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
1 hello203 :: String -> String
2 hello203 user = "Hello, "++user++" Welcome to 203px“
Operações Aritméticas
Funções
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
1 hello203 :: String -> String
2 hello203 user = "Hello, "++user++" Welcome to 203px“
Operações Aritméticas
Funções
Listas
Syntaxe
1 4 * 2 - 2
2 4 - 3 * 2
3 6 / 7 + 8
4 10 * 2 ** 2
1 hello203 :: String -> String
2 hello203 user = "Hello, "++user++" Welcome to 203px“
Operações Aritméticas
Funções
1 last [80,30,40,50,3] !
2 init [80,30,40,50,3] !
3 tail [80,30,40,50,3]
4 head [80,30,40,50,3] !
5 sum [80,30,40,50,3] !
6 product [80,30,40,50,3] !
7 maximum [80,30,40,50,3] !
8 minimum [80,30,40,50,3]
Listas
Quem usa Haskell?
Quem usa Haskell?
• Google
Quem usa Haskell?
• Google
• Facebook
Quem usa Haskell?
• Google
• Facebook
• Intel
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
• ABN AMRO
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
• ABN AMRO
• AT&T
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
• ABN AMRO
• AT&T
• Qualcomm
Quem usa Haskell?
• Google
• Facebook
• Intel
• NVIDIA
• The New York Times
• ABN AMRO
• AT&T
• Qualcomm
• Barclays Capital
Quantitative Analytics
Group
Mas pera aí…
Mas pera aí…
Mas pera aí…
Então a web ficou
de fora?
Yesod Framework
Yesod Framework
• Escalável e de Alta Performance
Yesod Framework
• Escalável e de Alta Performance
• Seguro
Yesod Framework
• Escalável e de Alta Performance
• Seguro
• Syntaxe Simples
Yesod Framework
• Escalável e de Alta Performance
• Seguro
• Syntaxe Simples
• Shakesperean Templates = {hamlet,cassius,julius}
“You know the power of the dark side.”
Ask’s time…

A bit of Haskell