haskell-suite / haskell-src-exts

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

Get this to work with GHC 8.8. #431

Closed galenhuntington closed 4 years ago

galenhuntington commented 5 years ago

The issue is the MonadFail changes.

I tried to do the minimum for compatibility. Since fail is explicitly called in various places, several Monad constraints had to be promoted to MonadFail. This could be considered a breaking change, although the current MonadFail is effectively the old Monad.

I also note there are various #if __GLASGOW_HASKELL__ < 710 sprinkled throughout. I somewhat doubt this package will still build on GHC 7, so those blocks can probably be dropped now.