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
import sbt.Keys.* | |
import sbt.* | |
import scala.collection.compat.* | |
/** | |
* This plugin prints which source files are compiled and why | |
* */ | |
object ZincAnalysis extends AutoPlugin { |
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
assertFailed:8, Scala3RunTime$ (scala.runtime) | |
classSymbol:1277, ClassfileParser$innerClasses$ (dotty.tools.dotc.core.classfile) | |
classNameToSymbol:320, ClassfileParser (dotty.tools.dotc.core.classfile) | |
getClassSymbol:1365, ClassfileParser (dotty.tools.dotc.core.classfile) | |
getClassSymbol:1326, ClassfileParser$ConstantPool (dotty.tools.dotc.core.classfile) | |
getSuperClass:176, ClassfileParser$AbstractConstantPool (dotty.tools.dotc.core.classfile) | |
parseParents$1:380, ClassfileParser (dotty.tools.dotc.core.classfile) | |
parseClass:395, ClassfileParser (dotty.tools.dotc.core.classfile) | |
$anonfun$1:302, ClassfileParser (dotty.tools.dotc.core.classfile) | |
apply:-1, ClassfileParser$$Lambda/0x0000022457055760 (dotty.tools.dotc.core.classfile) |
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
import io.bullet.borer._ | |
object BorerAnyKey { | |
trait MapKeyCodec[K] { | |
def keyToString(k: K): String | |
def keyFromString(s: String): K | |
} | |
implicit object MapKeyCodecString extends MapKeyCodec[String] { | |
override def keyToString(k: String): String = k |
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
object HashTest extends App { | |
import scala.collection.generic.CanBuildFrom | |
import scala.collection.immutable.HashMap | |
type HM = HashMap[Int, String] | |
def updated(map: HM, key: Int, value: String) = { | |
map.updated(key, value) | |
} | |
def builder(m: HM, key: Int, value: String)(implicit cbf: CanBuildFrom[HM, (Int, String), HM]) = { |
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
package test | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import com.fasterxml.jackson.module.scala.DefaultScalaModule | |
object Main extends App { | |
val mapper = new ObjectMapper() | |
mapper.registerModule(DefaultScalaModule) |