raulraja
05/21/2018, 12:13 PMextension
is with class
and fun
. When your extensions are defined in terms of class
or fun
the compiler would need to create a new instance before surrounding the block:raulraja
05/21/2018, 12:16 PMinterface Monoid<A>
extension class OptionMonoid<A>(with Monoid<A>) : Monoid<Option<A>>
fun doWithOptionMonoid(with Monoid<Option<A>>) = TODO()
The compiler would need to desugar this as:
fun doWithOptionMonoid($ev: Monoid<Option<A>> = new OptionMonoid(AMonoid)) = with ($ev) { TODO() }
raulraja
05/21/2018, 12:17 PMwith
to declare dependencies in other type classes.jacob
05/21/2018, 1:07 PMjacob
05/23/2018, 11:48 PMraulraja
05/24/2018, 9:27 AMraulraja
05/29/2018, 10:40 AMAedan Smith
05/29/2018, 6:53 PMAedan Smith
05/29/2018, 6:54 PMgradle runAnk
it fails by compiling the entire README.md (not just the script fragments)Aedan Smith
05/29/2018, 6:55 PMAedan Smith
05/29/2018, 6:55 PMraulraja
05/29/2018, 8:55 PMraulraja
05/29/2018, 8:56 PMraulraja
05/29/2018, 8:56 PMAedan Smith
05/30/2018, 12:45 AMkotlinc
on the README.md not on the code snippetspakoito
05/30/2018, 1:18 AMpakoito
05/30/2018, 1:18 AMpakoito
05/30/2018, 1:18 AMAedan Smith
05/30/2018, 3:32 AMAedan Smith
05/30/2018, 3:32 AMpakoito
05/30/2018, 10:09 AMpakoito
05/30/2018, 10:14 AMAedan Smith
05/30/2018, 7:22 PMAedan Smith
05/30/2018, 7:23 PMpakoito
05/30/2018, 8:07 PMAedan Smith
05/31/2018, 1:10 AMAedan Smith
05/31/2018, 7:51 AMAedan Smith
05/31/2018, 7:51 AMAedan Smith
05/31/2018, 8:41 AM@higherkind
) with Ank?