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

Increase flexibility of union literals #129

Merged
merged 1 commit into from Sep 6, 2017

Conversation

Projects
None yet
2 participants
@Gabriel439
Collaborator

Gabriel439 commented Sep 6, 2017

Fixes #125

Before this change, the parser for union literals required the selected
alternative to be at the front of the union like this:

< A = True | B : Integer >  -- Allowed
< B : Integer | A = True >  -- Not allowed

After this change, the alternative you select can by anywhere in the
union literal:

< A = True | B : Integer >  -- Allowed
< B : Integer | A = True >  -- Allowed
Increase flexibility of union literals
Fixes #125

Before this change, the parser for union literals required the selected
alternative to be at the front of the union like this:

```haskell
< A = True | B : Integer >  -- Allowed
< B : Integer | A = True >  -- Not allowed
```

After this change, the alternative you select can by anywhere in the
union literal:

```haskell
< A = True | B : Integer >  -- Allowed
< B : Integer | A = True >  -- Allowed
```

@bosu bosu merged commit 79980f1 into master Sep 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment