Jugendhackt / haskell-ricochet

(WIP/Experimental) Ricochet implementation as Haskell Library.
GNU General Public License v3.0
22 stars 0 forks source link

Refactor the hprotoc cabal hook implementation #42

Closed photm5 closed 8 years ago

photm5 commented 8 years ago

I discovered on from Data.Function, which simplifies the implementation of uncurry2 quite a bit, making it small enough to inline:

uncurry2 = (`on` uncurry)

Additionally, @iblech told me combine' was essentially liftM2 (<>) in the reader monad, so I improved the implementation of that one, too.

froozen commented 8 years ago

Looks good. :+1: