[Haskell-beginners] finding the cause of an error (here head: empty list)