Propose an implicit val for the default instance for Console[IO] to the user#22
Propose an implicit val for the default instance for Console[IO] to the user#22gvolpe merged 2 commits intoprofunktor:masterfrom
Console[IO] to the user#22Conversation
|
I can't remember exactly why we didn't make that |
|
I thought Console isn't a typeclass and as it's and algebra it'd be better not to have an implicit instance (one can create an IO Console for tests and accidentally not use it). I like the proposed solution with the |
|
I think that was the reason 👍 . I like the idea of |
|
@gvolpe the import will have this form: |
|
@guizmaii why not |
|
That's just for the global namespace thing in think. Or does it not apply to implicit parameters (maybe just conversions)? |
|
Right on, sounds good to me! Will merge if no objections. |
|
Thank you for putting up the work @guizmaii , I just updated the guide -> https://gvolpe.github.io/console4cats/guide.html |
Hi @gvolpe,
While working on the update of
advanced-http4s, I remarked that you don't propose an implicit val for the default instance ofConsole[IO].It's useful when you work with code like this:
WDYT ?