Ticket #814 (assigned enhancement)
Avoid orphan flexible instances in Cabal-TestSuite documentation
|Reported by:||guest||Owned by:||ttuegel|
|Cc:||cabal@…||Difficulty:||very easy (<1 hour)|
The example code shown in http://www.haskell.org/cabal/release/cabal-18.104.22.168/doc/users-guide/#test-suites needs FlexibleInstances?, and the instance is orphan, too. Although this code is not intended to be used in most packages, it still looks like those instances are necessary or at least good style. I suggest to replace the generic pair by a custom data type like
data TestCase = TestCase String Bool instance TestOptions TestCase where ...
in the documentation. Since Cabal is a widely used library, it has automatically an educational aspect.