Last active
August 29, 2015 14:09
-
-
Save j-keck/b4ba3fd8f8a6a20c910a to your computer and use it in GitHub Desktop.
random scala notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* print generated code: scala -Xprint:typer <scala file> | |
* compiler phases: scalac -Xshow-phases | |
* show generated code: scala -Xprint:<phases> (-Xprint:typer or -Xprint:1-14 or -Xprint:all) | |
* show generated code in gui: scala -Ybrowse:<phases> | |
scalac options in sbt [source](http://tpolecat.github.io/2014/04/11/scalac-flags.html): | |
scalacOptions ++= Seq( | |
"-deprecation", | |
"-encoding", "UTF-8", // yes, this is 2 args | |
"-feature", | |
"-language:existentials", | |
"-language:higherKinds", | |
"-language:implicitConversions", | |
"-unchecked", | |
"-Xfatal-warnings", | |
"-Xlint", | |
"-Yno-adapted-args", | |
"-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole | |
"-Ywarn-numeric-widen", | |
"-Ywarn-value-discard", | |
"-Xfuture", | |
"-Ywarn-unused-import" // 2.11 only | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment