File tree Expand file tree Collapse file tree 5 files changed +74
-0
lines changed
Expand file tree Collapse file tree 5 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ import Dependencies ._
2+
3+ addCompilerPlugin(" org.scalamacros" % " paradise" % " 2.1.0" cross CrossVersion .full)
4+ addCompilerPlugin(" org.spire-math" %% " kind-projector" % " 0.9.3" )
5+
6+ val simulacrum = Seq (" com.github.mpilquist" %% " simulacrum" % " 0.10.0" )
7+
8+ lazy val root = (project in file(" ." )).
9+ settings(
10+ inThisBuild(List (
11+ organization := " de.sugdus" ,
12+ scalaVersion := " 2.11.8" ,
13+ version := " 0.1.0-SNAPSHOT"
14+ )),
15+ name := " intermediate" ,
16+ libraryDependencies ++= all ++ allTest ++ simulacrum
17+ )
18+
Original file line number Diff line number Diff line change 1+ import sbt ._
2+
3+ object Dependencies {
4+
5+ val monocleVersion = " 1.4.0"
6+ val circeVersion = " 0.7.0"
7+ val catsVersion = " 0.9.0"
8+
9+ val cats = Seq (" org.typelevel" %% " cats" % catsVersion)
10+
11+ val circe = Seq (
12+ " io.circe" %% " circe-core" % circeVersion,
13+ " io.circe" %% " circe-generic" % circeVersion,
14+ " io.circe" %% " circe-parser" % circeVersion
15+ )
16+
17+ val shapeless = Seq (" com.chuusai" %% " shapeless" % " 2.3.2" )
18+
19+ val monocle = Seq (
20+ " com.github.julien-truffaut" %% " monocle-core" % monocleVersion,
21+ " com.github.julien-truffaut" %% " monocle-macro" % monocleVersion,
22+ " com.github.julien-truffaut" %% " monocle-law" % monocleVersion % " test"
23+ )
24+
25+
26+ val all : Seq [ModuleID ] = cats ++ circe ++ shapeless ++ monocle
27+
28+ val specs2 = Seq (" org.specs2" %% " specs2-core" % " 3.8.7" % " test" )
29+ val scalaCheck = Seq (" org.scalacheck" %% " scalacheck" % " 1.13.4" % " test" )
30+
31+ val allTest : Seq [ModuleID ] = specs2 ++ scalaCheck
32+ }
Original file line number Diff line number Diff line change 1+ sbt.version =0.13.13
Original file line number Diff line number Diff line change 1+ package example
2+
3+ object Hello extends Greeting with App {
4+ println(greeting)
5+ }
6+
7+ trait Greeting {
8+
9+ type HelloTypeLambda = Either [? , Double ]
10+
11+ lazy val greeting : String = " hello"
12+ }
Original file line number Diff line number Diff line change 1+ package example
2+
3+ import org .specs2 .mutable .Spec
4+
5+ class HelloSpec extends Spec {
6+ " The Hello object" should {
7+ " say hello" in {
8+ Hello .greeting must be_== (" hello" )
9+ }
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments