on master help sign in
Make streamly-core docspec independent of streamly
commitd326151671471c8d0b03a6b026a2d5482cdacb10 authorAdithya Kumar <adithya@composewell.com> dateTue 25 Oct 2022, 14:31 (4 years ago) parent64fe269
10 files changed+5−14
core/src/Streamly/Data/Array/Unboxed.hs−1 core/src/Streamly/Internal/Data/Array/Mut/Type.hs−1 core/src/Streamly/Internal/Data/Fold.hs−1 core/src/Streamly/Internal/Data/Fold/Type.hs−1 core/src/Streamly/Internal/Data/Parser.hs−1 core/src/Streamly/Internal/Data/Parser/ParserD.hs−1 core/src/Streamly/Internal/Data/Parser/ParserD/Type.hs−1 core/src/Streamly/Internal/Data/Refold/Type.hs−1 core/src/Streamly/Internal/Data/Stream/Expand.hs+5−5 core/src/Streamly/Internal/Unicode/String.hs−1
core/src/Streamly/Data/Array/Unboxed.hs−1
@@ -107,7 +107,6 @@ import Prelude hiding (read)
107107-- $setup
108108-- >>> :m
109109-- >>> :set -XFlexibleContexts
110−-- >>> :set -package streamly
111110-- >>> import Streamly.Internal.Data.Stream (Stream)
112111-- >>> import Streamly.Data.Array.Unboxed (Array)
113112-- >>> import qualified Streamly.Internal.Data.Stream as Stream
core/src/Streamly/Internal/Data/Array/Mut/Type.hs−1
@@ -182,7 +182,6 @@ import Prelude hiding (read)
182182
183183-- $setup
184184-- >>> :m
185−-- >>> :set -package streamly
186185-- >>> import qualified Streamly.Internal.Data.Array.Mut.Type as Array
187186-- >>> import qualified Streamly.Internal.Data.Stream as Stream
188187-- >>> import qualified Streamly.Internal.Data.Stream.StreamD as StreamD
core/src/Streamly/Internal/Data/Fold.hs−1
@@ -371,7 +371,6 @@ import Streamly.Internal.Data.Fold.Type
371371
372372-- $setup
373373-- >>> :m
374−-- >>> :set -package streamly
375374-- >>> import Prelude hiding (break, map, span, splitAt)
376375-- >>> import qualified Streamly.Data.Array.Unboxed as Array
377376-- >>> import qualified Streamly.Data.Fold as Fold
core/src/Streamly/Internal/Data/Fold/Type.hs−1
@@ -433,7 +433,6 @@ import Prelude hiding (concatMap, filter, foldr, map, take)
433433-- $setup
434434-- >>> :m
435435-- >>> :set -XFlexibleContexts
436−-- >>> :set -package streamly
437436-- >>> import Data.Maybe (fromJust, isJust)
438437-- >>> import Streamly.Data.Fold (Fold)
439438-- >>> import Streamly.Internal.Data.Stream.Type (Stream)
core/src/Streamly/Internal/Data/Parser.hs−1
@@ -264,7 +264,6 @@ import Prelude hiding
264264--
265265-- $setup
266266-- >>> :m
267−-- >>> :set -package streamly
268267-- >>> import Prelude hiding (any, all, dropWhile, take, takeWhile, sequence, concatMap, maybe, either, filter)
269268-- >>> import Control.Applicative ((<|>))
270269-- >>> import Data.Char (isSpace)
core/src/Streamly/Internal/Data/Parser/ParserD.hs−1
@@ -223,7 +223,6 @@ import Streamly.Internal.Data.Parser.ParserD.Type
223223--
224224-- $setup
225225-- >>> :m
226−-- >>> :set -package streamly
227226-- >>> import Prelude hiding ()
228227-- >>> import qualified Data.Maybe as Maybe
229228-- >>> import qualified Streamly.Data.Stream as Stream
core/src/Streamly/Internal/Data/Parser/ParserD/Type.hs−1
@@ -225,7 +225,6 @@ import Prelude hiding (concatMap, filter)
225225--
226226-- $setup
227227-- >>> :m
228−-- >>> :set -package streamly
229228-- >>> import Control.Applicative ((<|>))
230229-- >>> import Data.Bifunctor (second)
231230-- >>> import Prelude hiding (concatMap)
core/src/Streamly/Internal/Data/Refold/Type.hs−1
@@ -51,7 +51,6 @@ import Prelude hiding (take, iterate)
5151
5252-- $setup
5353-- >>> :m
54−-- >>> :set -package streamly
5554-- >>> import qualified Streamly.Internal.Data.Refold.Type as Refold
5655-- >>> import qualified Streamly.Internal.Data.Fold.Type as Fold
5756-- >>> import qualified Streamly.Internal.Data.Stream as Stream
core/src/Streamly/Internal/Data/Stream/Expand.hs+5−5
@@ -619,9 +619,9 @@ concatPairsWith par f m =
619619-- It can be used to traverse a tree structure. For example, to list a
620620-- directory tree:
621621--
622−-- >> input = Stream.fromPure (Left ".")
623−-- >> f = either Dir.toEither (const Stream.nil)
624−-- >> ls = Stream.iterateMapWith Stream.append f input
622+-- >>> input = Stream.fromPure (Left ".")
623+-- >>> f = either Dir.readEither (const Stream.nil)
624+-- >>> ls = Stream.iterateMapWith Stream.append f input
625625--
626626-- /Pre-release/
627627--
@@ -711,8 +711,8 @@ concatMapEitherWith = undefined
711711--
712712-- To traverse a directory tree:
713713--
714−-- >> input = fromPure (Left ".")
715−-- >> ls = Stream.iterateMapLeftsWith Stream.append Dir.toEither input
714+-- >>> input = Stream.fromPure (Left ".")
715+-- >>> ls = Stream.iterateMapLeftsWith Stream.append Dir.readEither input
716716--
717717-- /Pre-release/
718718--
core/src/Streamly/Internal/Unicode/String.hs−1
@@ -49,7 +49,6 @@ import qualified Streamly.Internal.Unicode.Char.Parser as Parser
4949
5050-- $setup
5151-- >>> :m
52−-- >>> :set -package streamly
5352-- >>> :set -XQuasiQuotes
5453-- >>> import Streamly.Internal.Unicode.String
5554--