Issue warning on usage of specific instance

Viewed 70

I have created an instance of a type class:

data Foo = Foo

instance Show Foo where
  show _ = "Foo"

Now this is part of a library and I want to issue a warning if a user of the library uses this instance. I have tried various things with the WARNING pragma but I can't get it to work.

0 Answers
Related