Skip to content

Instantly share code, notes, and snippets.

View edmundnoble's full-sized avatar
👋
Hi! My name is

Edmund Noble edmundnoble

👋
Hi! My name is
  • Toronto, Canada
View GitHub Profile
object TypeSafeBuilder {
type F
type T
case class Cat(name: String, age: Int)
object CatBuilder {
def apply() = new CatBuilder[F, F](None, None)
implicit class BuildableCatBuilder(cb: CatBuilder[T, T]) {
def build(): Cat = cb.hiddenBuild()