@@ -36,7 +36,7 @@ newtype YamlParser a = YamlParser
3636instance Functor YamlParser where
3737 fmap = liftM
3838instance Applicative YamlParser where
39− pure = return
39+ pure = YamlParser . const . Right
4040 (<*>) = ap
4141instance Alternative YamlParser where
4242 empty = fail "empty"
@@ -45,7 +45,7 @@ instance Monoid (YamlParser a) where
4545 mempty = fail "mempty"
4646 mappend = mplus
4747instance Monad YamlParser where
48− return = YamlParser . const . Right
48+ return = pure
4949 YamlParser f >>= g = YamlParser $ \am ->
5050 case f am of
5151 Left t -> Left t