diff --git a/ghcide/src/Development/IDE/GHC/ExactPrint.hs b/ghcide/src/Development/IDE/GHC/ExactPrint.hs index 703b3e3ec0..77e07371a6 100644 --- a/ghcide/src/Development/IDE/GHC/ExactPrint.hs +++ b/ghcide/src/Development/IDE/GHC/ExactPrint.hs @@ -292,8 +292,8 @@ graftExprWithM dst trans = Graft $ \dflags a -> do case mval of Just val' -> do (anns, val'') <- - hoistTransform (either Fail.fail pure) $ - annotate dflags needs_space $ mk_parens val' + hoistTransform (either Fail.fail pure) + (annotate @(HsExpr GhcPs) dflags needs_space (mk_parens val')) modifyAnnsT $ mappend anns pure val'' Nothing -> pure val