Skip to content

Update for PureScript 0.14 #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jan 25, 2021
Merged

Update for PureScript 0.14 #209

merged 10 commits into from
Jan 25, 2021

Conversation

thomashoneyman
Copy link
Member

@thomashoneyman thomashoneyman commented Jan 23, 2021

Description of changes:

This PR updates Try PureScript for compatibility with PureScript 0.14.x. In this case I'm using the latest commit for 0.14.0-rc5 in Stack via GitHub. The changes are straightforward, but I'm now throwing away warnings (which weren't previously present) so that's worth a look to see if we can make better use of them.

I haven't been able to thoroughly test this yet, but if I can load up the prepare-0.14 package set locally for testing purposes then I will report those results back.

Unlike Pursuit, we won't want to deploy this until after 0.14 is out and we can rely on a new package set. But I still wanted to get this ready for release so we're ready to deploy as soon as that package set is together.

Thanks also to @colinwahl for working on this with me.

@thomashoneyman thomashoneyman self-assigned this Jan 23, 2021
server/Main.hs Outdated
@@ -102,7 +107,7 @@ server externs initNamesEnv initEnv port = do
search = fst . TS.typeSearch (Just []) initEnv (P.emptyCheckState initEnv)
results = nubBy ((==) `on` fst) $ do
elab <- elabs
let strictMatches = search (replaceTypeVariablesAndDesugar (\nm s -> P.Skolem P.NullSourceAnn nm s (P.SkolemScope 0)) elab)
let strictMatches = search (replaceTypeVariablesAndDesugar (\nm s -> P.Skolem P.NullSourceAnn nm Nothing s (P.SkolemScope 0)) elab)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skolems are now tagged with their kinds as per the PolyKinds PR, so there's an additional argument:

https://github.com/purescript/purescript/blob/62c5862430f91a9249046487bd80bd058b3df915/lib/purescript-ast/src/Language/PureScript/Types.hs#L73

If setting this to Nothing is the wrong approach, I'd appreciate a note on where I might find this information.

@thomashoneyman thomashoneyman requested review from hdgarrood and natefaubion and removed request for hdgarrood January 23, 2021 02:11
@thomashoneyman thomashoneyman merged commit 52c81fc into master Jan 25, 2021
@thomashoneyman thomashoneyman deleted the release-0.14 branch January 25, 2021 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants