-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Profunctor
instance for StateT
#1067
Comments
I gave it a try and failed, since def diMap[C, D](f: C => S)(g: A => D)(implicit F: Functor[F]): StateT[F, C, D] =
new StateT(F.map(runF)(run => (c:C) => F.map(run(f(c)))(p => ((???) , g(p._2))) )) I need a |
Err, I think I pointed out _Indexed_StateT is one. :-) |
ah, makes sense. since cats doesn't have |
Oops I hadn't thought that through very well :) Sorry for the false alert. Thanks for giving it a try @kailuowang and thanks for your input, @vmarquez. |
@vmarquez pointed out to me that
StateT
forms aProfunctor
The text was updated successfully, but these errors were encountered: