streamly/examples
Harendra Kumar ae847b821f remove fold API exports from Streamly.Internal
They are now exported via Streamly.Internal.Data.Fold
2019-09-24 21:14:51 +05:30
..
AcidRain.hs Add "Streamly.Fold" module 2019-05-13 12:21:16 +05:30
CirclingSquare.hs Add "Streamly.Fold" module 2019-05-13 12:21:16 +05:30
ControlFlow.hs fix redundant constraints 2019-08-23 13:02:38 +05:30
EchoServer.hs Implement IO write operations as folds. 2019-08-12 07:13:26 +05:30
FileIOExamples.hs Refactor readArraysOfUpto to readArraysOf in Socket, Handle, File. 2019-08-07 00:22:26 +05:30
FileSinkServer.hs Merge pull request #258 from composewell/doc-rename 2019-08-14 05:52:27 +05:30
FromFileClient.hs Implement IO write operations as folds. 2019-08-12 07:13:26 +05:30
HandleIO.hs Move Streamly.Fold module 2019-09-24 21:14:51 +05:30
ListDir.hs Add "Streamly.Fold" module 2019-05-13 12:21:16 +05:30
MergeSort.hs update examples and documentation 2018-12-30 22:14:51 +05:30
README.md Move examples from Streamly module to examples dir 2018-05-04 01:28:02 +05:30
SearchQuery.hs Add "Streamly.Fold" module 2019-05-13 12:21:16 +05:30
WordClassifier.hs remove fold API exports from Streamly.Internal 2019-09-24 21:14:51 +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