[Haskell-beginners] dismantling monolithic data structure