Changelog for mockcat-1.0.0.0

Changelog for mockcat

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to the Haskell Package Versioning Policy.

[1.0.0.0] - 2025-12-24

Changed

Added

Removed

Migration Guide (0.x -> 1.0)

This release is a complete reboot. Previous code will break.

  1. Operator Change: Replace |> with ~>.

    -- Old
    createStubFn $ "arg" |> "result"
    
    -- New
    stub $ "arg" ~> "result"
    
  2. Mock Creation: Use mock / stub instead of createMock / createStubFn.

    -- Old
    f <- createMock $ "arg" |> "result"
    
    -- New
    f <- mock $ "arg" ~> "result"
    
  3. Verification: Use shouldBeCalled (unified API).

    -- Old
    f `shouldApplyTo` "arg"
    
    -- New
    f `shouldBeCalled` "arg"
    
  4. Template Haskell Generics: makeMock is now strict by default (requires explicit pure for IO actions).

    • Use makeAutoLiftMock for old implicit behavior.
    • Or stick to makeMock and add pure to your return values.

0.6.0.0

Changed

0.5.5.0

Added

Documentation

Notes

0.5.4.0

Added

Changed

Fixed

Removed

Internal

0.5.3.0

Added