(sorry, I will be quiet after this) For historical references, see https://www.imn.htwk-leipzig.de/~waldmann/etc/data-list-permutations/ The code appeared in the Haskell 1.3 Library report (1996) and was modified in 2007. - J.