Skip to content

Free with more than 2 algebra #914

Open
@julien-truffaut

Description

@julien-truffaut

I am trying to define a Free monad similar to http://typelevel.org/cats/tut/freemonad.html using 3 instead of 2 algebras. However, I am having issues to get Inject automatically derived. Here is the best solution I could come up with but I would like to get rid of the implicit inject3a, inject3b and inject3c

https://gist.github.com/julien-truffaut/78cc00b9ff5d4bb234e3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions