Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit c0d9389

Browse files
committed
Updated for 2.12.3.
1 parent f6d9279 commit c0d9389

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed

README.md

+26-27
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ which indicates the Typelevel feature level beyond the baseline compiler. We are
4545
Typelevel features across the Scala compiler versions we support.
4646

4747
The current Typelevel feature level is 4 and it is avaliable as a drop in replacement for Lightbend Scala 2.11.11 and
48-
2.12.2. Full release notes are available,
48+
2.12.3. Full release notes are available,
4949

50-
+ Typelevel Scala 4 [2.12.2/2.11.11](https://github.com/typelevel/scala/blob/typelevel-readme/notes/typelevel-4.md).
50+
+ Typelevel Scala 4 [2.12.3/2.11.11](https://github.com/typelevel/scala/blob/typelevel-readme/notes/typelevel-4.md).
5151

52-
Support for Scala 2.13.0-M1 will be added in due course. Support for Scala 2.10.6 will be considered if sponsors step
52+
Support for Scala 2.13.0-M2 will be added in due course. Support for Scala 2.10.6 will be considered if sponsors step
5353
forward to support the necessary work.
5454

5555
## Should I use Typelevel Scala? In production?
@@ -78,42 +78,41 @@ relevant to practitioners.
7878

7979
## Try Typelevel Scala with an Ammonite instant REPL
8080

81-
The quickest way to get to a Typelevel Scala 2.12.2 REPL path is to run the provided
81+
The quickest way to get to a Typelevel Scala 2.12.3 REPL path is to run the provided
8282
["try Typelevel Scala"][try-tls] script, which has no dependencies other than an installed JDK. This script
8383
downloads and installs [coursier][coursier] and uses it to fetch the [Ammonite][ammonite] REPL and Typelevel Scala
84-
2.12.2. It then drops you immediately into a REPL session,
84+
2.12.3. It then drops you immediately into a REPL session,
8585

8686
```text
8787
% curl -s https://raw.githubusercontent.com/typelevel/scala/typelevel-readme/try-typelevel-scala.sh | bash
8888
Loading...
89-
Compiling replBridge.sc
90-
Compiling interpBridge.sc
91-
Compiling HardcodedPredef.sc
92-
Compiling ArgsPredef.sc
93-
Compiling predef.sc
94-
Compiling SharedPredef.sc
95-
Compiling LoadedPredef.sc
96-
Welcome to the Ammonite Repl 0.8.4
97-
(Scala 2.12.2-bin-typelevel-4 Java 1.8.0_131)
89+
Compiling (synthetic)/ammonite/predef/interpBridge.sc
90+
Compiling (synthetic)/ammonite/predef/replBridge.sc
91+
Compiling (synthetic)/ammonite/predef/DefaultPredef.sc
92+
Welcome to the Ammonite Repl 1.0.1
93+
(Scala 2.12.3-bin-typelevel-4 Java 1.8.0_144)
9894
If you like Ammonite, please support our development at www.patreon.com/lihaoyi
99-
@
10095
@ repl.compiler.settings.YliteralTypes.value = true
10196
97+
10298
@ trait Cond[T] { type V ; val value: V }
10399
defined trait Cond
104-
@
100+
105101
@ implicit val condTrue = new Cond[true] { type V = String ; val value = "foo" }
106-
condTrue: AnyRef with Cond[true]{type V = String} = $sess.cmd2$$anon$1@4fef2259
102+
condTrue: AnyRef with Cond[true]{type V = String} = ammonite.$sess.cmd2$$anon$1@696a6506
103+
107104
@ implicit val condFalse = new Cond[false] { type V = Int ; val value = 23 }
108-
condFalse: AnyRef with Cond[false]{type V = Int} = $sess.cmd3$$anon$1@463887f6
109-
@
105+
condFalse: AnyRef with Cond[false]{type V = Int} = ammonite.$sess.cmd3$$anon$1@461e9b31
106+
110107
@ def cond[T](implicit cond: Cond[T]): cond.V = cond.value
111108
defined function cond
112-
@
109+
113110
@ cond[true] : String
114111
res5: String = "foo"
112+
115113
@ cond[false] : Int
116114
res6: Int = 23
115+
117116
@ Bye!
118117
%
119118
```
@@ -126,7 +125,7 @@ res6: Int = 23
126125

127126
Requirements for using Typelevel Scala in your existing projects,
128127

129-
+ You must be using Lightbend Scala 2.12.2 or 2.11.11.
128+
+ You must be using Lightbend Scala 2.12.3 or 2.11.11.
130129
+ You must be using SBT 0.13.13 or later.
131130
+ Your build should use `scalaOrganization.value` and `CrossVersion.patch` appropriately.
132131

@@ -138,15 +137,15 @@ Requirements for using Typelevel Scala in your existing projects,
138137
```
139138
inThisBuild(Seq(
140139
organization := "com.chuusai",
141-
scalaVersion := "2.12.2",
142-
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.2", "2.13.0-M1")
140+
scalaVersion := "2.12.3",
141+
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.3", "2.13.0-M1")
143142
))
144143
```
145144

146145
You can now temporarily build with Typelevel Scala by entering,
147146

148147
```
149-
> ; set every scalaOrganization := "org.typelevel" ; ++2.12.2-bin-typelevel-4
148+
> ; set every scalaOrganization := "org.typelevel" ; ++2.12.3-bin-typelevel-4
150149
```
151150

152151
on the SBT REPL.
@@ -156,7 +155,7 @@ To switch your project permanently to Typelevel Scala 4 update your `build.sbt`
156155
```
157156
inThisBuild(Seq(
158157
scalaOrganization := "org.typelevel"
159-
scalaVersion := "2.12.2-bin-typelevel-4"
158+
scalaVersion := "2.12.3-bin-typelevel-4"
160159
))
161160
```
162161

@@ -180,7 +179,7 @@ of the Lightbend one. You can verify that the settings have been updated correct
180179
> show scalaOrganization
181180
[info] org.typelevel
182181
> show scalaVersion
183-
[info] 2.12.2-bin-typelevel-4
182+
[info] 2.12.3-bin-typelevel-4
184183
```
185184

186185
[build-tweaks-1]: https://github.com/typelevel/scala/issues/135
@@ -197,7 +196,7 @@ If you are using maven with the `scala-maven-plugin`, set the `<scalaOrganizatio
197196
<version>3.2.1</version>
198197
<configuration>
199198
<scalaOrganization>org.typelevel</scalaOrganization>
200-
<scalaVersion>2.12.2-bin-typelevel-4</scalaOrganization>
199+
<scalaVersion>2.12.3-bin-typelevel-4</scalaOrganization>
201200
</configuration>
202201
</plugin>
203202
```

try-typelevel-scala.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/sh
2-
COURSIER_URL=https://raw.githubusercontent.com/alexarchambault/coursier/v1.0.0-RC2/coursier
2+
COURSIER_URL=https://git.io/vgvpD
33
test -e ~/.coursier/coursier || \
4-
(mkdir -p ~/.coursier && curl -s --output ~/.coursier/coursier $COURSIER_URL && chmod +x ~/.coursier/coursier)
4+
(mkdir -p ~/.coursier && curl -L -s --output ~/.coursier/coursier $COURSIER_URL && chmod +x ~/.coursier/coursier)
55
~/.coursier/coursier launch -q -P \
6-
com.lihaoyi:ammonite_2.12.2:0.8.4 \
6+
com.lihaoyi:ammonite_2.12.3:1.0.1 \
77
-E org.scala-lang:scala-library \
88
-E org.scala-lang:scala-compiler \
99
-E org.scala-lang:scala-reflect \
10-
org.typelevel:scala-compiler:2.12.2-bin-typelevel-4 \
11-
org.typelevel:scala-library:2.12.2-bin-typelevel-4 \
12-
org.typelevel:scala-reflect:2.12.2-bin-typelevel-4 \
10+
org.typelevel:scala-compiler:2.12.3-bin-typelevel-4 \
11+
org.typelevel:scala-library:2.12.3-bin-typelevel-4 \
12+
org.typelevel:scala-reflect:2.12.3-bin-typelevel-4 \
1313
-- < /dev/tty

0 commit comments

Comments
 (0)