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.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.6.3 | 2026-01-17 15:12 UTC | lyxia | +3227/−3218 lines, 24 filesdep −mtlsetup-changednew-uploaderPVP ok | |
| 0.6.2 | 2025-06-13 08:40 UTC | JoachimBreitner | 1 revisions | +159/−125 lines, 5 filesdep ~basedep ~ghcPVP ok |
| 0.6.1 | 2025-06-11 21:55 UTC | JoachimBreitner | +160/−131 lines, 4 filesPVP ok | |
| 0.6 | 2025-01-01 19:38 UTC | JoachimBreitner | +41/−4 lines, 4 filesdep ~basePVP ok | |
| 0.5.0.3 | 2023-12-29 09:33 UTC | JoachimBreitner | 3 revisions | +29/−13 lines, 4 filesdep ~basedep ~ghcPVP ok |
| 0.5.0.2 | 2023-07-10 21:02 UTC | JoachimBreitner | +11/−9 lines, 3 filesdep ~basedep ~ghcPVP ok | |
| 0.5.0.1 | 2023-01-15 20:06 UTC | JoachimBreitner | +64/−7 lines, 4 filesdep ~basedep ~ghcPVP ok | |
| 0.5 | 2022-06-15 09:06 UTC | JoachimBreitner | +370/−86 lines, 6 filesdep ~basePVP ok | |
| 0.4.6.1 | 2022-05-20 07:17 UTC | JoachimBreitner | +16/−17 lines, 3 filesdep ~basedep ~ghcPVP ok | |
| 0.4.6.0 | 2021-08-23 12:46 UTC | JoachimBreitner | +37/−14 lines, 4 filesdep ~basedep ~ghcPVP ok | |
| 0.4.5.0 | 2021-04-28 06:16 UTC | JoachimBreitner | +34/−23 lines, 5 filesPVP ok | |
| 0.4.4.0 | 2021-04-21 17:16 UTC | JoachimBreitner | +42/−4 lines, 5 filesdep ~basePVP ok | |
| 0.4.3.0 | 2021-02-17 14:26 UTC | JoachimBreitner | +197/−90 lines, 9 filesdep ~basedep ~generic-lensdep ~ghcPVP: major bump suggested | |
| 0.4.2.4 | 2020-04-10 13:04 UTC | JoachimBreitner | +111/−36 lines, 5 filesdep ~basedep ~ghcPVP: major bump suggested | |
| 0.4.2.2 | 2019-09-02 16:23 UTC | JoachimBreitner | +15/−15 lines, 1 filesdep ~basedep ~ghcPVP ok | |
| 0.4.2.1 | 2019-06-07 07:44 UTC | JoachimBreitner | +34/−1 lines, 4 filesPVP ok | |
| 0.4.2 | 2019-06-05 13:16 UTC | JoachimBreitner | +966/−55 lines, 6 filesPVP ok | |
| 0.4.1.2 | 2019-02-24 00:18 UTC | JoachimBreitner | +34/−15 lines, 4 filesPVP: minor bump suggested | |
| 0.4.1.1 | 2018-11-17 14:34 UTC | JoachimBreitner | +25/−19 lines, 5 filesPVP: major bump suggested | |
| 0.4.1 | 2018-11-17 13:20 UTC | JoachimBreitner | +921/−826 lines, 10 filesPVP ok | |
| 0.4 | 2018-10-12 14:54 UTC | JoachimBreitner | +56/−119 lines, 15 filesPVP ok | |
| 0.3 | 2018-07-07 13:27 UTC | JoachimBreitner | 1 revisions | +327/−115 lines, 15 filesdep ~basedep ~ghcPVP ok |
| 0.2.0.1 | 2018-02-02 05:52 UTC | JoachimBreitner | +15/−6 lines, 4 filesdep ~ghcPVP ok | |
| 0.2 | 2018-01-18 01:41 UTC | JoachimBreitner | +202/−58 lines, 6 filesPVP ok | |
| 0.1.2 | 2017-11-20 23:47 UTC | JoachimBreitner | +87/−34 lines, 5 filesdep +mtldep +transformersdep ~generic-lensPVP ok | |
| 0.1.1.2 | 2017-11-12 20:31 UTC | JoachimBreitner | +17/−12 lines, 4 filesPVP ok | |
| 0.1.1.1 | 2017-11-12 20:17 UTC | JoachimBreitner | +100/−51 lines, 4 filesPVP: minor bump suggested | |
| 0.1.1 | 2017-11-12 04:50 UTC | JoachimBreitner | +146/−34 lines, 6 filesPVP: major bump suggested | |
| 0.1 | 2017-11-09 23:57 UTC | JoachimBreitner | +921/−0 lines, 14 filesdep +basedep +bytestringdep +containerssetup-changed |
Dependencies of inspection-testing-0.6.3
base >=4.9 && <4.23 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
bytestring >=0 0.12.1.0 → 0.12.2.0
| 2024-12-06 21:41 UTC | 0.12.2.0 | +538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok |
| 2024-02-16 03:27 UTC | 0.12.1.0 | +3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested |
| 2023-08-16 01:53 UTC | 0.12.0.2 | +16/−2 lines, 3 files |
| 2023-08-05 00:03 UTC | 0.12.0.1 | +47/−9 lines, 3 files |
| 2023-07-07 01:45 UTC | 0.12.0.0 | +1459/−520 lines, 21 filesdep +data-array-bytePVP ok |
showing 5 of 49 versions
containers >=0 0.8 → 0.8.1
| 2026-10-04 06:08 UTC | 0.8.1 | +8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested |
| 2025-03-01 13:03 UTC | 0.8 | +8447/−7031 lines, 37 filesnew-uploaderPVP ok |
| 2023-09-27 12:15 UTC | 0.7 | +76/−33 lines, 3 filesPVP ok |
| 2023-09-28 04:21 UTC | 0.6.8 | +644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested |
| 2023-02-01 03:11 UTC | 0.6.7 | +783/−229 lines, 20 filesPVP: major bump suggested |
showing 5 of 43 versions
generic-lens ==2.1.0.0 2.1.0.0 → 2.3.0.0 newer than bounds
| 2025-08-27 18:55 UTC | 2.3.0.0 newer than bounds | +169/−30 lines, 7 filesdep +mtldep −textdep ~basedep ~generic-lens-corenew-uploaderPVP ok |
| 2023-04-15 15:02 UTC | 2.2.2.0 newer than bounds | +68/−34 lines, 11 filesdep ~basedep ~textPVP: major bump suggested |
| 2022-01-22 22:53 UTC | 2.2.1.0 newer than bounds | +20/−16 lines, 10 filesdep ~generic-lens-coredep ~textPVP ok |
| 2021-07-13 11:11 UTC | 2.2.0.0 newer than bounds | +9/−6 lines, 5 filesdep ~generic-lens-corePVP ok |
| 2021-01-25 16:52 UTC | 2.1.0.0 | +9/−2 lines, 3 filesdep ~generic-lens-corePVP ok |
showing 5 of 21 versions
ghc >=8.0.2 && <9.15 9.14.1 → 9.14.2
| 2026-12-01 12:38 UTC | 9.14.2 | +9989/−5774 lines, 231 filesdep ~ghc-bootdep ~ghc-boot-thdep ~ghc-boot-th-nextPVP: major bump suggested |
| 2025-12-19 11:51 UTC | 9.14.1 | +94968/−73927 lines, 535 filesdep +ghc-internaldep ~basedep ~containersdep ~ghc-bootsetup-changedPVP ok |
| 2026-03-27 12:26 UTC | 9.12.4 | +3128/−1766 lines, 79 filesdep +rtsdep ~ghc-bootdep ~ghc-boot-thdep ~ghc-boot-th-nextPVP: major bump suggested |
| 2025-12-27 10:29 UTC | 9.12.3 | +6833/−5245 lines, 117 filesdep ~ghc-bootdep ~ghc-boot-thdep ~ghc-boot-th-nextPVP: major bump suggested |
| 2025-06-16 15:02 UTC | 9.12.2 | +182/−697 lines, 17 filesdep ~ghc-bootdep ~ghc-boot-thdep ~ghc-boot-th-nextPVP: major bump suggested |
showing 5 of 51 versions
template-haskell >=0 2.23.0.0 → 2.24.0.0
| 2025-12-19 11:53 UTC | 2.24.0.0 | +606/−68 lines, 9 filesdep +ghc-internaldep ~basedep ~ghc-boot-thPVP ok |
| 2024-12-16 09:29 UTC | 2.23.0.0 | +104/−5685 lines, 9 filesdep −ghc-primdep −prettydep ~basedep ~ghc-boot-thnew-uploaderPVP ok |
| 2024-05-15 13:07 UTC | 2.22.0.0 | +176/−81 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok |
| 2023-10-10 00:23 UTC | 2.21.0.0 | +275/−148 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok |
| 2023-03-28 13:43 UTC | 2.20.0.0 | +215/−139 lines, 9 filesdep −filepathdep ~basedep ~ghc-boot-thPVP ok |
showing 5 of 26 versions
text ==1.2.2.2 1.2.2.2 → 2.1.5 newer than bounds
| 2026-11-27 23:30 UTC | 2.1.5 newer than bounds | +33786/−32979 lines, 58 filesPVP: major bump suggested |
| 2026-01-28 08:30 UTC | 2.1.4 newer than bounds | +30991/−20199 lines, 35 filesdep +template-haskell-liftdep ~QuickCheckdep ~template-haskellPVP ok |
| 2025-08-01 20:08 UTC | 2.1.3 newer than bounds | +2107/−1827 lines, 30 filesdep +splitmixdep +temporarydep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP ok |
| 2024-10-26 13:22 UTC | 2.1.2 newer than bounds | +43588/−15378 lines, 41 filesdep ~basedep ~binaryPVP: major bump suggested |
| 2024-02-16 22:16 UTC | 2.1.1 newer than bounds | +986/−412 lines, 26 filesdep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP: major bump suggested |
showing 5 of 83 versions
transformers >=0 0.6.2.0 → 0.6.3.0
| 2026-01-12 12:42 UTC | 0.6.3.0 | +28/−1 lines, 4 filesPVP: major bump suggested |
| 2025-04-06 22:39 UTC | 0.6.2.0 | +41/−42 lines, 8 filesdep ~ghc-primPVP: major bump suggested |
| 2024-09-25 11:37 UTC | 0.6.1.2 | +70/−21 lines, 19 filesPVP: minor bump suggested |
| 2023-08-01 19:13 UTC | 0.6.1.1 | +281/−42 lines, 11 filesPVP ok |
| 2023-02-04 08:15 UTC | 0.6.1.0 | +64/−4 lines, 8 filesPVP ok |
showing 5 of 42 versions
Reverse dependencies
38 packages depend on inspection-testing; 4 have bounds that exclude 0.6.3