formlets 0.4.1 → 0.4.2
raw patch · 2 files changed
+3/−2 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Text.Formlets: runFormState :: (Monad m) => Env -> Form xml m a -> (Collector (m (Failing a)), xml, FormContentType)
+ Text.Formlets: runFormState :: (Monad m) => Env -> String -> Form xml m a -> (Collector (m (Failing a)), xml, FormContentType)
Files
- Text/Formlets.hs +2/−1
- formlets.cabal +1/−1
Text/Formlets.hs view
@@ -82,9 +82,10 @@ -- | Runs the form state runFormState :: Monad m => Env -- ^ A previously filled environment (may be empty)+ -> String -- ^ A prefix for the names -> Form xml m a -- ^ The form -> (Collector (m (Failing a)), xml, FormContentType)-runFormState e (Form f) = evalState (f e) (0, "")+runFormState e prefix (Form f) = evalState (f e) (0, prefix) -- | Add additional validation to an already validated component check :: (Monad m) => Form xml m a -> (a -> Failing b) -> Form xml m b
formlets.cabal view
@@ -1,5 +1,5 @@ Name: formlets-Version: 0.4.1+Version: 0.4.2 Synopsis: Formlets implemented in Haskell Description: A modular way to build forms based on applicative functors, as described in: