-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Description
We have definitions like
over l f = runMutator# (l (mutator# f))If we turn this into
over l = \f -> runMutator# (l (mutator# f))GHC can inline it better in a call like
foo :: (a -> b) -> [a] -> [b]
foo = over mappedSince the application is saturated, even if foo doesn't end up getting inlined.
Our strategy in lens has mostly been "inline everything, and let GHC simplify it down to nothing at the use site", so this probably wouldn't cause any harm.
Reactions are currently unavailable