I have problems to compile and write own Semigroup...
# arrow
i
I have problems to compile and write own Semigroup Instances also the @instance annotation does not compile

https://www.youtube.com/watch?v=3y9KI7XWXSY

r
What version of Arrow are you using.
@instance(Target::class)
became
@extension
a few versions ago. Latest release is 0.8.2 and we are currently in 0.9.0 snapshot. 0.9.0 is coming out soon.
i
I am using 0.8.2. So what would be the current representation of this?
This seams to work
Copy code
kotlin
@extension
interface ListKSemigroupInstance<A>:Semigroup<ListK<A>>{
        override fun ListK<A>.combine(b: ListK<A>): ListK<A> =
                (this + b).k()

}
Where do I find more examples how to work with typeclasses ?
Or just search the docs right there for any particular type classes . Most of the important ones are documented or in the process of
i
Thank you 🙂
👍 1
r
Any time !