Coreutils implementation in Haskell