packages feed

formlets 0.4.6 → 0.4.7

raw patch · 2 files changed

+3/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Text.Formlets: withPrefix :: String -> Form xml m a -> Form xml m a

Files

Text/Formlets.hs view
@@ -4,6 +4,7 @@                      , runFormState                       , massInput                      , xml, plug+                     , withPrefix                      , Env , Form , Plus (..)                      , File (..), ContentType (..), FormContentType (..)                      )@@ -172,7 +173,7 @@        nullToMaybe x  = Just x  withPrefix :: String -> Form xml m a -> Form xml m a-withPrefix prefix (Form f) = Form $ \env -> (changePrefix prefix >> f env)+withPrefix prefix (Form f) = Form $ \env -> (modify (const (0, prefix)) >> f env)  ----------------------------------------------- -- Private methods
formlets.cabal view
@@ -1,5 +1,5 @@ Name:            formlets-Version:         0.4.6+Version:         0.4.7 Synopsis:        Formlets implemented in Haskell Description:     A modular way to build forms based on applicative functors, as                  described in: