Skip to content

[psc-ide] use unicode forall and arrows in completions#2532

Merged
kritzcreek merged 1 commit intopurescript:masterfrom
kritzcreek:psc-ide-pretty-unicode-types
Jan 6, 2017
Merged

[psc-ide] use unicode forall and arrows in completions#2532
kritzcreek merged 1 commit intopurescript:masterfrom
kritzcreek:psc-ide-pretty-unicode-types

Conversation

@kritzcreek
Copy link
Copy Markdown
Member

@kritzcreek kritzcreek commented Jan 2, 2017

Using the unicode syntax for the reported types looks nice and has the added benefit of reducing the popup/message size.

Doing a simple string replacement is not the most robust solution, but I'm fairly certain it's good enough for our purposes. If a typevariable ending in forall gets altered it's easy enough to figure out what has happened for the user.

@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Jan 2, 2017

Replacing strings seems a bit sketchy. Why not pass options to prettyPrintType instead?

@kritzcreek
Copy link
Copy Markdown
Member Author

You're right, done.

@kritzcreek
Copy link
Copy Markdown
Member Author

Hmm the windows failure needs a bit of encoding massaging...

@paf31
Copy link
Copy Markdown
Contributor

paf31 commented Jan 3, 2017

Thanks! Looks good once the encoding issue is sorted.

@kritzcreek kritzcreek force-pushed the psc-ide-pretty-unicode-types branch 3 times, most recently from 26161b4 to 37674de Compare January 6, 2017 21:41
@kritzcreek
Copy link
Copy Markdown
Member Author

The tests pass again... I had to take explicit control over the psc-ide process for the integration tests. If this looks fine I'll squash and merge.

* removes the conversion module. now that the compiler types have been switched
  to Text the conversion module is no longer needed

* adds parameterized versions of prettyPrintType

* fixes unicode issues in the test suite on windows
@kritzcreek kritzcreek force-pushed the psc-ide-pretty-unicode-types branch from 37674de to ffaa9d9 Compare January 6, 2017 22:38
@kritzcreek kritzcreek merged commit c09ceb7 into purescript:master Jan 6, 2017
@kritzcreek kritzcreek deleted the psc-ide-pretty-unicode-types branch April 21, 2017 06:47
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.

2 participants