on master help sign in
Start using fusion-plugin annotations.
commitbd33fc7303adb5737ba67e28013ce8941eb663db authorPranay Sashank <pranaysashank@gmail.com> dateFri 24 Jan 2020, 16:27 (7 years ago) parentf8d7883
2 files changed+4
src/Streamly/Internal/Data/Stream/StreamD/Type.hs+2 streamly.cabal+2
src/Streamly/Internal/Data/Stream/StreamD/Type.hs+2
@@ -74,6 +74,7 @@ import Data.Functor.Identity (Identity(..))
7474import GHC.Base (build)
7575import GHC.Types (SPEC(..))
7676import Prelude hiding (map, mapM, foldr, take, concatMap)
77+import Fusion.Plugin.Types (Fuse(..))
7778
7879import Streamly.Internal.Data.SVar (State(..), adaptState, defState)
7980import Streamly.Internal.Data.Fold.Types (Fold(..), Fold2(..))
@@ -87,6 +88,7 @@ import qualified Streamly.Internal.Data.Stream.StreamK as K
8788-- | A stream is a succession of 'Step's. A 'Yield' produces a single value and
8889-- the next state of the stream. 'Stop' indicates there are no more values in
8990-- the stream.
91+{-# ANN type Step Fuse #-}
9092data Step s a = Yield a s | Skip s | Stop
9193
9294instance Functor (Step s) where
streamly.cabal+2
@@ -385,6 +385,8 @@ library
385385 , monad-control >= 1.0 && < 2
386386 , transformers-base >= 0.4 && < 0.5
387387
388+ , fusion-plugin >= 0.1 && < 0.2
389+
388390 if !impl(ghcjs)
389391 build-depends:
390392 network >= 2.6 && < 4