Created
August 1, 2016 22:03
-
-
Save SethTisue/cb8d06241547ffa82b724bf45a5b6aa0 to your computer and use it in GitHub Desktop.
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
~/tmp/scalaz-fold % sbt | |
[info] Loading global plugins from /Users/tisue/.sbt/0.13/plugins | |
[info] Set current project to scalaz-fold (in build file:/Users/tisue/tmp/scalaz-fold/) | |
> set scalaVersion := "2.11.8" | |
[info] Defining *:scalaVersion | |
[info] The new value will be used by *:Additional arguments for the presentation compiler., *:allDependencies and 24 others. | |
[info] Run `last` for details. | |
[info] Reapplying settings... | |
[info] Set current project to scalaz-fold (in build file:/Users/tisue/tmp/scalaz-fold/) | |
> set libraryDependencies += "org.scalaz" %% "scalaz-core" % "7.2.4" | |
[info] Defining *:libraryDependencies | |
[info] The new value will be used by *:allDependencies, *:dependencyPositions | |
[info] Reapplying settings... | |
[info] Set current project to scalaz-fold (in build file:/Users/tisue/tmp/scalaz-fold/) | |
> console | |
[info] Updating {file:/Users/tisue/tmp/scalaz-fold/}scalaz-fold... | |
[info] Resolving jline#jline;2.12.1 ... | |
[info] downloading https://repo1.maven.org/maven2/org/scalaz/scalaz-core_2.11/7.2.4/scalaz-core_2.11-7.2.4.jar ... | |
[info] [SUCCESSFUL ] org.scalaz#scalaz-core_2.11;7.2.4!scalaz-core_2.11.jar(bundle) (4999ms) | |
[info] Done updating. | |
[info] Starting scala interpreter... | |
[info] | |
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_91). | |
Type in expressions for evaluation. Or try :help. | |
scala> import scalaz._ | |
import scalaz._ | |
scala> import Scalaz._ | |
import Scalaz._ | |
scala> true ? 1 | 2 | |
res0: Int = 1 | |
scala> false ? 1 | 2 | |
res1: Int = 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment