Ticket #814 (assigned enhancement)

Opened 2 years ago

Last modified 17 months ago

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

Changed 2 years ago by ttuegel

  • owner set to ttuegel
  • status changed from new to assigned

This bug will likely be fixed anyway when the new detailed test interface is released, but I'm assigning it to myself so it isn't forgotten.

Changed 17 months ago by elga

Changed 17 months ago by edouard

Simplifiez-vous la tache des aujourd'hui: obtenez vos codes Orange rio, SFR rio, Bouygues rio, Virgin Mobile rio ou Simyo rio et effectuez la portabilite de son numero de telephone sans tracas...en douceur !  simyo

Note: See TracTickets for help on using tickets.