That’ll be fixed with Arrow Meta but for now you g...
# arrow
s
That’ll be fixed with Arrow Meta but for now you got to either separate into 2 modules or, add the HKT boilerplate yourself.
Copy code
class 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>
👍 1
k
had to add the `companion object to the
sealed 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!