Skip to content

Commit b9204ba

Browse files
committed
README.md: reordering
1 parent 55c2954 commit b9204ba

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,20 @@ If compiling this example project fails, you probably have a global sbt plugin
1111
that does not work with dotty, try to disable all plugins in
1212
`~/.sbt/0.13/plugins` and `~/.sbt/0.13`.
1313

14+
### IDE support
15+
16+
Dotty comes built-in with IDE support, to try it out see
17+
http://dotty.epfl.ch/docs/usage/ide-support.html
18+
1419
## Making a new Dotty project
1520
The fastest way to start a new Dotty project is to use one of the following templates:
1621
* [Simple Dotty project](https://github.com/lampepfl/dotty.g8)
1722
* [Dotty project that cross-compiles with Scala 2](https://github.com/lampepfl/dotty-cross.g8)
1823

1924
## Using Dotty in an existing project
2025

26+
You will need to make the following adjustments to your build:
27+
2128
### project/plugins.sbt
2229
```scala
2330
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.1.4")
@@ -39,14 +46,18 @@ the `sbt-dotty` plugin, you don't need to set up anything:
3946
scalaVersion := "0.2.0-RC1"
4047
```
4148

42-
New builds of dotty are published nightly, look at the bottom of
43-
https://repo1.maven.org/maven2/ch/epfl/lamp/dotty_0.3/ to find the latest version
44-
number. Alternatively, you can set `scalaVersion := dottyLatestNightlyBuild.get`
45-
to always use the latest nightly build of dotty.
49+
#### Nightly builds
50+
If the latest release of Dotty is missing a bugfix or feature you need, you may
51+
wish to use a nightly build. Look at the bottom of
52+
https://repo1.maven.org/maven2/ch/epfl/lamp/dotty_0.3/ to find the version
53+
number for the latest nightly build. Alternatively, you can set `scalaVersion :=
54+
dottyLatestNightlyBuild.get` to always use the latest nightly build of dotty.
4655

47-
If you want to migrate an existing library, it might be a good idea to start out
48-
with the compatibility mode (note that this mode affects typechecking and thus
49-
may prevent some valid Dotty code from compiling) by adding to `build.sbt`:
56+
## Getting your project to compile with Dotty
57+
58+
When porting an existing project, it's a good idea to start out with the Scala 2
59+
compatibility mode (note that this mode affects typechecking and thus may
60+
prevent some valid Dotty code from compiling) by adding to your `build.sbt`:
5061

5162
```scala
5263
scalacOptions ++= { if (isDotty.value) Seq("-language:Scala2") else Nil }
@@ -78,11 +89,6 @@ works because Dotty is currently retro-compatible with Scala 2.x.
7889
**NOTE**: Dotty's retro-compatibility with Scala 2.x will be dropped before
7990
Dotty is released, you should not rely on it.
8091

81-
## IDE support
82-
83-
Dotty comes built-in with IDE support, to try it out see
84-
http://dotty.epfl.ch/docs/usage/ide-support.html
85-
8692
## Discuss
8793

8894
Feel free to come chat with us on the

0 commit comments

Comments
 (0)