Skip to content

Derive MonadThrow, MonadCatch, and MonadMask with GNTD

Ben Gamari requested to merge bgamari/zeromq-haskell:develop into develop

Previously MonadMask was missing genericBracket, which was introduced in exceptions-0.9. While one could implement this manually, it's far simpler to just allow the compiler to do this for us.

While in town, I also use GNTD to derive Functor, Applicative, Monad by GNTD for the sake of consistency.

Merge request reports

Loading