Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Fixes for 0.6.1 #17

Merged
merged 2 commits into from
Nov 18, 2014
Merged

Fixes for 0.6.1 #17

merged 2 commits into from
Nov 18, 2014

Conversation

paf31
Copy link
Contributor

@paf31 paf31 commented Nov 18, 2014

@garyb @joneshf Could you please review?

To parse multiple guards, every guard needs to be equally indented, and in 0.6.1 this means that the body of the guard needs to be more indented than its expression, which breaks purescript-lists and purescript-maps.

down ctx k (Three Leaf k1 _ Leaf k2 v2 Leaf)
| k P.== k1 = fromZipper ctx (Two Leaf k2 v2 Leaf)
down ctx k (Three Leaf k1 v1 Leaf k2 _ Leaf)
| k P.== k2 = fromZipper ctx (Two Leaf k1 v1 Leaf)
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be combined with the previous one right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure I see how...

Copy link
Contributor

Choose a reason for hiding this comment

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

down ctx k (Three Leaf k1 v1 Leaf k2 v2 Leaf)
  | k P.== k1 = fromZipper ctx (Two Leaf k2 v2 Leaf)
  | k P.== k2 = fromZipper ctx (Two Leaf k1 v1 Leaf)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

D'oh.

@joneshf
Copy link
Contributor

joneshf commented Nov 18, 2014

Ouch! Will that change in future versions?

PR looks good aside from my comment.

@paf31
Copy link
Contributor Author

paf31 commented Nov 18, 2014

@joneshf Ok, this should be good now.

@joneshf
Copy link
Contributor

joneshf commented Nov 18, 2014

👍

paf31 added a commit that referenced this pull request Nov 18, 2014
@paf31 paf31 merged commit 57fdded into master Nov 18, 2014
@paf31 paf31 deleted the 0.6.1 branch November 18, 2014 18:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants