- É uma linguagem puramente
funcional
; - Em linguagens puramente funcionais variáveis não mudam de valor;
- Em linguagens puramente funcionais funções não tem efeitos colaterais;
- A única coisa que podemos fazer com uma função é calcular algo e devolvê-lo como um resultado.
- Haskell é estaticamente tipado;
- Ele faz inferência de tipos. Ou seja, Não é necessário ficar colocando o tipo todo hora;
- Haskell normalmente tem a extensão
.hs
;
-
Baixe e instale o compilador
Glasgow Haskell Compiler(GHC)
que é o mais usado no mundo Haskell em: https://www.haskell.org/ghc/. -
Ou baixe uma plataforma mais completa para desenvolvimento em Haskell: https://www.haskell.org/platform/ .
-
Para testar rapidamente use o modo interativo do Haskell digitando: ghci.
-
Carregue um script no
ghci
com::l nome_do_script
.E atualize-o com
:l nome_do_script
ou:r
.