forked from tpolecat/atto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
67 lines (48 loc) · 1.61 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name := "atto"
organization := "org.tpolecat"
description := "functional parser combinators for scala"
version := "0.2"
scalaVersion := "2.10.3"
// crossScalaVersions := Seq("2.10.1", "2.10.2", "2.10.3")
// Bintray
seq(bintrayPublishSettings:_*)
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
resolvers ++= Seq(
"snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
"releases" at "http://oss.sonatype.org/content/repositories/releases"
)
// Main
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.0.2",
"org.spire-math" %% "spire" % "0.6.0"
)
// Test
libraryDependencies ++= Seq(
"org.scalacheck" %% "scalacheck" % "1.10.1" % "test",
"org.specs2" %% "specs2" % "1.12.3" % "test"
)
// Let's add a linter
// resolvers += "linter" at "http://hairyfotr.github.io/linteRepo/releases"
// addCompilerPlugin("com.foursquare.lint" %% "linter" % "0.1-SNAPSHOT")
// And WartRemover (!)
// resolvers += Resolver.sonatypeRepo("releases")
// addCompilerPlugin("org.brianmckenna" % "wartremover" % "0.4" cross CrossVersion.full)
// scalacOptions in (Compile, compile) += "-P:wartremover:traverser:org.brianmckenna.wartremover.warts.Unsafe"
// And turn warnings all the way up
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-Ywarn-all", // doesn't actually turn them all on :-\
"-Yno-adapted-args",
"-Ywarn-value-discard",
"-Ywarn-numeric-widen",
"-Ywarn-dead-code", // confused by ???, sadly
"-Xlint",
"-Xfatal-warnings",
"-unchecked"
)
initialCommands :=
"""import scalaz._
import Scalaz._
import atto._
import Atto._"""