on master help sign in
Move Streamly.Enumeration to Streamly.Streams.Enumeration
d098a05Harendra Kumar
src/Streamly/Internal/Prelude.hs+1−1
@@ -402,7 +402,7 @@ import qualified Data.Map.Strict as Map
402import qualified Prelude
402import qualified Prelude
403import qualified System.IO as IO
403import qualified System.IO as IO
404
404
405−import Streamly.Enumeration (Enumerable(..), enumerate, enumerateTo)
405+import Streamly.Streams.Enumeration (Enumerable(..), enumerate, enumerateTo)
406import Streamly.Internal.Data.Fold.Types (Fold (..))
406import Streamly.Internal.Data.Fold.Types (Fold (..))
407import Streamly.Internal.Data.Unfold.Types (Unfold)
407import Streamly.Internal.Data.Unfold.Types (Unfold)
408import Streamly.Internal.Memory.Array.Types (Array, writeNUnsafe)
408import Streamly.Internal.Memory.Array.Types (Array, writeNUnsafe)
src/Streamly/Enumeration.hs → src/Streamly/Streams/Enumeration.hsrenamed+3−3
@@ -1,7 +1,7 @@
1{-# LANGUAGE CPP #-}
1{-# LANGUAGE CPP #-}
2
2
3-- |
3-- |
4−-- Module : Streamly.Enumeration
4+-- Module : Streamly.Streams.Enumeration
5-- Copyright : (c) 2018 Harendra Kumar
5-- Copyright : (c) 2018 Harendra Kumar
6--
6--
7-- License : BSD3
7-- License : BSD3
@@ -22,7 +22,7 @@
22-- in this module can be used to define them. Alternatively, these functions
22-- in this module can be used to define them. Alternatively, these functions
23-- can be used directly.
23-- can be used directly.
24
24
25−module Streamly.Enumeration
25+module Streamly.Streams.Enumeration
26 (
26 (
27 Enumerable (..)
27 Enumerable (..)
28
28
@@ -320,7 +320,7 @@ enumerateFromThenSmallBounded from next =
320-- | Types that can be enumerated as a stream. The operations in this type
320-- | Types that can be enumerated as a stream. The operations in this type
321-- class are equivalent to those in the 'Enum' type class, except that these
321-- class are equivalent to those in the 'Enum' type class, except that these
322-- generate a stream instead of a list. Use the functions in
322-- generate a stream instead of a list. Use the functions in
323−-- "Streamly.Enumeration" module to define new instances.
323+-- "Streamly.Streams.Enumeration" module to define new instances.
324--
324--
325-- @since 0.6.0
325-- @since 0.6.0
326class Enum a => Enumerable a where
326class Enum a => Enumerable a where
streamly.cabal+3−3
@@ -252,10 +252,9 @@ library
252 if os(darwin)
252 if os(darwin)
253 c-sources: src/Streamly/Internal/Data/Time/Darwin.c
253 c-sources: src/Streamly/Internal/Data/Time/Darwin.c
254 hs-source-dirs: src
254 hs-source-dirs: src
255− other-modules: Streamly.Enumeration
255+ other-modules:
256−
257 -- Memory storage
256 -- Memory storage
258− , Streamly.Memory.Malloc
257+ Streamly.Memory.Malloc
259 , Streamly.Memory.Ring
258 , Streamly.Memory.Ring
260
259
261 -- Base streams
260 -- Base streams
@@ -265,6 +264,7 @@ library
265 , Streamly.Streams.StreamDK
264 , Streamly.Streams.StreamDK
266 , Streamly.Streams.StreamD.Type
265 , Streamly.Streams.StreamD.Type
267 , Streamly.Streams.StreamD
266 , Streamly.Streams.StreamD
267+ , Streamly.Streams.Enumeration
268 , Streamly.Streams.Prelude
268 , Streamly.Streams.Prelude
269
269
270 -- Higher level streams
270 -- Higher level streams