isovector / haskell-language-server

Integration point for ghcide and haskell-ide-engine. One IDE to rule them all.
Apache License 2.0
0 stars 2 forks source link

Populate positional vars for non-RHS holes #20

Open isovector opened 3 years ago

isovector commented 3 years ago

That is, if i write

case foo of
  Bar a b c -> _

the hole should get (foo.[[a,b,c]]) inserted in its position vars judgement

isovector commented 3 years ago

https://github.com/isovector/haskell-language-server/blob/8e690047025ec05e92c69a3536cba9669f3e18e2/plugins/tactics/src/Ide/Plugin/Tactic.hs#L335-L346 implements this for function RHSes. The more general solution is likely to just extend this.