File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -509,9 +509,14 @@ addStackFrames
509509 :: forall v e m a
510510 . (Scoped v m , Framed e m , Typeable v , Typeable m )
511511 => Transform NExprLocF (m a )
512- addStackFrames f v = do
513- scopes <- currentScopes :: m (Scopes m v )
514- withFrame Info (EvaluatingExpr scopes v) (f v)
512+ addStackFrames f v =
513+ do
514+ scopes <- currentScopes :: m (Scopes m v )
515+
516+ -- sectioning gives GHC optimization
517+ (`withFrameInfo` f v) $ (`EvaluatingExpr ` v) scopes
518+ where
519+ withFrameInfo = withFrame Info
515520
516521framedEvalExprLoc
517522 :: forall e v m
Original file line number Diff line number Diff line change 125125adiM f g = g ((f <=< traverse (adiM f g)) . unFix)
126126
127127class Has a b where
128- hasLens :: Lens' a b
128+ hasLens :: Lens' a b
129129
130130instance Has a a where
131131 hasLens f = f
You can’t perform that action at this time.
0 commit comments