on master help sign in
Remove redundant examples
49a5ba4Harendra Kumar
examples/echo-loop.hsdeleted−16
@@ -1,16 +0,0 @@
1−import Control.Monad.IO.Class (liftIO)
2−import Streamly
3−
4−input :: StreamT IO String
5−input = do
6− string <- liftIO getLine
7− return string <> input
8−
9−output :: StreamT IO String -> StreamT IO ()
10−output strings = do
11− s <- strings
12− liftIO $ putStrLn s
13−
14−main = do
15− putStrLn "Type something and press enter, repeat"
16− runStreamT $ output input
examples/map-reduce.hsdeleted−6
@@ -1,6 +0,0 @@
1−import Streamly
2−import Streamly.Prelude as A
3−
4−main = do
5− s <- A.sum $ serially $ forEachWith (<|) [1..100] $ \x -> return (x * x)
6− print s
streamly.cabal−22
@@ -190,17 +190,6 @@ benchmark bench
190-- Examples
190-- Examples
191-------------------------------------------------------------------------------
191-------------------------------------------------------------------------------
192
192
193−executable echo-loop
194− main-is: echo-loop.hs
195− hs-source-dirs: examples
196− if flag(examples)
197− buildable: True
198− build-Depends:
199− streamly
200− , base >= 4.8 && < 5
201− else
202− buildable: False
203−
204executable loops
193executable loops
205 main-is: loops.hs
194 main-is: loops.hs
206 hs-source-dirs: examples
195 hs-source-dirs: examples
@@ -212,17 +201,6 @@ executable loops
212 else
201 else
213 buildable: False
202 buildable: False
214
203
215−executable map-reduce
216− main-is: map-reduce.hs
217− hs-source-dirs: examples
218− if flag(examples)
219− buildable: True
220− build-Depends:
221− streamly
222− , base >= 4.8 && < 5
223− else
224− buildable: False
225−
226executable nested-loops
204executable nested-loops
227 main-is: nested-loops.hs
205 main-is: nested-loops.hs
228 hs-source-dirs: examples
206 hs-source-dirs: examples