streamly/examples
Harendra Kumar 9c85811905 rename "once" to "yieldM"
and some other related refactoring changes.
2018-06-23 06:50:59 +05:30
..
AcidRain.hs Fix nomenclature in examples 2018-05-13 10:48:18 +05:30
CirclingSquare.hs rename "once" to "yieldM" 2018-06-23 06:50:59 +05:30
ListDir.hs remove redundant liftIO 2018-05-29 12:51:38 +05:30
MergeSort.hs rename "once" to "yieldM" 2018-06-23 06:50:59 +05:30
README.md Move examples from Streamly module to examples dir 2018-05-04 01:28:02 +05:30
SearchQuery.hs rename "once" to "yieldM" 2018-06-23 06:50:59 +05:30

Running The Examples

Running directly using stack

You can run these examples using stack like this:

$ stack build
$ stack AcidRain.hs

Note: This method may not work for CirclingSquare.hs SDL animation example.

Build and run

Build the library with the examples flag on e.g.

stack build --flag streamly:examples
cabal new-build --flags examples

Then run the executables, for example:

stack exec AcidRain

The executable name are the same as the filenames.

Running the SDL animation example

To include the SDL examples as well build with examples-sdl flag:

stack build --flag streamly:examples-sdl
cabal new-build --flags examples-sdl

Make sure that you have the SDL OS package installed on your system and the headers are visible to Haskell build tool.

stack exec CirclingSquare