Skip to content

Suppress orphan instance warning per instance

In the same way we have overlapping/incoherent instance pragmas which can be applied on a per instance basis, it would be good to have a -fno-warn-orphan-instance pragma which can be applied on a per-instance basis.

Annoyingly, there is not an obvious syntax to use for this case, since SOP for a module with orphan instances is {-# GHC_OPTIONS -fno-warn-orphans #-}

Trac metadata
Trac field Value
Version 7.11
Type FeatureRequest
TypeOfFailure OtherFailure
Priority low
Resolution Unresolved
Component Compiler (Type checker)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information