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

AutoImport of arrow-meta-prelude #772

Closed
i-walker opened this issue Oct 16, 2020 · 1 comment
Closed

AutoImport of arrow-meta-prelude #772

i-walker opened this issue Oct 16, 2020 · 1 comment

Comments

@i-walker
Copy link
Member

i-walker commented Oct 16, 2020

Similar to the std-lib this feature should allow this code to compile:

package test

@Given
val unit: Unit = Unit

regarding the @with proposal it allows this code sample without further imports:

package test

import arrowx.Monoid

fun <A, B>
   @with<Monoid<A>, Monoid<B>>
     Pair<A, B>.combineEmpty(): Pair<A, B> =
         first.combine(empty()) to second.combine(empty())

Ideally, this is implemented in one Extension and not through codegen in Analysis and Synthetic imports in the Ide.

@i-walker i-walker mentioned this issue Oct 16, 2020
13 tasks
i-walker added a commit that referenced this issue Oct 16, 2020
@i-walker
Copy link
Member Author

resolved in this commit

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