[Haskell-beginners] Error while using indices and elem