haskell-suite / haskell-src-exts

Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Other
193 stars 94 forks source link

Use MonadFail (does not build under ghc 8.8) #437

Closed andreasabel closed 4 years ago

andreasabel commented 5 years ago

The latest release (1.21.0) does not build under ghc 8.8.1, since it uses the old Monad.fail method (instead of MonadFail.fail):

[ 7 of 18] Compiling Language.Haskell.Exts.Fixity ( src/Language/Haskell/Exts/Fixity.hs, dist/build/Language/Haskell/Exts/Fixity.o )

src/Language/Haskell/Exts/Fixity.hs:72:25: error:
    • Could not deduce (MonadFail m) arising from a use of ‘infFix’
      from the context: Monad m
        bound by the type signature for:
                   applyFixities :: forall (m :: * -> *).
                                    Monad m =>
                                    [Fixity] -> Exp SrcSpanInfo -> m (Exp SrcSpanInfo)
        at src/Language/Haskell/Exts/Fixity.hs:72:3-15
leonschoorl commented 4 years ago

This was fixed by #440 and 1.21.1 is now on hackage