@@ -124,23 +124,17 @@ instance Alternative List where
124124---- Monad instances
125125
126126instance Monad IO where
127− return t = io_return t
128127 b >>= k = io_bind b k
129128
130129instance Monad Maybe where
131− return t = Just t
132−
133130 Nothing >>= k = Nothing
134131 (Just x) >>= k = k x
135132
136133instance Monad (Either e) where
137− return = Right
138−
139134 (Left n) >>= _ = Left n
140135 (Right r) >>= f = f r
141136
142137instance Monad List where
143− return x = [x]
144138 m >>= f = concatMap f m
145139
146140---- some mathematical operations