cabal-version: 1.12 -- This file has been generated from package.yaml by hpack version 0.37.0. -- -- see: https://github.com/sol/hpack name: mockcat version: 0.5.4.0 synopsis: Mock library for test in Haskell. description: mockcat is a small mocking / stubbing DSL for Haskell tests. . Features: . * Describe expectations with left-to-right pipelines: `arg |> ... |> result` * Generate typeclass mocks via Template Haskell (`makeMock`, `makePartialMock`) * Create standalone function stubs (`createStubFn`, constant mocks) * Flexible return behaviour: vary by argument or occurrence (including identical args later) * Optional per-call variation for `IO a` results * Concurrency-safe counting and explicit lazy semantics (unevaluated results are not recorded) * Simple verification helpers (apply count predicates, ordering checks) * Partial adoption: mock only selected methods; no hidden global state . See README for full examples: category: Testing homepage: https://github.com/pujoheadsoft/mockcat#readme bug-reports: https://github.com/pujoheadsoft/mockcat/issues author: funnycat maintainer: funnycat copyright: 2024 funnycat license: MIT license-file: LICENSE build-type: Simple extra-source-files: README.md README-ja.md CHANGELOG.md source-repository head type: git location: https://github.com/pujoheadsoft/mockcat library exposed-modules: Test.MockCat Test.MockCat.AssociationList Test.MockCat.Cons Test.MockCat.Mock Test.MockCat.MockT Test.MockCat.Param Test.MockCat.ParamDivider Test.MockCat.TH other-modules: Paths_mockcat hs-source-dirs: src ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -fprint-potential-instances -Wredundant-constraints build-depends: base >=4.7 && <5 , mtl >=2.3.1 && <2.4 , template-haskell >=2.18 && <2.24 , text >=2.0 && <2.2 , transformers >=0.5.6 && <0.7 , unliftio >=0.2.25.0 && <0.2.26 , unliftio-core >=0.2.1.0 && <0.2.2 default-language: Haskell2010 test-suite mockcat-test type: exitcode-stdio-1.0 main-is: Spec.hs other-modules: Test.MockCat.AssociationListSpec Test.MockCat.ConcurrencySpec Test.MockCat.ConsSpec Test.MockCat.Definition Test.MockCat.ExampleSpec Test.MockCat.Impl Test.MockCat.MockSpec Test.MockCat.ParamSpec Test.MockCat.PartialMockSpec Test.MockCat.PartialMockTHSpec Test.MockCat.TypeClassSpec Test.MockCat.TypeClassTHSpec Paths_mockcat hs-source-dirs: test ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -fprint-potential-instances -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N build-depends: async >=2.2.4 && <2.3 , base >=4.7 && <5 , hspec ==2.11.* , mockcat , mtl >=2.3.1 && <2.4 , template-haskell >=2.18 && <2.24 , text >=2.0 && <2.2 , transformers >=0.5.6 && <0.7 , unliftio >=0.2.25.0 && <0.2.26 , unliftio-core >=0.2.1.0 && <0.2.2 default-language: Haskell2010