Skip to content

Type suggestions#2053

Closed
nwolverson wants to merge 9 commits intopurescript:masterfrom
nwolverson:type-suggestions
Closed

Type suggestions#2053
nwolverson wants to merge 9 commits intopurescript:masterfrom
nwolverson:type-suggestions

Conversation

@nwolverson
Copy link
Copy Markdown
Contributor

2 new suggestions here for editor support etc.

  • MissingTypeDeclaration - adding a separate source range in the JSON suggestion field to support this, I think that's likely something that could be used elsewhere. Idea being the replacement range may not coincide with the warning/error range
  • TypeWildCard - Main thing here is this needed a source position for the wildcard itself rather than the whole thing. I tried a general PositionedType constructor as per PositionedValue but ended up scattering junk all over the typechecker without managing to make it work. I imagine types may want detailed error positions in the future obsoleting some of this, but I can't work out the details. This looks good with psa now.

@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Apr 30, 2016

Could you please rebase this and your other PR against the 0.9 branch? I'm going to use master for emergency 0.8 fixes until 0.9 is released. Thanks!

kritzcreek and others added 4 commits May 1, 2016 01:29
* The current usage of psc-ide involves loading all modules anyway, so
  we don't worry about loading previously unloaded modules.

* Don't attempt to reload deleted files
@nwolverson
Copy link
Copy Markdown
Contributor Author

Rebased on 0.9. As per other PR let me know if you want to open a fresh PR.

@LiamGoodacre
Copy link
Copy Markdown
Member

@nwolverson I believe we want new PRs on the 0.9 branch - see #2067

@paf31
Copy link
Copy Markdown
Contributor

paf31 commented May 1, 2016

Yes, I think you need to open a fresh PR. Thanks!

@nwolverson
Copy link
Copy Markdown
Contributor Author

#2076

@nwolverson nwolverson closed this May 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants