Skip to content

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

Description

@rosacris

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions