The eventloop package

[ Tags: bsd3, eventloop, library ] [ Propose Tags ]

A different take on an IO system. Based on Amanda's IO loop, this eventloop takes a function that maps input events to output events. It can easily be extended by modules that represent IO devices or join multiple modules together. Each module exists of a initialize and teardown function that are both called once at startup and shutting down. During run-time, a module can provice a preprocessor function (which transforms input events before they get to the eventloop), and a postprocessor function (which transforms output events after they are received from the eventloop but before they are send off). Next to these bookkeeping functions, a module can exist of a (check for events and an event retrieve) function pair which result in input events and an addition to the event sender function which handles output events. This results in the following states: |Start|: initialize -> |Run-Time| -> teardown |Run-Time|: eventCheckers - Yes > preprocessors -> eventloop -> postprocessors -> event sender -> |Run-Time| |- No > |Run-Time| Each module has a piece of "memory"state which is defined by the module itself and all of the module states are combined in the IO state. When writinginstalling a module, modifications has to be made at certain points in the code due to the poor modularity of Haskell.


Dependencies aeson (>=0.8 && <0.12), base (>=4.8 && <4.11), bytestring (==0.10.*), concurrent-utilities (==0.2.*), deepseq (==1.4.*), network (==2.6.*), stm (==2.4.*), suspend (==0.2.*), text (==1.2.*), timers (==0.2.*), websockets (==0.9.*) [details]
License BSD3
Copyright University of Twente 2015 | Sebastiaan la Fleur 2015
Author Sebastiaan la Fleur
Category Eventloop
Home page -
Uploaded Sun Jan 7 12:39:21 UTC 2018 by sebaslafleur
Distributions NixOS:
Downloads 5238 total (154 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 2018-01-07 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees