Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Add Console#mapK#9

Merged
gvolpe merged 4 commits intoprofunktor:masterfrom
kubukoz:add-mapk
Nov 14, 2018
Merged

Add Console#mapK#9
gvolpe merged 4 commits intoprofunktor:masterfrom
kubukoz:add-mapk

Conversation

@kubukoz
Copy link
Copy Markdown
Member

@kubukoz kubukoz commented Nov 13, 2018

Initial version, if it looks nice I'll add some tests :)

@gvolpe
Copy link
Copy Markdown
Member

gvolpe commented Nov 13, 2018

Go for the tests, looks great, thanks!

@kubukoz
Copy link
Copy Markdown
Member Author

kubukoz commented Nov 13, 2018

Please take a look in a spare while :)

@kubukoz
Copy link
Copy Markdown
Member Author

kubukoz commented Nov 13, 2018

Also note that this is binary breaking for <2.12, which I'm not sure you're concerned about below 1.0

@gvolpe
Copy link
Copy Markdown
Member

gvolpe commented Nov 13, 2018

Thanks, will look into details tomorrow, gotta leave now (actually on small holidays :) )

@kubukoz
Copy link
Copy Markdown
Member Author

kubukoz commented Nov 13, 2018

Sure, have fun!

override def putError[A: Show](a: A): F[Unit] =
out3.update(acc => acc ::: a.show :: Nil)
override def readLn: IO[String] = IO.pure("test")
override def readLn: F[String] = Applicative[F].pure("test")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: since we are already import all the syntax I'd rather do "test".pure[F] :)

Copy link
Copy Markdown
Member

@gvolpe gvolpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a minor nitpick comment, the rest looks great, thanks!

@gvolpe gvolpe merged commit 210f541 into profunktor:master Nov 14, 2018
@kubukoz kubukoz deleted the add-mapk branch November 14, 2018 00:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants