Skip to content
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

Tutorial missing something #204

Closed
cbrunnkvist opened this issue Aug 5, 2019 · 1 comment
Closed

Tutorial missing something #204

cbrunnkvist opened this issue Aug 5, 2019 · 1 comment

Comments

@cbrunnkvist
Copy link

cbrunnkvist commented Aug 5, 2019

(pasting tutorial code into Scala 2.12.7 SBT console)

scala> :paste 
// Entering paste mode (ctrl-D to finish)

def fetchThree[F[_] : Concurrent]: Fetch[F, (String, String, String)] =
  (fetchString(1), fetchString(2), fetchString(3)).tupled

// Exiting paste mode, now interpreting.

<pastie>:43: error: value tupled is not a member of (fetch.Fetch[F,String], fetch.Fetch[F,String], fetch.Fetch[F,String])
  (fetchString(1), fetchString(2), fetchString(3)).tupled

Not sure how this is supposed to work. Is it related to the ordering of things? The first paragraph defining the Trait seems to be out of place too.

@paulpdaniels
Copy link
Contributor

Perhaps missing the import. The tuple syntax comes from cats.syntax.apply._

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants