ozataman / csv-conduit

Flexible, fast and constant-space CSV library for Haskell using conduits
Other
52 stars 33 forks source link

Add MonadFail instance for base >= 4.13 #38

Closed tfausak closed 5 years ago

tfausak commented 5 years ago

This fixes the following errors:

.../csv-conduit-0.7.0.0/src/Data/CSV/Conduit/Conversion.hs:754:5: error:
    `fail' is not a (visible) method of class `Monad'
    |
754 |     fail msg = Parser $ \kf _ks -> kf msg
    |     ^^^^

.../csv-conduit-0.7.0.0/src/Data/CSV/Conduit/Conversion.hs:755:16: error:
    The INLINE pragma for `fail' lacks an accompanying binding
      (The INLINE pragma must be given where `fail' is declared)
    |
755 |     {-# INLINE fail #-}
    |                ^^^^
MichaelXavier commented 5 years ago

Thanks! I'll try to get a release out soon.