Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defeffect functions return a different type than the one handle/1 expects #11

Open
rosacris opened this issue May 18, 2017 · 0 comments

Comments

@rosacris
Copy link

Hi,

I've been trying to experiment with the library but I'm stuck with an issue that it can be easily spotted in the documentation:

# Create the computation. 
computation = MessageApp.greet "Fred" 
# Perform the computation. 
MessageInterpreter.Console.handle(computation)

The typespec of computation is MessageEffect.t, however the typespec of MessageInterpreter.Console.handle/1 is MessageEffect.Say.e

When I try to run a minimal example it fails exactly for this reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant