You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for these rules, I find them really helpful!
I found that the FlatTraverse rule may rewrite code in a way that produces type errors. For example, this traverses a List[String] and produces an IO[List[Option[Int]]], then maps and flattens it to a List[Int]:
Thank you for these rules, I find them really helpful!
I found that the
FlatTraverse
rule may rewrite code in a way that produces type errors. For example, thistraverse
s aList[String]
and produces anIO[List[Option[Int]]]
, thenmap
s andflatten
s it to aList[Int]
:When it's rewritten to
flatTraverse
it triggers a type error sinceflatTraverse
would require the given function to return anIO[List[?]]
.I think fixing this would require changing it to a
SemanticRule
.The text was updated successfully, but these errors were encountered: