[Haskell-beginners] Date type needs helper function?