Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simre1/simple-events
An implementation for event networks in haskell.
https://github.com/simre1/simple-events
frp haskell
Last synced: 13 days ago
JSON representation
An implementation for event networks in haskell.
- Host: GitHub
- URL: https://github.com/simre1/simple-events
- Owner: Simre1
- License: mit
- Created: 2019-05-30T18:54:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-09T13:06:24.000Z (over 5 years ago)
- Last Synced: 2024-11-07T18:43:23.376Z (2 months ago)
- Topics: frp, haskell
- Language: Haskell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleEvents
**Status: Experimental**
SimpleEvents is a very lightweight library for defining event networks with the only dependencies being base and containers.
Here is a short example if one wishes to try out this library:
```haskell
import SimpleEventseventExample :: IO ()
eventExample = do
(inputEvent, inputTrigger) <- newEventreactimate (("You wrote: " ++) <$> inputEvent) $
simpleEventHandler putStrLnputStrLn "Try to write something!"
putStrLn "PS: \"quit\" halts the example."let gatherInput = do
t <- getLine
case t of
"quit" -> mempty
str -> triggerEvent inputTrigger str >> gatherInputgatherInput
```