Tobias Dammers

programming

RSS

Blog

Object-Oriented Haskell - Part 2: Mutability And Multiple Interfaces

(Nov 1, 2017)

In Part 1 , we have seen how an interface-based OOP model can be implemented in idiomatic Haskell; we defined interfaces, a typeclass to enable a typesafe cast-to-interface function, and an accessor function / operator to conveniently access an o...

Object-Oriented Haskell - Part 1: Objects, Fields, Methods, Interfaces

(Oct 17, 2017)

Object-oriented Haskell, you say? But isn't Haskell a functional programming language? Aren't functional programming and object-oriented programming mutually exclusive? Well; no, they are not, and I will show you how it is possible to write object-oriented ...

Object-Oriented Haskell - Part 3: Generalized Mutability

(Nov 21, 2017)

In Part 1 , we have seen how an interface-based OOP model can be implemented in idiomatic Haskell, and we then extended this model to allow for mutable objects by using IORef in Part 2 . In this part, we will extend the model furth...