Skip to content

Commit

Permalink
hold Map based operations for now
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Nov 14, 2019
1 parent 75b0bac commit 79a0c1e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions examples/FileIOExamples.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import qualified Streamly.Prelude as S
import qualified Streamly.Data.Fold as FL
import qualified Streamly.Memory.Array as A

import qualified Streamly.Internal.Data.Fold as FL
import qualified Streamly.Internal.Prelude as IP
import qualified Streamly.Internal.FileSystem.File as File

Expand Down
6 changes: 4 additions & 2 deletions examples/HandleIO.hs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import qualified Streamly.Prelude as S
import qualified Streamly.Data.Fold as FL
-- import qualified Streamly.Memory.Array as A
import qualified Streamly.Internal.Memory.ArrayStream as AS
import qualified Streamly.Internal.FileSystem.Handle as IFH
import qualified Streamly.FileSystem.Handle as FH
import qualified System.IO as FH
-- import qualified Streamly.FileSystem.FD as FH
-- import qualified Streamly.Data.Unicode.Stream as US

import qualified Streamly.Internal.Data.Fold as FL
import qualified Streamly.Internal.Memory.ArrayStream as AS
import qualified Streamly.Internal.FileSystem.Handle as IFH

import Data.Char (ord)
import System.Environment (getArgs)
import System.IO (IOMode(..), hSeek, SeekMode(..))
Expand Down
1 change: 0 additions & 1 deletion examples/WordClassifier.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import qualified Streamly.Internal.FileSystem.File as File
import qualified Streamly.Memory.Array as A
import qualified Streamly.Prelude as S
import System.Environment (getArgs)
import System.IO (openFile, IOMode(..))

instance (Enum a, Storable a) => Hashable (A.Array a) where
hash arr = runIdentity $ IUF.fold A.read IFL.rollingHash arr
Expand Down
4 changes: 3 additions & 1 deletion src/Streamly/Data/Fold.hs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ module Streamly.Data.Fold
, sequence
, mapM

{-
-- ** Mapping
--, transform
-- , lmap
Expand All @@ -145,7 +146,6 @@ module Streamly.Data.Fold
-- , ldeleteBy
-- , luniq
{-
-- ** Mapping Filters
, lmapMaybe
, lmapMaybeM
Expand Down Expand Up @@ -219,6 +219,7 @@ module Streamly.Data.Fold
-- , partitionBy
, partition

{-
-- * Demultiplexing
-- | Direct values in the input stream to different folds using an n-ary
-- fold selector.
Expand All @@ -234,6 +235,7 @@ module Streamly.Data.Fold
, classify
-- , classifyWith
-}

-- * Unzipping
, unzip
Expand Down

0 comments on commit 79a0c1e

Please sign in to comment.