@@ -134,13 +134,6 @@ instance Monad Maybe where
134 Nothing >>= k = Nothing
134 Nothing >>= k = Nothing
135 (Just x) >>= k = k x
135 (Just x) >>= k = k x
137−instance MonadPlus Maybe where
140− mplus (Just x) _ = Just x
141− mplus Nothing (Just y) = Just y
142− mplus Nothing Nothing = Nothing
144instance Monad (Either e) where
137instance Monad (Either e) where
145 return = Right
138 return = Right
@@ -151,10 +144,6 @@ instance Monad List where
151 return x = [x]
144 return x = [x]
152 m >>= f = concatMap f m
145 m >>= f = concatMap f m
154−instance MonadPlus List where
158---- some mathematical operations
147---- some mathematical operations
160%include "math.h"
149%include "math.h"