Generating the n! permutations in Haskell