data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGZCAMAAACQbpc2AAADAFBMVEWEBz6FAD6FAD6GAD+MAEGOAEOKAEGOAEOGAD+IAECOAEOOAUOOAEOOAEOOAEOOAEOOAEOOAEOCACyOAEQAAACKAEJpoJ2KADqu0eSKAD2BAD+KAD6AxCNqwoX1Ziawo9LYnGuwhL7aiwaIyYudst6DlrnhcWvCcVvlbE9PvsL2u3uYmdCZum9Rns7clUYsreOYp2nuj37kiZLUfqhvxafqfmrNWEjA22uz1Vu6lsiRAArWhLfgdoONnF36rWrzpz/ajy/LbqR8pdWDVXx8faN6m0+6hE3+1pmHP2mTy1b4k1p/ueFlj7vMfzyBs1v/2GfLpFL5rQD+7teQABj4n0/rpCz6r1Z8apP+4rrfw1iV0JyLUkqQACTDnah5AACtaEt9zcGNhleJbU5lsOFRvE5FuOPS4WLSt7+8ajvXcJpcyNvhztSwUkTGgZz9uDSxRnPZwsnTkqy7jpsPt/AxyvnAeJMAxPnMiqPJYIyzf4/KqrPedaK5bIsQwfTo2t72hUepPWvn6mO8VoXrgbDRaJXle6r75FzZm7S2TnyTNUXv5eiDAA6j0WmKyWv51liRAACjP0OZNVuwa4L+uQAcw/SiNGH57mIxxPKmU3DgpL2sX3rutc3/vh9gu1D3tNEAtvOSKVAmxfagRmbnrcWZJVaTJET2qsv84eyk04PzcEb71OX0u9OUzHD1nsR+1PhtwFUBvfQ5x/RizvdQy/VZzPWaz3b8uST+wFWDABqKAC6m03uGx2X+xGKBxmL2iWDQjb777/Nt0Pf+xmlCyPT+v032hVv+yXD3lGx2wlr99/hJyvX1gFV20vf1e1DCaqr6xdz+wlzJe7T2jmWFACT3i7v+0IP9u0R8xF7Oh7r+zHn/+WLHc7CQGUP3vtePEUT0i7qHADORIUyEAC2BAACf0Hr3j73zhLX7x96RGkrMgbePFEiRDUeOA0
This file contains hidden or 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
| trait Fake | |
| def materialize1[T[_]]: LightTypeTag = macro TypeTagExampleImpl.makeTag[T[Fake]] | |
| def makeTag[T: c.WeakTypeTag]: c.Expr[LightTypeTag] = { | |
| import c._ | |
| val wtt = implicitly[WeakTypeTag[T]] | |
| println(wtt) | |
| ??? | |
| } |
This file contains hidden or 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
| /* | |
| libraryDependencies += "org.ow2.asm" % "asm" % "7.1" | |
| Java 8+ only | |
| file:line extraction will work for lambdas only. For anonymous classes it will point to the class definition | |
| */ | |
| import java.lang.invoke.SerializedLambda | |
| import org.objectweb.asm._ |
This file contains hidden or 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 com.github.pshirshov.izumi.idealingua.runtime.flatjson | |
| import com.github.pshirshov.izumi.functional.IzEither._ | |
| import io.circe._ | |
| import io.circe.literal._ | |
| import scala.annotation.switch | |
| import scala.collection.mutable.ArrayBuffer | |
| import scala.util.control.NonFatal |
This file contains hidden or 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
| https://dl.bintray.com/sbt/sbt-plugin-releases/ | |
| http://repo.typesafe.com/typesafe/ivy-releases/ | |
| http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/ | |
| http://repo.typesafe.com/typesafe/releases/ |
This file contains hidden or 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 scala.languageFeature.higherKinds | |
| import scala.languageFeature.implicitConversions | |
| trait IORunner[IO[+_]] { | |
| def run[T](io: IO[T]): T = ??? | |
| } | |
| trait Context { | |
| type IO[+T] |
This file contains hidden or 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 scalaz.zio.{ExitResult, IO, RTS, Schedule} | |
| import scala.concurrent.duration.{Duration, FiniteDuration} | |
| import scala.language.implicitConversions | |
| import scala.util.{Failure, Success, Try} | |
| trait BifunctorIO[R[+ _, + _]] extends { | |
| type Or[+E, +V] = R[E, V] | |
| type Just[+V] = R[Nothing, V] |
This file contains hidden or 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
| cat > ~/.sbt/1.0/plugins/build.sbt <<EOL | |
| scalaVersion := "2.12.8" | |
| // https://github.com/coursier/coursier | |
| addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.1.0-M8") | |
| //https://github.com/aiyanbo/sbt-dependency-updates | |
| addSbtPlugin("org.jmotor.sbt" % "sbt-dependency-updates" % "1.1.13") | |
| // https://github.com/sbt/sbt-dirty-money |