Skip to content

Instantly share code, notes, and snippets.

View danielkarch's full-sized avatar

Daniel Karch danielkarch

View GitHub Profile
@danielkarch
danielkarch / GenericGrafter.scala
Last active October 12, 2017 08:54
wiring an "application" with generic components
package grafterexample
import cats.data.Reader
import org.zalando.grafter.GenericReader.widenReader
case class Config()
object Application extends App {
val x: Wants[Int] = Wants.reader[Config, Int].apply(Config())
println(x.get)