Consider inlining `($)` with -O0
Compile
f :: Int -> Int
f = oneShot $ \x -> x+1
and see that oneShot
is inlined, but ($)
is not. I think it's fair to treat ($)
a bit special, as it's pretty common.
Compile
f :: Int -> Int
f = oneShot $ \x -> x+1
and see that oneShot
is inlined, but ($)
is not. I think it's fair to treat ($)
a bit special, as it's pretty common.