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
A (simple) usecase could be to check if the item is valid, and if not fail with the (list) of errors.
So something as:
validateFail :: MonadFail m => a -> m a
validateFail = either fail pure . prettyValidate
A simple use case for this would be m ~ Q for example: a QuasiQuoter where we want to raise a compile error if the quasi quoted value has some invalid properties.
The text was updated successfully, but these errors were encountered:
A (simple) usecase could be to check if the item is valid, and if not fail with the (list) of errors.
So something as:
A simple use case for this would be
m ~ Q
for example: aQuasiQuoter
where we want to raise a compile error if the quasi quoted value has some invalid properties.The text was updated successfully, but these errors were encountered: