Skip to content

Commit 3095662

Browse files
authored
Add new variables to the extract when doing intros (#1472)
1 parent b911f8e commit 3095662

File tree

1 file changed

+2
-1
lines changed
  • plugins/hls-tactics-plugin/src/Ide/Plugin/Tactic

1 file changed

+2
-1
lines changed

plugins/hls-tactics-plugin/src/Ide/Plugin/Tactic/Tactics.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Ide.Plugin.Tactic.Tactics
1212
) where
1313

1414
import Control.Applicative (Alternative(empty))
15-
import Control.Lens ((&), (%~))
15+
import Control.Lens ((&), (%~), (<>~))
1616
import Control.Monad (unless)
1717
import Control.Monad.Except (throwError)
1818
import Control.Monad.Reader.Class (MonadReader (ask))
@@ -104,6 +104,7 @@ intros = rule $ \jdg -> do
104104
ext
105105
& #syn_trace %~ rose ("intros {" <> intercalate ", " (fmap show vs) <> "}")
106106
. pure
107+
& #syn_scoped <>~ hy'
107108
& #syn_val %~ noLoc . lambda (fmap bvar' vs) . unLoc
108109

109110

0 commit comments

Comments
 (0)