haskell / fgl

A Functional Graph Library for Haskell
http://hackage.haskell.org/package/fgl
Other
184 stars 54 forks source link

Remove MonadFail from being a superclass of GraphM. #104

Closed athas closed 1 year ago

athas commented 1 year ago

This adds support for GHC 9.4, where ST is no longer an instance of MonadFail. The two instances of GraphM that are predefined in fgl are ST and IO, and these always defined 'fail = error', so for these there is no change in behaviour. This may be a change in behaviour for other instances of GraphM. Users can work around this by defining their own methods for matchAnyM and nodeRangeM that use 'fail' instead of 'error'.

Bodigrim commented 1 year ago

As a Hackage trustee, I revised existing releases to exclude unbuildable configurations: https://hackage.haskell.org/package/fgl-5.7.0.0/revisions/ https://hackage.haskell.org/package/fgl-5.7.0.1/revisions/ https://hackage.haskell.org/package/fgl-5.7.0.2/revisions/ https://hackage.haskell.org/package/fgl-5.7.0.3/revisions/