Skip to content

Commit 9e1c4a0

Browse files
committed
Merge pull request #9 from purescript-contrib/no-alt
Remove Alt instances for Either
2 parents dc5efdd + cb1466a commit 9e1c4a0

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

docs/Module.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@
6868

6969
### Type Class Instances
7070

71-
instance errorEitherAlt :: (Error e) => Alt (Either e)
72-
73-
instance errorEitherAlternative :: (Error e) => Alternative (Either e)
74-
75-
instance errorEitherPlus :: (Error e) => Plus (Either e)
76-
7771
instance errorString :: Error String
7872

7973

src/Control/Monad/Error.purs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
module Control.Monad.Error where
22

3-
import Control.Alt
4-
import Control.Alternative
5-
import Control.Plus
6-
import Data.Either
7-
83
class Error a where
94
noMsg :: a
105
strMsg :: String -> a
@@ -13,11 +8,3 @@ instance errorString :: Error String where
138
noMsg = ""
149
strMsg = id
1510

16-
instance errorEitherAlt :: (Error e) => Alt (Either e) where
17-
(<|>) (Left _) n = n
18-
(<|>) m _ = m
19-
20-
instance errorEitherPlus :: (Error e) => Plus (Either e) where
21-
empty = Left noMsg
22-
23-
instance errorEitherAlternative :: (Error e) => Alternative (Either e)

0 commit comments

Comments
 (0)