on master help sign in
Add todo comments, reorg imports
commitb19d96f1742d6a4bafcc8df0bb88e878dd8bc7b6 authorHarendra Kumar <harendra.kumar@gmail.com> dateSun 26 Jan 2020, 13:08 (7 years ago) parent868fc9f
2 files changed+13−3
src/Streamly/Internal/Data/Prim/Array.hs+9−2 src/Streamly/Internal/Data/SmallArray.hs+4−1
src/Streamly/Internal/Data/Prim/Array.hs+9−2
@@ -16,7 +16,13 @@
1616-- Portability : GHC
1717--
1818module Streamly.Internal.Data.Prim.Array
19− ( PrimArray(..)
19+ (
20+
21+ -- XXX should it be just Array instead? We should be able to replace one
22+ -- array type with another easily.
23+ PrimArray(..)
24+
25+ -- XXX Prim should be exported from Data.Prim module?
2026 , Prim(..)
2127
2228 , foldl'
@@ -53,9 +59,10 @@ import Control.DeepSeq (NFData(..))
5359import Control.Monad (when)
5460import Control.Monad.IO.Class (liftIO, MonadIO)
5561import GHC.IO (unsafePerformIO)
56−import Data.Primitive.PrimArray
5762import Data.Primitive.Types (Prim(..))
5863
64+import Data.Primitive.PrimArray
65+
5966import Streamly.Internal.Data.Unfold.Types (Unfold(..))
6067import Streamly.Internal.Data.Fold.Types (Fold(..))
6168import Streamly.Internal.Data.Stream.StreamK.Type (IsStream)
src/Streamly/Internal/Data/SmallArray.hs+4−1
@@ -16,7 +16,10 @@
1616#include "inline.hs"
1717
1818module Streamly.Internal.Data.SmallArray
19− ( SmallArray(..)
19+ (
20+ -- XXX should it be just Array instead? We should be able to replace one
21+ -- array type with another easily.
22+ SmallArray(..)
2023
2124 , foldl'
2225 , foldr