The ClassLaws package

[Tags: bsd3, library]

The specification of a class in Haskell often starts with stating, in text, the laws that should be satisfied by methods defined in instances of the class, followed by the type of the methods of the class. The ClassLaws library is a framework that supports testing such class laws using QuickCheck. Our framework is a light-weight class law testing framework, which requires a limited amount of work per class law, and per datatype for which the class law is tested. We also show how to test class laws with partially-defined values. Using partially-defined values, we show that the standard lazy and strict implementations of the state monad do not satisfy the expected laws. More information can be found at http:wiki.portal.chalmers.secsepmwiki.phpFPClassLaws


Change logNone available
Dependenciesbase (>=4.5 && <5), ChasingBottoms (>=1.3 && <2), mtl (>=1 && <3), QuickCheck (==2.*) [details]
AuthorPatrik Jansson and Johan Jeuring
Home page
UploadedThu Jun 14 14:17:55 UTC 2012 by PatrikJansson
Downloads990 total (17 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




Maintainers' corner

For package maintainers and hackage trustees