on master help sign in
Move Streamly.Enumeration to Streamly.Streams.Enumeration
commitd098a0575ab84aba70daa34a66f23a0ca297ad2e authorHarendra Kumar <harendra.kumar@gmail.com> dateWed 25 Sep 2019, 17:15 (7 years ago) parent3c8f5b8
3 files changed+7−7
src/Streamly/Internal/Prelude.hs+1−1 src/Streamly/Enumeration.hs → src/Streamly/Streams/Enumeration.hs+3−3 streamly.cabal+3−3
src/Streamly/Internal/Prelude.hs+1−1
@@ -402,7 +402,7 @@ import qualified Data.Map.Strict as Map
402402import qualified Prelude
403403import qualified System.IO as IO
404404
405−import Streamly.Enumeration (Enumerable(..), enumerate, enumerateTo)
405+import Streamly.Streams.Enumeration (Enumerable(..), enumerate, enumerateTo)
406406import Streamly.Internal.Data.Fold.Types (Fold (..))
407407import Streamly.Internal.Data.Unfold.Types (Unfold)
408408import Streamly.Internal.Memory.Array.Types (Array, writeNUnsafe)
src/Streamly/Enumeration.hs → src/Streamly/Streams/Enumeration.hsrenamed+3−3
@@ -1,7 +1,7 @@
11{-# LANGUAGE CPP #-}
22
33-- |
4−-- Module : Streamly.Enumeration
4+-- Module : Streamly.Streams.Enumeration
55-- Copyright : (c) 2018 Harendra Kumar
66--
77-- License : BSD3
@@ -22,7 +22,7 @@
2222-- in this module can be used to define them. Alternatively, these functions
2323-- can be used directly.
2424
25−module Streamly.Enumeration
25+module Streamly.Streams.Enumeration
2626 (
2727 Enumerable (..)
2828
@@ -320,7 +320,7 @@ enumerateFromThenSmallBounded from next =
320320-- | Types that can be enumerated as a stream. The operations in this type
321321-- class are equivalent to those in the 'Enum' type class, except that these
322322-- 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.
324324--
325325-- @since 0.6.0
326326class Enum a => Enumerable a where
streamly.cabal+3−3
@@ -252,10 +252,9 @@ library
252252 if os(darwin)
253253 c-sources: src/Streamly/Internal/Data/Time/Darwin.c
254254 hs-source-dirs: src
255− other-modules: Streamly.Enumeration
256−
255+ other-modules:
257256 -- Memory storage
258− , Streamly.Memory.Malloc
257+ Streamly.Memory.Malloc
259258 , Streamly.Memory.Ring
260259
261260 -- Base streams
@@ -265,6 +264,7 @@ library
265264 , Streamly.Streams.StreamDK
266265 , Streamly.Streams.StreamD.Type
267266 , Streamly.Streams.StreamD
267+ , Streamly.Streams.Enumeration
268268 , Streamly.Streams.Prelude
269269
270270 -- Higher level streams