Repository navigation
v2.0.0-alpha1
Pre-release
Pre-release
v2.0.0-alpha1
Architecture (breaking change from v1)
- Separated data types from typeclass instances — data types extend
DataType, not typeclasses summon(Monad, Option)— typeclass instance resolution via registryDotNotationmixin —Some(10).map(f)delegates to summon internallyfor_type=auto-registration —class _OptionMonad(Monad, for_type=Option)BaseTypeclass— root of all typeclasses with AutoRegisterTypeConstructor— auto_type_constructordetectiontc_of(value)— Haskell-style automatic type constructor resolution
New typeclasses
Bifunctor,Alternative,MonadError,Foldable,Traversable
New features
- Optics (lenses):
at('key') >> at('nested') frozendict.to_dict()+ JSON round-tripfrozendictdeep-freeze by defaultWriter.for_monoid()factory- Auto-generated typeclass hierarchy SVG
- Browser playground (PyScript/Pyodide)
- 11 guides, 18 demo scripts, 57 benchmarks