Skip to content

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

3 participants