packages feed

monad-mock

A monad transformer for mocking mtl-style typeclasses

view on Hackage

This package provides a monad transformer that helps create “mocks” of @mtl@-style typeclasses, intended for use in unit tests. A mock can be executed by providing a sequence of expected monadic calls and their results, and the mock will verify that the computation conforms to the expectation. For more information, see the module documentation for "Control.Monad.Mock".
versionuploadeduploaderchanges
0.2.0.02017-09-14 17:11 UTClexi_lambda+56/−20 lines, 5 filesPVP ok
0.1.1.22017-08-01 21:51 UTClexi_lambda+88/−26 lines, 6 filesdep +transformersdep ~basedep ~template-haskellPVP ok
0.1.1.12017-06-28 22:16 UTClexi_lambda+41/−21 lines, 5 filesdep ~template-haskellPVP ok
0.1.1.02017-06-27 18:18 UTClexi_lambda+607/−73 lines, 8 filesdep +haskell-src-extsdep +haskell-src-metadep +template-haskellPVP ok
0.1.0.02017-06-24 00:21 UTClexi_lambda+426/−0 lines, 9 filesdep +basedep +constraintsdep +exceptionssetup-changed

Dependencies of monad-mock-0.2.0.0

base >=4.8.0.0 && <5 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

constraints >=0.3.1 0.14.3 → 0.14.4
2026-01-26 18:08 UTC0.14.4+9/−2 lines, 2 filesdep +ghc-bignumPVP ok
2026-01-10 16:15 UTC0.14.3+14/−11 lines, 4 filesdep −ghc-primPVP: major bump suggested
2024-05-12 22:52 UTC0.14.2+59/−22 lines, 4 filesdep +integer-gmpdep ~hashablePVP: major bump suggested
2024-04-29 13:47 UTC0.14.1+7/−4 lines, 4 filesdep −type-equalityPVP: major bump suggested
2023-10-11 10:55 UTC0.14+449/−560 lines, 12 filesdep +boringdep −semigroupsdep −transformers-compatdep ~basedep ~mtldep ~transformersPVP ok

showing 5 of 36 versions

exceptions >=0.6 0.10.11 → 0.10.12
2026-01-10 20:26 UTC0.10.12+30/−7 lines, 4 filesdep ~QuickCheckdep ~template-haskellPVP ok
2025-10-13 12:05 UTC0.10.11+86/−10 lines, 5 filesPVP ok
2025-06-17 11:54 UTC0.10.10+22/−16 lines, 4 filesdep +tastydep +tasty-hunitdep +tasty-quickcheckdep −test-frameworkdep −test-framework-hunitdep −test-framework-quickcheck2dep ~QuickCheckPVP: major bump suggested
2024-10-31 12:54 UTC0.10.9+51/−160 lines, 5 filesdep −faildep −transformers-compatdep ~QuickCheckdep ~basedep ~mtlPVP: major bump suggested
2024-04-20 19:31 UTC0.10.8+1767/−1763 lines, 13 filesdep ~QuickCheckdep ~template-haskellsetup-changedPVP: major bump suggested

showing 5 of 34 versions

haskell-src-exts >=0 1.23.1 → 1.24.0
2026-07-04 05:40 UTC1.24.0+1040/−69 lines, 33 filesdep ~arraydep ~ghc-primdep ~prettyPVP ok
2020-06-02 02:38 UTC1.23.1+16/−8 lines, 7 filesdep ~basePVP ok
2020-01-03 21:30 UTC1.23.0+1756/−13 lines, 20 filesPVP ok
2019-11-01 02:20 UTC1.22.0+34529/−31943 lines, 66 filesPVP ok
2019-09-03 18:17 UTC1.21.1+35/−440 lines, 10 filesdep ~basenew-uploaderPVP: major bump suggested

showing 5 of 91 versions

haskell-src-meta >=0 0.8.15 → 0.8.16
2026-07-07 21:19 UTC0.8.16+26/−7 lines, 2 filesdep ~haskell-src-extsPVP: major bump suggested
2025-01-18 23:17 UTC0.8.15+16/−7 lines, 5 filesdep ~template-haskellPVP ok
2024-05-16 14:47 UTC0.8.14+24/−10 lines, 5 filesdep ~template-haskellPVP ok
2023-11-12 22:09 UTC0.8.13+39/−10 lines, 5 filesdep ~template-haskellPVP: major bump suggested
2023-03-21 21:20 UTC0.8.12+12/−3 lines, 3 filesdep ~template-haskellnew-uploaderPVP ok

showing 5 of 59 versions

hspec >=0 2.11.17 → 2.11.18
2026-10-01 14:14 UTC2.11.18+7/−4 lines, 3 filesdep ~hspec-coredep ~hspec-discoverPVP ok
2026-03-04 18:01 UTC2.11.17+11/−19 lines, 6 filesdep ~hspec-coredep ~hspec-discoverPVP ok
2025-12-12 14:07 UTC2.11.16+25/−7 lines, 5 filesdep ~hspec-coredep ~hspec-discoverPVP: major bump suggested
2025-12-08 03:04 UTC2.11.15+8/−5 lines, 3 filesdep ~hspec-coredep ~hspec-discoverPVP ok
2025-09-30 14:32 UTC2.11.14+9/−7 lines, 4 filesdep ~hspec-coredep ~hspec-discoverPVP: major bump suggested

showing 5 of 171 versions

monad-control >=1.0.0.0 && <2 1.0.3 → 1.0.3.1
2021-08-02 10:16 UTC1.0.3.1+25/−13 lines, 3 filesdep ~transformersPVP ok
2021-07-26 20:03 UTC1.0.3+6/−2 lines, 2 filesdep ~base
2021-07-26 19:56 UTC1.0.2.4+912/−894 lines, 5 filesdep ~basedep ~transformers-compatsetup-changednew-uploader
2018-02-26 08:14 UTC1.0.2.3+10/−3 lines, 3 filesdep ~transformers-compatPVP: major bump suggested
2017-08-06 15:12 UTC1.0.2.2+201/−29 lines, 4 filesPVP ok

showing 5 of 32 versions

mtl >=0 2.3.1 → 2.3.2
2025-12-08 04:58 UTC2.3.2+112/−21 lines, 12 filesdep ~basenew-uploaderPVP: major bump suggested
2022-10-31 21:28 UTC2.3.1+188/−33 lines, 8 filesdep ~basePVP: major bump suggested
2022-05-07 20:34 UTC2.3+1284/−520 lines, 29 filesdep ~basedep ~transformersnew-uploaderPVP ok
2018-02-24 22:15 UTC2.2.2+152/−36 lines, 14 filesdep ~basePVP: major bump suggested
2014-06-02 02:22 UTC2.2.1+179/−4 lines, 8 filesdep ~basedep ~transformersPVP: major bump suggested

showing 5 of 20 versions

template-haskell >=2.10.0.0 && <2.13 2.12.0.0 → 2.24.0.0 newer than bounds
2025-12-19 11:53 UTC2.24.0.0 newer than bounds+606/−68 lines, 9 filesdep +ghc-internaldep ~basedep ~ghc-boot-thPVP ok
2024-12-16 09:29 UTC2.23.0.0 newer than bounds+104/−5685 lines, 9 filesdep −ghc-primdep −prettydep ~basedep ~ghc-boot-thnew-uploaderPVP ok
2024-05-15 13:07 UTC2.22.0.0 newer than bounds+176/−81 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok
2023-10-10 00:23 UTC2.21.0.0 newer than bounds+275/−148 lines, 7 filesdep ~basedep ~ghc-boot-thPVP ok
2023-03-28 13:43 UTC2.20.0.0 newer than bounds+215/−139 lines, 9 filesdep −filepathdep ~basedep ~ghc-boot-thPVP ok

showing 5 of 26 versions

th-orphans >=0 0.13.16 → 0.13.17
2026-01-10 14:46 UTC0.13.17+11/−7 lines, 3 filesdep −ghc-primdep ~template-haskellPVP ok
2024-12-05 12:58 UTC0.13.16+8/−5 lines, 3 filesdep ~template-haskellPVP ok
2024-10-22 10:57 UTC0.13.15+32/−404 lines, 4 filesdep −faildep −generic-derivingdep −semigroupsdep ~basedep ~template-haskellPVP: major bump suggested
2022-08-21 21:11 UTC0.13.14+8/−3 lines, 3 filesdep ~template-haskellPVP ok
2022-05-20 04:12 UTC0.13.13+12/−7 lines, 3 filesdep −th-expand-synsdep ~mtldep ~template-haskelldep ~th-reify-manyPVP ok

showing 5 of 35 versions

transformers >=0 0.6.2.0 → 0.6.3.0
2026-01-12 12:42 UTC0.6.3.0+28/−1 lines, 4 filesPVP: major bump suggested
2025-04-06 22:39 UTC0.6.2.0+41/−42 lines, 8 filesdep ~ghc-primPVP: major bump suggested
2024-09-25 11:37 UTC0.6.1.2+70/−21 lines, 19 filesPVP: minor bump suggested
2023-08-01 19:13 UTC0.6.1.1+281/−42 lines, 11 filesPVP ok
2023-02-04 08:15 UTC0.6.1.0+64/−4 lines, 8 filesPVP ok

showing 5 of 42 versions

transformers-base >=0 0.4.6 → 0.4.6.1
2026-03-09 18:21 UTC0.4.6.1+11/−5 lines, 3 filesPVP: major bump suggested
2021-08-01 21:25 UTC0.4.6+21/−5 lines, 2 filesdep ~transformersPVP: major bump suggested
2018-03-31 21:50 UTC0.4.5.2+2/−8 lines, 2 filesdep ~transformers-compatPVP ok
2018-03-31 19:33 UTC0.4.5.1+7/−1 lines, 2 filesPVP ok
2018-03-31 16:40 UTC0.4.5+39/−16 lines, 3 filesdep +base-orphansdep ~basedep ~transformers-compatPVP: major bump suggested

showing 5 of 14 versions

Reverse dependencies

3 packages depend on monad-mock; 1 have bounds that exclude 0.2.0.0

language-ninja 0.2.0 requires monad-mock >=0.1 && <0.2 excludes current (upper bound)
acme-everything 2018.11.18 requires monad-mock >=0
cloud-seeder 0.2.0.0 requires monad-mock >=0