Skip to content

Conversation

@treeowl
Copy link

@treeowl treeowl commented Jul 11, 2021

This seems to work a bit better for things like FT.

@treeowl
Copy link
Author

treeowl commented Jul 11, 2021

This isn't strictly backwards compatible because MonadFree f m now requires that either:

  1. f is a Functor, or
  2. f does not need to be a Functor to implement liftF.

These hold for all the implementations in the package. I don't know if they fail somewhere else.

This seems to work a bit better for things like `FT`.
@treeowl
Copy link
Author

treeowl commented Jul 11, 2021

Hmm... That's a bit weird... the instance for Control.Monad.Free.Free actually didn't previously need a Functor f constraint, but it had one anyway.

@treeowl
Copy link
Author

treeowl commented Jul 16, 2021

Another option is to use a different name for the method, to preserve performance characteristics.

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

Successfully merging this pull request may close these issues.

1 participant