Skip to content

Instantly share code, notes, and snippets.

@SethTisue
Created August 1, 2016 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SethTisue/cb8d06241547ffa82b724bf45a5b6aa0 to your computer and use it in GitHub Desktop.
Save SethTisue/cb8d06241547ffa82b724bf45a5b6aa0 to your computer and use it in GitHub Desktop.
~/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