on master help sign in
Make the note of eta-reduction under mapFB more evident
6dd122aAdithya Kumar
core/src/Streamly/Internal/Data/Stream/StreamK/Type.hs+3−1
@@ -770,7 +770,9 @@ instance Monoid (Stream m a) where
770-- Functor
770-- Functor
771-------------------------------------------------------------------------------
771-------------------------------------------------------------------------------
772
772
773−-- Note eta expanded
773+-- IMPORTANT: This is eta expanded on purpose. This should not be eta
774+-- reduced. This will cause a lot of regressions, probably because of some
775+-- rewrite rules. Ideally don't run hlint on this file.
774{-# INLINE_LATE mapFB #-}
776{-# INLINE_LATE mapFB #-}
775mapFB :: forall b m a.
777mapFB :: forall b m a.
776 (b -> Stream m b -> Stream m b)
778 (b -> Stream m b -> Stream m b)