Skip to content

handlers and combined effects #133

Answered by anfelor
dcurrie asked this question in Q&A
Discussion options

You must be logged in to vote

I think your type signature for istate-test is wrong:
fun istate-test(): <exn,div,random,istate<int>> string
still has the istate effect. I think if you remove that effect from the type signature you should be fine.
In particular, if you add an effect to the type signature that is not needed in the function, Koka will subsequently assume that the function needed the effect.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dcurrie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants