Replies: 1 comment 3 replies
-
I've updated your code to show the error location a bit better.
This works, but if you change sslice to s in parse you get the div effect. I found the issue, it is in To get it to work without messing with the compiler you can insert the divergent effect (both in the effect type of parser as well as of parse):
|
Beta Was this translation helpful? Give feedback.
-
Hi all!
I'm trying to write a small parser lib which is parametrised over the input type and the error type. Based on the parse effect in std/text/parse I started with
Now, as soon as I replace the
sslice
withs
everywhere, I get an error that that Koka expects the handler to have a<div,parse<s>>
effect:Any hints of what's going on here?
Beta Was this translation helpful? Give feedback.
All reactions