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

ComonadTraced instance for CofreeT #192

Open
hololeap opened this issue Sep 16, 2019 · 0 comments
Open

ComonadTraced instance for CofreeT #192

hololeap opened this issue Sep 16, 2019 · 0 comments

Comments

@hololeap
Copy link

Is there any reason why there is no ComonadTraced instance for CofreeT? This seems like the obvious implementation, but I'm not sure if it would break the semantics for ComonadTraced:

instance (ComonadTraced m w, Functor f) => ComonadTraced m (CofreeT f w) where
    trace m = (\(a :< _) -> a) . trace m . runCofreeT

I also have similar questions about ComonadEnv and ComonadStore.

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