-
Notifications
You must be signed in to change notification settings - Fork 451
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
Bring kategory-annotations
to the kategory
repo
#259
Conversation
… of instances bugs
kategory-annotations
to the kategory
repokategory-annotations
to the kategory
repo
Codecov Report
@@ Coverage Diff @@
## master #259 +/- ##
=========================================
Coverage ? 41.74%
Complexity ? 259
=========================================
Files ? 136
Lines ? 3145
Branches ? 410
=========================================
Hits ? 1313
Misses ? 1706
Partials ? 126
Continue to review full report at Codecov.
|
@@ -8,29 +8,7 @@ import io.kotlintest.specs.StringSpec | |||
* Base class for unit tests | |||
*/ | |||
abstract class UnitSpec : StringSpec() { | |||
companion object { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ho ho ho hoooo
kategory-annotations
to the kategory
repokategory-annotations
to the kategory
repo
@@ -78,7 +80,7 @@ formatting: | |||
active: true | |||
autoCorrect: true | |||
OptionalUnit: | |||
active: true | |||
active: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we'd need the opposite option: flagging places where Unit isn't there. For us explicitness is key and we've been bitten by returns that should be Unit instead before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, If detekt rules can be user created we can also provide some to encourage a more functional style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dancing in the greenlight, everybody's daaancing in the grreeeeennnnliiight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my limited perception looks good to me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job
@@ -59,17 +59,17 @@ data class ListKW<out A> constructor(val list: List<A>) : ListKWKind<A>, List<A> | |||
return ListKW(buf) | |||
} | |||
|
|||
fun functor(): ListKWHKMonadInstance = ListKW.monad() | |||
fun functor(): ListKWMonadInstance = ListKW.monad() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why haven't you deleted these methods like in Id
or NonEmptyList
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I though I did, but will look over before merging
* Makes DelimContScope#reset suspend * Add suspending tests to TestSuite * Move result to promise as well. Fixes suspension in shift before immediate return * Update MultiShotCont with new impl * Entry point api functions * ktLintFormat * Fix `suspended` in `FxLaws` doesn't actually suspend * Re-add eager versions, fix `RestrictSuspension` in `nullable` and add suspend version * Test that shows flow comprehension hanging * Adds Stream test that also hangs * Remove multi-shot test demos * Effect interface and computation builder * Rename Effect to computations * Disable ktlint in effect file * Correct suspension requires ControlThrowable * Upgrade ktlint to allow fun interfaces * Fix support for nested scopes, add tests for not leaking Arrow Fx & KotlinX Coroutines * Removes NestedDelimContScope, makes Multishot private until we have a compiler plugin solution for ordered binds. Prepares DelimitedScope to be implemented by all and SuspendingComputation to replace DelimContScope if it's possible to implement its shift on it * unfinished progress to share with Simon * Add docs, revert some changes for RestrictSuspension implementation. Keep shiftCPS internally * progress toward encoding effects with suspend an restricted delimited scopes * tests passing * remove runRestrictedSuspension * Fix ktlintMainSourceSetCheck issues * Fix ktlintTestSourceSetCheck issues * Fix ktlint issues for arrow-core-data * Adapted Fx laws, test failing with suspension * ktlint * fix for Fx laws * Remove BindSyntax leftover for nullable * Remove old destructuring syntax for bind from Either doc * Raquel suggestion Co-authored-by: Rachel M. Carmena <rachelcarmena@users.noreply.github.com> * Deprecate `validated` block in favor of `either` block. * Deprecate Validated fx * Either.toValidated/Nel + fix to Validated docs * ktlint fixes Co-authored-by: Simon Vergauwen <vergauwen.simon@gmail.com> Co-authored-by: Rachel M. Carmena <rachelcarmena@users.noreply.github.com> Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
Also fixes a bunch of instances issues and provides some
implicit
objects where instances can be looked up without the need to manually register anything.kategory-annotations
migrations@deriving
datatypes (will be addresed in Add all possible implicit objects to manual instances #260)