Skip to content

Conversation

@ncreep
Copy link

@ncreep ncreep commented Jun 9, 2016

No description provided.

@cvogt
Copy link
Contributor

cvogt commented Jun 9, 2016

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?

@ncreep
Copy link
Author

ncreep commented Jun 9, 2016

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 ncreep closed this Jun 9, 2016
@cvogt
Copy link
Contributor

cvogt commented Jun 14, 2016

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 cvogt reopened this Jun 14, 2016
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

Successfully merging this pull request may close these issues.

2 participants