@@ -23,7 +23,6 @@ module Streamly.Internal.Data.Producer.Type
23 -- * Mapping
23 -- * Mapping
24 , translate
24 , translate
28 -- * Nesting
27 -- * Nesting
29 , NestedLoop (..)
28 , NestedLoop (..)
@@ -113,13 +112,6 @@ translate f g (Producer step inject extract) =
113lmap :: (a -> a) -> Producer m a b -> Producer m a b
112lmap :: (a -> a) -> Producer m a b -> Producer m a b
114lmap f (Producer step inject extract) = Producer step (inject . f) extract
113lmap f (Producer step inject extract) = Producer step (inject . f) extract
116−-- | Map the producer input using the provided translation functions
119−{-# INLINE_NORMAL lmap2 #-}
120−lmap2 :: Functor m => (a -> c) -> (c -> a) -> Producer m c b -> Producer m a b
121−lmap2 f g (Producer step inject extract) = Producer step (inject . f) (fmap g . extract)
123------------------------------------------------------------------------------
115------------------------------------------------------------------------------
124-- Functor
116-- Functor
125------------------------------------------------------------------------------
117------------------------------------------------------------------------------