Skip to content

Haskell printer generator should not use deprecated OverlappingInstances extension #233

@andreasabel

Description

@andreasabel

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions