Skip to content

Conversation

@hdgarrood
Copy link
Contributor

@hdgarrood hdgarrood commented Dec 30, 2017

Resolves #3178. I've reverted the commits from the following PRs, in reverse chronological order:

After this is merged I will delete the 0.12.0-dev branch (unless anyone objects, but I don't see a reason to now, since everything in that branch is now also in master).

Still WIP: I need to fix the tests and check the core libraries still compile.

import Data.Symbol (SProxy(..))

class Same l r (o :: Symbol) | l r -> o
instance sameY :: Same t t "Y" else instance sameN :: Same l r "N"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@LiamGoodacre I've changed this class slightly, so that the o parameter is a Symbol rather than a proxy, just because that seemed to make it slightly simpler. I did the same in the other failing instance chains test as well. Do you think this makes sense?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that makes sense.

@hdgarrood
Copy link
Contributor Author

The CI failure is only on the Haddock build and it's to do with a timeout so I'm going to ignore it. I just checked and the core libraries all still compile with this code, apart from datetime which uses old-style generics.

Copy link
Member

@kritzcreek kritzcreek left a comment

Choose a reason for hiding this comment

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

Looks good! I've restarted the Travis Job that failed.

@hdgarrood
Copy link
Contributor Author

Unfortunately if you restart a job, it seems to pick up the cache as it was at the start of the first attempt, which means it will most likely fail for the same reason again (ie timeout installing dependencies). I should really have just pushed an empty commit - that way you get to pick up where the previous build left off.

@hdgarrood
Copy link
Contributor Author

Ok never mind then!

@hdgarrood
Copy link
Contributor Author

Thank you!

@hdgarrood hdgarrood merged commit 38f631c into master Jan 3, 2018
@hdgarrood hdgarrood deleted the revert-proxies branch January 3, 2018 19:50
matthewleon pushed a commit to matthewleon/purescript that referenced this pull request Jan 6, 2018
* Revert "pretty print proxy types when rendering docs (purescript#3144)"

This reverts commit 14227c7.

* Revert "Print proxy type as an operator (purescript#3124)"

This reverts commit cfd1db3.

* Revert "Fix proxies: synonyms, inference, traversals, instances (purescript#3095)"

This reverts commit fe0aa0d.

* Revert "Add proxies (purescript#2846)"

This reverts commit 74bc4a9.

* Remove one last occurrence of the ProxyType constructor

* Update tests to not use new proxies
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.

Proxy syntax / plans for 0.12

4 participants