Author Archive | Debasish Ghosh

Monads, Applicative Functors and sequencing of effects

Monads and applicative functors are both used to model computations – yet it’s interesting to note the subtle differences in the way they handle sequencing of effects. Both of them support an applicative style of effectful programming that lets you write code in pointfree style (in Haskell) making your code look so expressive. Applicative functors […]

Continue Reading

Towards generic APIs for the open world

In my last post on how Clojure protocols encourage open abstractions, I did some quick rounds between type classes in Haskell and protocols in Clojure. At the end in the section titled “Not really a type class”, I mentioned about the read function of Haskell’s Read type class. read takes a String and returns a […]

Continue Reading