Skip to content

Commit 6dd122a

Browse files
committed
Make the note of eta-reduction under mapFB more evident
1 parent 6f68b50 commit 6dd122a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • core/src/Streamly/Internal/Data/Stream/StreamK

core/src/Streamly/Internal/Data/Stream/StreamK/Type.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 #-}
775777
mapFB :: forall b m a.
776778
(b -> Stream m b -> Stream m b)

0 commit comments

Comments
 (0)