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

Adding new unit requires boilerplate #2

Open
ppiotrow opened this issue May 3, 2016 · 0 comments
Open

Adding new unit requires boilerplate #2

ppiotrow opened this issue May 3, 2016 · 0 comments

Comments

@ppiotrow
Copy link
Owner

ppiotrow commented May 3, 2016

To create new unit it is required to provide Units type and an ComplexUnit instance. ComplexUnit is used to instantiate Units instances (see link)

type Speed = Units[Meter :: HNil, Second :: HNil]
object Speed extends ComplexUnit[Meter :: HNil, Second :: HNil]
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