[Haskell-beginners] the equivalent of OO class data and methods