Skip to content

Wingman: Destruct on let-bound term fails #2074

Closed
@isovector

Description

@isovector
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: wingmanstatus: needs infoNot actionable, because there's missing informationtype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions