Monthly Archives: February 2014

The do notation in Haskell

Now that we have seen some elementary examples of Monads, it is the best time to introduce you to the do notation in Haskell. One of my tweets reads: “In Haskell, the do notation is syntactic sugar for monadic operations.” … Continue reading

Posted in Development

Functors and other dirty words

Title: Functors and other dirty words. Alternative title: Functors, Applicatives, and Monads, with a dash of Category Theory and a generous amount of Haskell. Introduction Let us consider (think of) a type. Any type that Haskell supports. Let us call … Continue reading

Posted in Development

Is “the guilty dog” really guilty?

Denver behaves this way because she understands that she is blamed for something. Perhaps she even understands what she is accused of, although this last part is not certain. And I doubt that she has anything to do with what … Continue reading

Posted in Management

Examples of Functors in Haskell

Title: Examples of Functors in Haskell Alternative title: Practical Functors in Haskell In previous posts, I have talked about Functors a lot. It is high time to put what we have learned to practice. It is high time to show … Continue reading

Posted in Development

Tuples vs. records in Haskell

Title: Tuples vs. records in Haskell Alternative title: How to do Object-Oriented Programming in Haskell Many newcomers to Haskell learn about the support for tuples in the language and immediately fall victims of them. This is because they use them … Continue reading

Posted in Development

Notations for function application and composition in Haskell

I am going to cover the three notations, the three ways that function application and composition can be expressed in Haskell. These are i) parentheses, ii) the $ operator and iii) the dot (.) operator. To study these notations, let … Continue reading

Posted in Development