From 03a53e0fc8e403c5def494e1c10b08aab0835fc4 Mon Sep 17 00:00:00 2001 From: Syed Akber Jafri Date: Wed, 9 Oct 2019 10:59:27 -0400 Subject: [PATCH 1/2] Update faq.md repl documentation Took me a bit of time to figure out the current way to enable kind projector --- docs/src/main/tut/faq.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/main/tut/faq.md b/docs/src/main/tut/faq.md index c6959c8901..c834017a3a 100644 --- a/docs/src/main/tut/faq.md +++ b/docs/src/main/tut/faq.md @@ -269,7 +269,8 @@ Of course. [sbt-catalysts](https://github.com/typelevel/sbt-catalysts) is create The easiest way is probably using [Ammonite-REPL](http://ammonite.io/). Install it following the instructions there. Then in the amm console you can type in ```scala interp.configureCompiler(_.settings.YpartialUnification.value = true) -import $ivy.`org.typelevel::cats-core:1.0.1`, cats.implicits._ +import $plugin.$ivy.`org.spire-math::kind-projector:0.9.10` +import $ivy.`org.typelevel::cats-core:2.0.0`, cats.implicits._ ``` Or if you want, you can add these lines to `~/.ammonite/predef.sc` so that they are enabled every ammonite session. From edb43704e35d24416f12405d7ed8feb4ec121e8c Mon Sep 17 00:00:00 2001 From: Syed Akber Jafri Date: Wed, 9 Oct 2019 11:11:23 -0400 Subject: [PATCH 2/2] Update docs/src/main/tut/faq.md Co-Authored-By: Luka Jacobowitz --- docs/src/main/tut/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/tut/faq.md b/docs/src/main/tut/faq.md index c834017a3a..66955516ad 100644 --- a/docs/src/main/tut/faq.md +++ b/docs/src/main/tut/faq.md @@ -269,7 +269,7 @@ Of course. [sbt-catalysts](https://github.com/typelevel/sbt-catalysts) is create The easiest way is probably using [Ammonite-REPL](http://ammonite.io/). Install it following the instructions there. Then in the amm console you can type in ```scala interp.configureCompiler(_.settings.YpartialUnification.value = true) -import $plugin.$ivy.`org.spire-math::kind-projector:0.9.10` +import $plugin.$ivy.`org.typelevel::kind-projector:0.11.0` import $ivy.`org.typelevel::cats-core:2.0.0`, cats.implicits._ ``` Or if you want, you can add these lines to `~/.ammonite/predef.sc` so that they are enabled every ammonite session.