Improve Haskell code to use >>> for composition pipelines left to right.