loading...
Cover image for What's Haskell?

What's Haskell?

lautarolobo profile image Lautaro Lobo Originally published at lautarolobo.xyz on ・1 min read

Haskell (4 Part Series)

1) What's Haskell? 2) Installing Haskell Compiler in Linux 3) Your First Haskell Function 4) A Recursive Function in Haskell

So, you are new in Haskell, and you want to know the basis, great!

Haskell is a purely functional programming language. What this is? Well, the variables do not change over time, the variable will always stay setted to the sepcific value given. So, if you called a function twice, with the same parameters given, the output will be always the same. This property is known as referential transparency. It lets you evaluate a function, and get to know if it’s correct.

Haskell is known as a lazy programming language. This means that it will do just the bare minimum computation required to show the result of a piece of code (if you tell him to show it).

And not less important, Haskell is statically typed and has type inference, so, if you do not specify the type of a function, Haskell will intelegently figure it out. And, if you mess up with the types, the compiler will tell you the error and, most of the times, specificly show you in wich line is it that everything blowed up. This helps to fix errors in early stages of development, so the probabilities of the program failing once it is released will be decreased.

Haskell (4 Part Series)

1) What's Haskell? 2) Installing Haskell Compiler in Linux 3) Your First Haskell Function 4) A Recursive Function in Haskell

Posted on by:

lautarolobo profile

Lautaro Lobo

@lautarolobo

While you read this I'm learning something new. CS ♥️

Discussion

markdown guide