Replies: 2 comments 8 replies
-
I think the type system works well and it is not limitation of the type inference engine. There are no handlers to handle In Koka, |
Beta Was this translation helpful? Give feedback.
-
Daan explains the issue with polymorphic effect handlers quite well in this post: #241 (comment) |
Beta Was this translation helpful? Give feedback.
-
I'm unable to get this to compile, because test uses both
monoid<int>
andmonoid<string>
, and is trying to unify them.Is this a current limitation of koka/the type inferencer, or is there a way around this?
I assumed that with row types for effects, I could annotate test with
<monoid<int>,semigroup<int>,console,monoid<string>,semigroup<string>> int
but this does not seem to work.
Any insights would be most appreciated!
The error given is this:
Beta Was this translation helpful? Give feedback.
All reactions