satisfy is a bit akward to use for the same reasons that filter
can sometimes be a bit awkward to use: You often have to repeat the
same check on the result you get from satisfy.
This PR adds a satisfyMaybe wrapper that acts a bit like mapMaybe
and avoids that issue. This also allows us to remove castMsg.
satisfy
is a bit akward to use for the same reasons thatfilter
can sometimes be a bit awkward to use: You often have to repeat the same check on the result you get fromsatisfy
.This PR adds a
satisfyMaybe
wrapper that acts a bit likemapMaybe
and avoids that issue. This also allows us to removecastMsg
.