[Haskell-beginners] Help with expressing polymorphic return type