All you need to know about Programming

Category Archives: Haskell

Before we get into recursion, we need to see some basic expressions first, so that you can increase your portfolio. The first one we will see is “if then else”. This is a logical expression, basically it means: If something then something or else other thing. Example:

When you have if something then True [...]


We have already seen how you declare types on lesson 101, however, there’s a type that might be one the most fundamental of Haskell, Lists. A list is not an actual type, like we have seen before, but we will get to that in a bit, first we will see the concept of what is [...]


You can’t do anything without operators, they are fundamental for comparing things, add them together, etc. I’ll explain some of them but you can get a big list of them over here: Operators The most basic and those you will use mostly are: >,<,==,>=,<= These are very straight forward, they can be used for comparing [...]


In Haskell, things are defined in the following way: e :: T Where e stands for expression and T for Type. What this means is that whenever you want to define something, you need to have those two components.

A function is constituted by Arguments and Definition. What this means is that without these two things, your program will not [...]


Alright, let’s start learning Haskell. I find Haskell to be a good first language as it is easier to program than other languages, like C. Haskell is different than most usual languages as it is a Functional language rather than a imperative language. I find this quote (from Learn Haskell for a Greater Good) to summarize [...]


For programming in Haskell, you’ll need some simple tools, yet necessary for compiling and actually seing the results of what you just wrote. For now we will work on these tools, but later I’ll introduce you to IDE’s… they save up time and make programming an easier job, as they complete identation and such. For actual writing [...]