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
-- same as eitherMatch but Left must be string which will be used for erroreitherMatch'::forallb. Match (EitherStringb) ->Matchb
eitherMatch' (Match r2eab) = Match $ \r ->ValidationSemiRing.unV ValidationSemiRing.invalid runEither $ (r2eab r)
where
runEither (Tuple rs eit) =
case eit ofLeft err ->ValidationSemiRing.invalid $ free $ Fail err
Right res -> pure $ Tuple rs res
it can be used to reconstruct current eitherMatch like this:
I find this to be useful:
it can be used to reconstruct current
eitherMatch
like this:what you think of adding
eitherMatch'
or even changingeitherMatch
to beeitherMatch'
The text was updated successfully, but these errors were encountered: