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

Allow users to pass in case class objects containing variable mappings #67

Open
vlthr opened this issue Aug 28, 2017 · 0 comments
Open

Comments

@vlthr
Copy link
Owner

vlthr commented Aug 28, 2017

Levee currently accepts a Map[String, Any] containing variable bindings, where the values in the map are converted to Value objects using Value.create to provide the Map[String, Value] that Levee uses internally. This works, but relies on ugly casts and can be hard to use.

This could be improved by instead taking case class objects providing the mappings, and automatically generating the Map[String, Value] using an LabelledGeneric[T] in Shapeless.

Reliability could also be improved by using Typeable instead of raw type casts in Value.create.

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

No branches or pull requests

1 participant