toMaybeT : Functor m => Bool -> m a -> MaybeT m a
toMaybeT b m = MkMaybeT $ map (\a => toMaybe b a) m
always executes its m effect.
If so, this fixes that.
See also
toMaybe : Bool -> Lazy a -> Maybe a
toMaybe True j = Just j
toMaybe False _ = Nothing
Should this change go in the CHANGELOG?
[x] If this is a fix, user-facing change, a compiler change, or a new paper
implementation, I have updated CHANGELOG_NEXT.md (and potentially also
CONTRIBUTORS.md).
Description
I'm not sure about this, but is it a bug that
always executes its
m
effect.If so, this fixes that.
See also
Should this change go in the CHANGELOG?
CHANGELOG_NEXT.md
(and potentially alsoCONTRIBUTORS.md
).