Skip to content
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

FS-495 Avoid flattening lists of parameters #496

Merged
merged 2 commits into from
Jan 10, 2018

Conversation

diesalbla
Copy link
Contributor

Resolves #495.

  • We modify the @free macro, to avoid mixing or flattening separate lists of parameters.

  • We increase test coverage for @free programs these programs. We avoid using should compile in these tests.

Copy link
Contributor

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

object Y extends X.Handler[Id] {
def a: Int = 5
}
//X[X.Op].b.interpret[Id] shouldEqual 10
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this comment useful?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's a typo. It should be a line to run the derived b method with the Y Handler.

We modify the `@free` macro, to ensure that we do not flatten the
lists of parameters.
@diesalbla diesalbla force-pushed the FS-Retain_Parameters_Lists_Shapes branch from 4a1a452 to 9d2e1e3 Compare January 10, 2018 10:20
@diesalbla diesalbla merged commit c53d51e into master Jan 10, 2018
@diesalbla diesalbla deleted the FS-Retain_Parameters_Lists_Shapes branch January 29, 2018 14:47
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