streamly/examples
2019-12-03 11:24:44 +05:30
..
AcidRain.hs Add "Streamly.Fold" module 2019-05-13 12:21:16 +05:30
CamelCase.hs Add write folds, fromBytes/toBytes for File module 2019-11-14 06:35:14 +05:30
CirclingSquare.hs Add "Streamly.Fold" module 2019-05-13 12:21:16 +05:30
ControlFlow.hs Fix some easy-to-make typos 2019-11-26 02:09:15 +05:30
EchoServer.hs Correct the order of arguments in finally. 2019-11-15 00:57:21 +05:30
FileIOExamples.hs hold Map based operations for now 2019-11-15 03:07:06 +05:30
FileSinkServer.hs rename Unicode encode/decode ops 2019-11-04 02:54:46 +05:30
FromFileClient.hs Rename some IO APIs and update documentation 2019-11-06 01:30:55 +05:30
HandleIO.hs hold Map based operations for now 2019-11-15 03:07:06 +05:30
ListDir.hs Add concatMapTreeWith combinator 2019-12-03 11:24:44 +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
Split.hs add comments 2019-11-15 03:34:02 +05:30
WordClassifier.hs hold Map based operations for now 2019-11-15 03:07:06 +05:30
WordCount.hs rename readRequestsOf to readWithBufferOf etc. 2019-11-06 19:19:46 +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