scala
scala copied to clipboard
Typelevel Scala, a fork of Scala
Let's consider these statements: ``` Seq(1, 2, 3, 4).map(x => x + x * 2) // (1) Seq(1, 2, 3, 4).reduce((x, y) = x*x + y*y) // (2) ``` Scala...
Here are two bugs that are triggered by -Ykind-polymorphism. Both can be reproduced with SBT 1.0.0 and following options: ```scala scalaOrganization in ThisBuild := "org.typelevel" scalaVersion in ThisBuild := "2.12.3-bin-typelevel-4"...
TLS version: 2.12.2-bin-typelevel-4 ``` java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.util.TimSort.mergeHi(TimSort.java:899) at java.util.TimSort.mergeAt(TimSort.java:516) at java.util.TimSort.mergeForceCollapse(TimSort.java:457) at java.util.TimSort.sort(TimSort.java:254) at java.util.Arrays.sort(Arrays.java:1438) at scala.collection.SeqLike.sorted(SeqLike.scala:646) at scala.collection.SeqLike.sorted$(SeqLike.scala:634) at scala.collection.AbstractSeq.sorted(Seq.scala:41) at scala.collection.SeqLike.sortWith(SeqLike.scala:599) at...
Running `def foo0[F
**Please note: the list of projects below is not complete — add any projects you think might benefit from being built and tested with Typelevel Scala** To use Typelevel Scala...
If I have a Java enum like this: ```java package com.example; public enum MyEnum { FOO, BAR, BAZ, } ``` And I match on it from Scala like this: ```scala...
```scala scalaVersion := "2.12.2-bin-typelevel-4" scalaOrganization := "org.typelevel" ``` ```scala object Test { def foo(a: Stream[Either[Int, String]]): Int = a match { case Right(_) #:: tail => 1 case Left(_) #::...
The combination of `-Yinduction-heuristics` and `updateOptions := updateOptions.value.withCachedResolution(true)` results in an error during `compileIncremental`: ``` MissingRequirementError: class scala.annotation.inductive in compiler mirror not found. ``` Steps to reproduce: * clone https://github.com/tek/tls_test...
2.12.0 has arrived, but lots of people are still stuck on 2.10.x. In principle it would be possible to backport fixes and features from 2.11.x and 2.12.x to Scala 2.10.x...
Again and again, we want to merge pull requests which change the Scala source language. We should evolve precise guidelines for how to handle them and where to draw the...