Haskell printer generator should not use the deprecated OverlappingInstances extension on recent GHCs. E.g., on ghc-8.2:
CPP/Print.hs:1:33: warning:
-XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
|
1 | {-# LANGUAGE FlexibleInstances, OverlappingInstances #-}
| ^^^^^^^^^^^^^^^^^^^^
For backwards compatiblity, we could use #if pragmas.
From ghc-8.6 on, OverlappingInstances may trigger an error.
Haskell printer generator should not use the deprecated
OverlappingInstancesextension on recent GHCs. E.g., on ghc-8.2:For backwards compatiblity, we could use
#ifpragmas.From ghc-8.6 on,
OverlappingInstancesmay trigger an error.