simulacrum icon indicating copy to clipboard operation
simulacrum copied to clipboard

Generate Ops for operations where instance type is in a function.

Open sellout opened this issue 8 years ago • 0 comments

It would be great if a definition like

@typeclass Foo[A] {
  def foo(i: Int): A => String
}

generated an Ops member like

def foo(i: Int): String = typeclassInstance.foo(i)(self)

sellout avatar Mar 01 '17 16:03 sellout