Commit 25a3875
committed
Type.Infer: instance MonadTrans Solver: fx MonadPlus code
With the help of `turion` in #851
found that:
```haskell
throwError err = Solver $ lift (modify (err :)) *> mzero == mzero
```
By a MonadPlus law is
```haskell
throwError _err = Solver mzero
```
Which is hardly what the code was about, writer probably wanted to use
Alternative, where the law does not applies.1 parent 4796681 commit 25a3875
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
669 | 670 | | |
670 | 671 | | |
671 | 672 | | |
672 | | - | |
| 673 | + | |
673 | 674 | | |
674 | 675 | | |
675 | 676 | | |
| |||
0 commit comments