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

Fix compiler plugin instruction in README #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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