diff icon indicating copy to clipboard operation
diff copied to clipboard

Fix compiler plugin instruction in README

Open ncreep opened this issue 9 years ago • 3 comments

ncreep avatar Jun 09 '16 08:06 ncreep

Shapeless mentions this as the instructions for 2.10:

scalaVersion := "2.10.6"

libraryDependencies ++= Seq(
  "com.chuusai" %% "shapeless" % "2.3.1",
  compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
)

I obviously was a bit briefer. Does the addCompilerPlugin work as well? Are they equivalent?

cvogt avatar Jun 09 '16 10:06 cvogt

Oh, my bad. I wasn't aware of this syntax and couldn't get it to work. addCompilerPlugin works differently, you just put it in the file anywhere and it works (without adding to libraryDependencies).

ncreep avatar Jun 09 '16 13:06 ncreep

Other people may have the same misunderstanding. And I actually hadn't heard of compilerPlugin before I looked at the shapeless docs myself. Will re-open and probably adjust docs.

cvogt avatar Jun 14 '16 14:06 cvogt