simon.vergauwen
11/08/2019, 2:50 PMclass ForResult private constructor() { companion object }
typealias ResultOf<A> = arrow.Kind<ForResult, A>
@Suppress("UNCHECKED_CAST", "NOTHING_TO_INLINE")
inline fun <A> ResultOf<A>.fix(): Result<A> = this as Result<A>
kioba
11/08/2019, 3:49 PMsealed class Result
because Functor extention was generated on that object nad not for ForResult.Companion
🤔
but other than that it works just like a charm! thanks for the advice!