eventloop: 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.
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Warnings:
- The 'synopsis' field is rather long (max 80 chars is recommended).
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.
Properties
Versions | 0.2.1.1, 0.2.1.2, 0.3.0.0, 0.4.0.0, 0.4.1.0, 0.4.1.1, 0.4.1.2, 0.5.0.0, 0.5.1.0, 0.6.0.0, 0.7.0.0, 0.7.0.1, 0.8.0.0, 0.8.0.1, 0.8.1.0, 0.8.1.1, 0.8.1.2, 0.8.2.0, 0.8.2.1, 0.8.2.2, 0.8.2.3, 0.8.2.4, 0.8.2.5, 0.8.2.6, 0.8.2.7, 0.8.2.8, 0.8.2.8 |
---|---|
Change log | None available |
Dependencies | aeson (>=0.8 && <1.5), base (>=4.8 && <4.13), bytestring (>=0.10 && <0.11), concurrent-utilities (>=0.2 && <0.3), deepseq (>=1.4 && <1.5), network (>=2.6 && <2.9), stm (>=2.4 && <2.6), suspend (>=0.2 && <0.3), text (>=1.2 && <1.3), timers (>=0.2 && <0.3), websockets (>=0.9 && <0.13) [details] |
License | BSD-3-Clause |
Copyright | University of Twente 2015 | Sebastiaan la Fleur 2015 |
Author | Sebastiaan la Fleur |
Maintainer | sebastiaan@slafleur.nl |
Category | Eventloop |
Home page | - |
Uploaded | by LeonSchoorl at 2019-05-01T08:12:38Z |
Modules
[Index] [Quick Jump]
Downloads
- eventloop-0.8.2.8.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees