We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When applying foldFree id I got
foldFree id
foldFree id :: Monad m => Free m a -> m a
same type as
retract :: Monad m => Free m a -> m a
and at a quick glance they appear to be equal: if so should that be added as a law? I googled foldFree id and didn't find much.
The text was updated successfully, but these errors were encountered:
Addendum: is there a name or use for
iterM wrap :: (MonadFree f m, Functor f) => Free f a -> m a
Sorry, something went wrong.
As original question, does
hoistFree id :: Functor f => Free f a -> Free f a
equal id and should it be added as a law of hoistFree.
id
hoistFree
Laws should be clarified for methods of a type class; for existing function they don't have to be.
iterM wrap is sometimes useful to transform a free monad to an other free monad. There are already conversion functions though.
iterM wrap
No branches or pull requests
When applying
foldFree id
I gotsame type as
and at a quick glance they appear to be equal: if so should that be added as a law? I googled
foldFree id
and didn't find much.The text was updated successfully, but these errors were encountered: