Updated README for 0.15 release

This commit is contained in:
Michael Pilquist 2019-01-19 12:54:53 -05:00
parent d9c3d095fa
commit b06e386435

View File

@ -143,9 +143,13 @@ Note that the second approach will not include the `map` operation of its grandp
This project supports Scala 2.10, 2.11 2.12, and 2.13.0-M5. The project is based on macro paradise. To use the project, add the following to your build.sbt:
```scala
libraryDependencies += "com.github.mpilquist" %% "simulacrum" % "0.15.0"
// For Scala 2.10-2.12
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
libraryDependencies += "com.github.mpilquist" %% "simulacrum" % "0.14.0"
// For Scala 2.13+
scalacOptions += "-Ymacro-annotations"
```
To use the latest SNAPSHOT version, add the following:
@ -153,9 +157,14 @@ To use the latest SNAPSHOT version, add the following:
```scala
resolvers += "Sonatype Public" at "https://oss.sonatype.org/content/groups/public/"
libraryDependencies += "com.github.mpilquist" %% "simulacrum" % "0.16.0-SNAPSHOT"
// For Scala 2.10-2.12
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
libraryDependencies += "com.github.mpilquist" %% "simulacrum" % "0.15.0-SNAPSHOT"
// For Scala 2.13+
scalacOptions += "-Ymacro-annotations"
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
```
Macro paradise must exist in projects which use `@typeclass`, but code that depends on the generated type classes do not need macro paradise.