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

added ammonite instructions to faq #2153

Merged
merged 2 commits into from
Jan 12, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/src/main/tut/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ position: 40
* [How can I test instances against their type classes' laws?](#law-testing)
* [How can I help?](#contributing)
* [Is there a sbt plugin that facilitate projects based on the Cats ecosystem libraries?](#sbt-catalysts)
* [How to try cats in a REPL?](#ammonite)

## <a id="what-imports" href="#what-imports"></a>What imports do I need?

Expand Down Expand Up @@ -258,3 +259,13 @@ See the [contributing guide]({{ site.baseurl }}/contributing.html) for more info

Of course. [sbt-catalysts](https://github.com/typelevel/sbt-catalysts) is created particularly for this purpose. It also provides a g8 template so that you can run `sbt new typelevel/sbt-catalysts.g8` to quickly set up a project using Cats ecosystem libraries through this plugin. For more details, go to [sbt-catalysts](https://github.com/typelevel/sbt-catalysts).

## <a id="ammonite" href="#ammonite"></a>How to try Cats in a REPL?

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:1.0.1`, cats.implicits._
Copy link
Collaborator

Choose a reason for hiding this comment

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

cats isn't published anymore.
cats-core? or cats-free maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, blindly copied from an old issue..

```
Or if you want, you can add these lines to `~/.ammonite/predef.sc` so that they are enabled every ammonite session.