observable alternatives and similar packages
Based on the "Control" category.
Alternatively, view observable alternatives based on common mentions on social networks and blogs.
-
transient
A full stack, reactive architecture for general purpose programming. Algebraic and monadically composable primitives for concurrency, parallelism, event handling, transactions, multithreading, Web, and distributed computing with complete de-inversion of control (No callbacks, no blocking, pure state) -
selective
Selective Applicative Functors: Declare Your Effects Statically, Select Which to Execute Dynamically -
auto
Haskell DSL and platform providing denotational, compositional api for discrete-step, locally stateful, interactive programs, games & automations. http://hackage.haskell.org/package/auto -
ComonadSheet
A library for expressing "spreadsheet-like" computations with absolute and relative references, using fixed-points of n-dimensional comonads. -
transient-universe
A Cloud monad based on transient for the creation of Web and reactive distributed applications that are fully composable, where Web browsers are first class nodes in the cloud -
monad-validate
DISCONTINUED. (NOTE: REPOSITORY MOVED TO NEW OWNER: https://github.com/lexi-lambda/monad-validate) A Haskell monad transformer library for data validation -
distributed-process-platform
DEPRECATED (Cloud Haskell Platform) in favor of distributed-process-extras, distributed-process-async, distributed-process-client-server, distributed-process-registry, distributed-process-supervisor, distributed-process-task and distributed-process-execution -
effect-monad
Provides 'graded monads' and 'parameterised monads' to Haskell, enabling fine-grained reasoning about effects. -
ixmonad
Provides 'graded monads' and 'parameterised monads' to Haskell, enabling fine-grained reasoning about effects.
WorkOS - The modern identity platform for B2B SaaS
Do you think we are missing an alternative of observable or a related project?
README
Make your actions to be observable and listen events from them, algebraically.
Let's imagine simple example: we want to listen to STDIN. We have getLine
function that can capture a list of ASCII-symbols - all we need is to make this action to be observable.
obs :: Monad f => f a -> Observable f a r
Good, now we want to subscribe on events and set up callback, if we want to listen events forever, we need subscribe
function:
subscribe :: Applicative f => Observable f a r -> (a -> f r) -> f r
First, we make action to be observable, then set up callback and at the end, subscribe on events:
subscribe (obs getLine) handler
Our handler will count amount of characters in strings and send this into STDOUT:
handler = print . (<>) "Length of string was: " . show . length
Let's try it out:
> hello, my dear friend!
> "Length of string was: 22"