What's the way to match the following code-pattern...
do
x <- createModel a b
case x of
Left e -> throwM $ ValidationErrors e
Right y -> ...
...and suggest the following replacement:
withThrow $ createModel a b
I tried the following, but it doesn't work:
hint: {lhs: "do {x <- createModel v w; case x of Left e -> throwM $ ValidationErrors e}", rhs: "withThrow $ createModel v w"}