streamly-0.1.0: Beautiful Streaming, Concurrent and Reactive Composition

Copyright(c) 2017 Harendra Kumar
LicenseBSD3
Maintainerharendra.kumar@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Streamly.Examples

Description

To run these examples:

You need to build the library with the "examples" flag on e.g. stack build --flag streamly:examples. To include the SDL examples as well use stack build --flag streamly:examples-sdl. You will have to make sure that you have the SDL OS package installed on your system and the headers are visible to Haskell build tool.

You can directly evaluate the respective file and its main function using ghc, like this (this may not work when built with examples-sdl flag):

$ stack ghc -- -e acidRainGame src/Streamly/Examples/AcidRainGame.hs

Alternatively, you can create a file calling the main function and compile it:

$ cat ex.hs
import Streamly.Examples
main = acidRainGame
$ stack ghc ex.hs

Alternatively, you can just import Streamly.Examples and evaluate the respective function in GHCi.

Documentation