@@ -109,6 +109,19 @@ instance Applicative List where
110 fs <$> vs = concatMap (\f => map f vs) fs
110 fs <$> vs = concatMap (\f => map f vs) fs
112+---- Alternative instances
114+instance Alternative Maybe where
117+ (Just x) <|> _ = Just x
120+instance Alternative List where
112---- Monad instances
125---- Monad instances
114instance Monad IO where
127instance Monad IO where