I feel like I'm missing some idioms here on how to use arrow-kt properly. What we have here is myElem implemented so that any type that has a matching Foldable TypeClass can use this function. Maybe I need less toy examples?
I really don't like having to pass in utility objects just to tell it what kind of Monoid/Foldable I am. It's really showing off how strong Haskell's type system is.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ok, I did the arrow-kt, and at this point it feels like I should just use Haskell.
I feel like I'm missing some idioms here on how to use arrow-kt properly. What we have here is
myElem
implemented so that any type that has a matchingFoldable
TypeClass can use this function. Maybe I need less toy examples?I really don't like having to pass in utility objects just to tell it what kind of Monoid/Foldable I am. It's really showing off how strong Haskell's type system is.