The potoki package

[ Tags: library, mit, streaming ] [ Propose Tags ]

This library provides a new simpler approach to the IO-streaming problem.

In difference to libraries like "pipes", "conduit", "streaming", this library is specialised to streaming in the IO monad, which greatly simplifies the abstractions that it provides. This simplification is motivated by the fact that the majority of streaming tasks are performed in IO anyway.

Also, unlike the mentioned libraries, "potoki" API doesn't treat streaming as a side operation in its abstractions, which allows it to express the composition of streams using the standard typeclass instances, thus simplifying the API even further.

Naturally, being simpler limits the application area of this library. Thus it is not capable of transforming custom context monads and etc. It is a tradeoff, but, as we expect, the user will rarely be affected by it.

Another benefit of being specialized to IO is the ability to optimize for performance better. It must however be mentioned that this is only theoretical and no benchmarks have yet been performed.

In some of the mentioned regards "potoki" is similar to the "io-streams" library. However, unlike that library it approaches composition with the standard typeclass instances. Also, in difference to "io-streams", "potoki" doesn't use exceptions for control-flow. In fact, "potoki" doesn't use exceptions whatsoever, instead it makes failures explicit, using the standard Either type.

Properties

Versions 0.6.1, 0.6.2, 0.6.3, 0.6.4
Dependencies attoparsec (>=0.13 && <0.15), base (>=4.7 && <5), base-prelude (<2), bug (==1.*), bytestring (==0.10.*), directory (>=1.3 && <2), foldl (>=1.3 && <2), hashable (==1.*), potoki-core (==1.2.*), profunctors (>=5.2 && <6), text (==1.*), unagi-chan (==0.4.*), unordered-containers (==0.2.*), vector (==0.12.*) [details]
License MIT
Copyright (c) 2017, Nikita Volkov
Author Nikita Volkov <nikita.y.volkov@mail.ru>
Maintainer Nikita Volkov <nikita.y.volkov@mail.ru>
Category Streaming
Home page https://github.com/nikita-volkov/potoki
Bug tracker https://github.com/nikita-volkov/potoki/issues
Source repository head: git clone git://github.com/nikita-volkov/potoki.git
Uploaded Mon Dec 18 01:21:41 UTC 2017 by NikitaVolkov
Distributions NixOS:0.6.4
Downloads 492 total (399 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-12-18 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees