Releases: minamorl/darkcore
Releases · minamorl/darkcore
v0.5.1
v0.5.0
What's Changed
Full Changelog: v0.4.0...v0.5.0
v0.3.0
What's Changed
- Clarify ReaderT/StateT equality semantics by @minamorl in #6
- Enforce monoid config for Writer and expand law tests by @minamorl in #7
Added
- Operator DSL unified across all monads:
|→fmap,>>→bind,@→ap. apforReader,State,Writer.ResultTtransformer.
Changed
Writer[A, W]generalized for arbitrary monoids.- Safety: For non-
listlogs,emptyandcombineare now required at construction; otherwiseTypeError. - CI tightened:
pytest -v --cov,mypy --strict.
Tests
- Added comprehensive Functor/Applicative/Monad law tests for
Reader/State/MaybeT/ResultT. - Added law tests for
WriterandWriterT(list andstrmonoids).
Docs
- README updated with examples for non-
listlogs (empty=str,combine=str.__add__) and operator DSL.
Fixed
- Clarified equality semantics for
ReaderT/StateT: structural__eq__intentionallyNotImplemented; compare results (run(...)) in tests.
Notes
- This release tightens runtime checks for
Writerconstruction. If you used non-listlogs without specifyingempty/combine, update your code accordingly.
Full Changelog: 0.2.0...v0.3.0
v0.2.0
v0.1.1
Full Changelog: v0.1.0...v0.1.1