Fix pure for AForm #672

This commit is contained in:
Michael Snoyman 2014-02-26 07:54:01 +02:00
parent 58ade2e446
commit 12ddec8b8c
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ instance Monad m => Functor (AForm m) where
where
go (w, x, y, z) = (fmap f w, x, y, z)
instance Monad m => Applicative (AForm m) where
pure x = AForm $ const $ const $ \ints -> return (FormSuccess x, mempty, ints, mempty)
pure x = AForm $ const $ const $ \ints -> return (FormSuccess x, id, ints, mempty)
(AForm f) <*> (AForm g) = AForm $ \mr env ints -> do
(a, b, ints', c) <- f mr env ints
(x, y, ints'', z) <- g mr env ints'

View File

@ -1,5 +1,5 @@
name: yesod-form
version: 1.3.5.1
version: 1.3.5.2
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>