Skip to content

Releases: suned/pfun

0.11.1

12 Aug 12:26
Compare
Choose a tag to compare
  • Make pfun.either.sequence significantly faster by reducing number of internal callbacks instantiated
  • Fix various type issues related to pfun.Either

0.11.0

08 Aug 18:55
Compare
Choose a tag to compare
  • Improve typing of pfun.functions.curry decorated functions. Fixes a bug with generic functions, and makes it possible to curry functions with variadic and optional args
  • Rename map_m to for_each
  • Rename filter_m to filter_
  • Rename get_environment to depend

0.10.0

04 Aug 16:10
Compare
Choose a tag to compare
  • Delete obsolete monads
  • Enable running in effects in separate processes and threads
  • Various improvements to type inference in the mypy plugin

0.9.0

13 Jul 08:47
b4df597
Compare
Choose a tag to compare
  • Add pfun.effect.sql for working with postgres databases without with Effect
  • Allow resource_factory in pfun.effect.Resource to fail by returning an Either

0.8.0

09 Jul 17:11
a618ae3
Compare
Choose a tag to compare
  • Add pfun.effect.http module for making http requests
  • Add pfun.effect.effect.Resource for managing context managers in effects

0.7.0

03 Jul 15:53
001bd51
Compare
Choose a tag to compare
  • Add pfun.effect.logging which enables logging using Effect and the built-in logging module

0.6.0

30 Jun 15:19
9100c01
Compare
Choose a tag to compare
  • Added pfun.effect module as a unified effect system
  • Changed the Monoid ABC to use __add__ rather than append as the binary operation to avoid collision with List.append

0.5.1

09 Oct 11:35
Compare
Choose a tag to compare
  • Fix readme on pypi

0.5.0

09 Oct 09:09
Compare
Choose a tag to compare
  • Added with_effect decorator to all monadic types that mimics do notation from haskell / for comprehensions in Scala
  • IO is now stack-safe
  • Added tail_rec helper function to Maybe, Either and Writer to help write recursive monadic functions (necessary for implementing with_effect)