Speed up MonadUtils.mapMaybeM
authorSimon Jakobi <simon.jakobi@gmail.com>
Sat, 17 Nov 2018 11:30:12 +0000 (12:30 +0100)
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>
Sat, 17 Nov 2018 12:52:26 +0000 (13:52 +0100)
commit5bf07866fe34a5b7eb27870ec73a9f44e1c9c37e
treec918137375d672b7d952fe2d115f62a5ae9210ea
parent92f81841e885f081bbb079d0dca6eb50b9043d4b
Speed up MonadUtils.mapMaybeM

Summary: This version is nearly 2x faster according to a few small benchmarks.

Reviewers: bgamari, monoidal

Reviewed By: monoidal

Subscribers: rwbarton, carter

Differential Revision: https://phabricator.haskell.org/D5344
compiler/utils/MonadUtils.hs