on master help sign in
Make the note of eta-reduction under mapFB more evident
commit6dd122a47a5aedd58913005b60db34700bc3f401 authorAdithya Kumar <adithya@composewell.com> dateWed 10 Aug 2022, 18:59 (4 years ago) parent6f68b50
1 file changed+3−1
core/src/Streamly/Internal/Data/Stream/StreamK/Type.hs+3−1
core/src/Streamly/Internal/Data/Stream/StreamK/Type.hs+3−1
@@ -770,7 +770,9 @@ instance Monoid (Stream m a) where
770770-- Functor
771771-------------------------------------------------------------------------------
772772
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.
774776{-# INLINE_LATE mapFB #-}
775777mapFB :: forall b m a.
776778 (b -> Stream m b -> Stream m b)