Make the note of eta-reduction under mapFB more evident

This commit is contained in:
Adithya Kumar 2022-08-10 18:59:20 +05:30
parent 6f68b50d18
commit 6dd122a47a

View File

@ -770,7 +770,9 @@ instance Monoid (Stream m a) where
-- Functor
-------------------------------------------------------------------------------
-- Note eta expanded
-- IMPORTANT: This is eta expanded on purpose. This should not be eta
-- reduced. This will cause a lot of regressions, probably because of some
-- rewrite rules. Ideally don't run hlint on this file.
{-# INLINE_LATE mapFB #-}
mapFB :: forall b m a.
(b -> Stream m b -> Stream m b)