Closed edsko closed 7 years ago
The error was fixed with 7045ba725f64ef3db80e778a7bc4fdd8f6555f7e. We just need a new release for 8.2 compatibility?
I don't really understand thesimplifiable-class-constraints
warnings.
I've fixed the warnings by adding MonoLocalBinds
to the offending modules (5ae5de8ad2f093b15ebecaa9b8d9dd1a37cd7d46).
It sounds as though 8.2 doesn't like the way we use type classes as constraint synonyms. GHC has had explicit support for constraint synonyms for a while. Maybe we should convert to them? I think they would make our intentions more clear.
AFAICT there's nothing wrong with using MonoLocalBinds
either; it seems to be turned on by other extensions in most modules.
Released diagrams-lib-1.4.1
with this fix in (as well as a few minor accumulated API additions).
@bergey , I had actually started replacing some such type-classes-as-constraint-synonyms (https://github.com/diagrams/diagrams-core/commit/2e51c505719a3e589fb010b752fdf203ffbe494d) but it broke things on GHC 7.8 which we still support at the moment. I agree we ought to do this eventually though.
Trying to build with ghc 8.2 this yields