[Hackage] #814: Avoid orphan flexible instances in Cabal-TestSuite documentation

Hackage cvs-ghc at haskell.org
Sun Mar 13 12:59:33 CET 2011


#814: Avoid orphan flexible instances in Cabal-TestSuite documentation
----------------------------------+-----------------------------------------
  Reporter:  guest                |        Owner:          
      Type:  enhancement          |       Status:  new     
  Priority:  normal               |    Milestone:          
 Component:  User guide           |      Version:  1.10.1.0
  Severity:  normal               |     Keywords:          
Difficulty:  very easy (<1 hour)  |   Ghcversion:          
  Platform:                       |  
----------------------------------+-----------------------------------------
 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/814>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list