Ticket #814 (assigned enhancement)
Avoid orphan flexible instances in Cabal-TestSuite documentation
| Reported by: | guest | Owned by: | ttuegel |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | User guide | Version: | 1.10.1.0 |
| Severity: | normal | Keywords: | |
| Cc: | cabal@… | Difficulty: | very easy (<1 hour) |
| GHC Version: | Platform: |
Description
The example code shown in http://www.haskell.org/cabal/release/cabal-1.10.1.0/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.
Change History
Note: See
TracTickets for help on using
tickets.
