【发布时间】:2015-03-28 05:09:28
【问题描述】:
鉴于以下 SBT 文件:
$cat shapeless_sandbox/build.sbt
name := "shapeless sandbox"
scalaVersion := "2.11.5"
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.1.0-RC1"
)
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
// Fork JVM when `run`-ing SBT
// http://stackoverflow.com/a/5265162/409976
fork in run := true
还有 SBT 版本:
$cat shapeless_sandbox/project/build.properties
sbt.version=0.13.7
运行sbt、update,然后运行console,我无法运行Feature Overview 中的示例。
scala> import poly._
<console>:7: error: not found: value poly
import poly._
^
我错过了什么?
【问题讨论】: