Skip to content

Avoid orphan flexible instances in Cabal-TestSuite documentation #804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bos opened this issue May 24, 2012 · 2 comments
Closed

Avoid orphan flexible instances in Cabal-TestSuite documentation #804

bos opened this issue May 24, 2012 · 2 comments
Assignees

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #814, reported by guest on 2011-03-13)

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.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @ttuegel on 2011-03-13)

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.

@ghost ghost assigned ttuegel May 24, 2012
@ttuegel
Copy link
Member

ttuegel commented Apr 23, 2015

This hasn't been part of the User Guide in a long time.

@ttuegel ttuegel closed this as completed Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants