-
Notifications
You must be signed in to change notification settings - Fork 75
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
Streamlined the getting started #126
Conversation
Codecov Report
@@ Coverage Diff @@
## master #126 +/- ##
=======================================
Coverage 88.44% 88.44%
=======================================
Files 38 38
Lines 528 528
Branches 2 2
=======================================
Hits 467 467
Misses 61 61 Continue to review full report at Codecov.
|
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.
Looks great! I've added a minor change suggestion though
docs/src/main/tut/docs.md
Outdated
|
||
```tut:silent | ||
val user1 = Github(accessToken).users.get("rafaparadela") | ||
``` | ||
|
||
user1 in this case `Free[GHException Xor GHResult[User], User]` and we can run (`foldMap`) with `exec[M[_], C]` where `M[_]` represent any type container that implements `MonadError[M, Throwable]`, for instance `cats.Eval`; and C represents a valid implementation of an HttpClient. The previously mentioned implicit classes carry already set up instances for working with `scalaj` (for JVM-compatible apps) and `roshttp` (for scala-js-compatible apps). Take into account that in the latter case, you can only use `Future` in the place of `M[_]`: | ||
`user1` in this case `Free[GHException Xor GHResult[User], User]` which we can run (`foldMap`) with |
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.
- `user1` in this case `Free[GHException Xor GHResult[User], User]` which we
+ `user1` in this case `Free[GitHub4s, Either[GHException, GHResult[User]]]` which we
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.
Actually, it's a GHIO[GHResponse[User]]
, if we consider type aliases:
type GHIO[A] = Free[GitHub4s, A]
type GHResponse[A] = Either[GHException, GHResult[A]]
@juanpedromoreno Thanks for your review, I think I've clarified things in 84b7246 👍 |
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.
LGTM
Please, rebase your branch before the merge, thanks!
84b7246
to
8142610
Compare
@fedefernandez good to go 👍 |
No description provided.