inspection-testing: GHC plugin to do inspection testing
Some carefully crafted libraries make promises to their users beyond functionality and performance.
Examples are: Fusion libraries promise intermediate data structures to be eliminated. Generic programming libraries promise that the generic implementation is identical to the hand-written one. Some libraries may promise allocation-free or branch-free code.
Conventionally, the modus operandi in all these cases is that the library author manually inspects the (intermediate or final) code produced by the compiler. This is not only tedious, but makes it very likely that some change, either in the library itself or the surrounding eco-system, breaks the library’s promised without anyone noticing.
This package provides a disciplined way of specifying such properties, and have them checked by the compiler. This way, this checking can be part of the ususal development cycle and regressions caught early.
See the documentation in Test.Inspection or the project webpage for more examples and more information.
[Skip to Readme]
|Versions [faq]||0.1, 0.1.1, 0.1.1.1, 0.1.1.2, 0.1.2, 0.2, 0.2.0.1, 0.3, 0.4, 0.4.1, 0.4.1.1, 0.4.1.2, 0.4.2, 0.4.2.1, 0.4.2.2, 0.4.2.4, 0.4.3.0|
|Dependencies||base (>=4.9 && <4.16), containers, ghc (>=8.0.2 && <9.1), mtl, template-haskell, transformers [details]|
|Copyright||2017 Joachim Breitner|
|Category||Testing, Compiler Plugin|
|Source repo||head: git clone git://github.com/nomeata/inspection-testing.git|
|Uploaded||by JoachimBreitner at 2021-02-17T14:26:49Z|
|Distributions||Arch:0.4.3.0, LTSHaskell:0.4.2.1, NixOS:0.4.3.0, Stackage:0.4.2.1|
|Downloads||10867 total (135 in the last 30 days)|
|Rating||2.5 (votes: 3) [estimated by Bayesian average]|
Docs uploaded by user
Build status unknown [no reports yet]
Run tests that pull in specific versions of other packages
Run tests that exhibits bug in old text package. Only works with older version of GHC.
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
For package maintainers and hackage trustees