coreutils implemented in Haskell