-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Added examples of Arrow composition #1952
Conversation
Hey thanks for the contribution! :) You have some style errors, you should fix before we can merge though. You can check them by running |
Thanks |
Thanks for alerting me to that @LukaJCB |
* scala> import cats.implicits._ | ||
* scala> import cats.arrow._ | ||
* scala> val f = (_ + 1) | ||
* scala> val g = (_ * 100) |
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.
the above two lines don't compile
/home/travis/build/typelevel/cats/core/.jvm/target/scala-2.10/src_managed/test/cats/arrow/ComposeDoctest.scala:20: missing parameter type for expanded function
apologize for missing that out.
…On Mon, Oct 9, 2017 at 10:50 PM, Kai(luo) Wang ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In core/src/main/scala/cats/arrow/Compose.scala
<#1952 (comment)>:
> @@ -8,6 +8,20 @@ import simulacrum.typeclass
*/
@typeclass trait Compose[F[_, _]] { self =>
+ /**
+ * Here's how you can use `>>>` and `<<<`
+ * Example:
+ * {{{
+ * scala> import cats.implicits._
+ * scala> import cats.arrow._
+ * scala> val f = (_ + 1)
+ * scala> val g = (_ * 100)
the above two lines don't compile
/home/travis/build/typelevel/cats/core/.jvm/target/scala-2.
10/src_managed/test/cats/arrow/ComposeDoctest.scala:20: missing parameter
type for expanded function
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1952 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAbUwDvV91vJPa3wbo-4_uYw3Dw7mayvks5sqjK_gaJpZM4PxOoX>
.
|
Not at all, @raymondtay thank you very much for contributing to Cats! |
I really enjoyed this library !
…On Mon, Oct 9, 2017 at 11:01 PM, Kai(luo) Wang ***@***.***> wrote:
Not at all, @raymondtay <https://github.com/raymondtay> thank you very
much for contributing to Cats!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1952 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAbUwAfKwTVawXgJPkw2143-aD6ZrS5hks5sqjVWgaJpZM4PxOoX>
.
|
Codecov Report
@@ Coverage Diff @@
## master #1952 +/- ##
=======================================
Coverage 96.14% 96.14%
=======================================
Files 273 273
Lines 4535 4535
Branches 114 114
=======================================
Hits 4360 4360
Misses 175 175
Continue to review full report at Codecov.
|
Thought it might be useful for readers to understand Arrow composition at first glance.