diff --git a/yesod-form/Yesod/Form/Types.hs b/yesod-form/Yesod/Form/Types.hs index f5a75008..a5800efb 100644 --- a/yesod-form/Yesod/Form/Types.hs +++ b/yesod-form/Yesod/Form/Types.hs @@ -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' diff --git a/yesod-form/yesod-form.cabal b/yesod-form/yesod-form.cabal index 8665c89f..98fc12c9 100644 --- a/yesod-form/yesod-form.cabal +++ b/yesod-form/yesod-form.cabal @@ -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