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

Import functions in a free trait to use in a module #564

Open
ashkan-leo opened this issue Mar 26, 2019 · 0 comments
Open

Import functions in a free trait to use in a module #564

ashkan-leo opened this issue Mar 26, 2019 · 0 comments

Comments

@ashkan-leo
Copy link

Is there anyway to import the functions defined in a free trait inside a module?
Say my module has this definition: val algorithm: Algorithm where Algorithm is a free monad. I can call the functions like algorithm.sort(x). However, I'd like to import everything defined like import algorithm._ and call functions like sort(x). Is this possible?

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