Closed
Description
data IntroParams
= IntroduceAllUnnamed
| IntroduceOnlyNamed [OccName]
| IntroduceOnlyUnnamed Int
deriving stock (Eq, Ord, Show)
intros'
:: IntroParams
-> TacticsM ()
intros' params = rule $ \jdg -> do
let g = jGoal jdg
case tacticsSplitFunTy $ unCType g of
(_, _, [], _) -> cut -- failure $ GoalMismatch "intros" g
(_, _, args, res) -> do
ctx <- ask
let occs = _
trying Desruct params
at the hole produces:
let occs = _
occs = _
occs = _
Yikes.