reform-blaze 0.1 → 0.1.1
raw patch · 2 files changed
+9/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Text.Reform.Blaze.Common: setAttr :: (Monad m, Functor m) => Form m input error Html proof a -> Attribute -> Form m input error Html proof a
Files
- Text/Reform/Blaze/Common.hs +7/−0
- reform-blaze.cabal +2/−2
Text/Reform/Blaze/Common.hs view
@@ -324,3 +324,10 @@ where mkHidden (nm, val) = H.input ! type_ "hidden" ! name (toValue nm) ! value (toValue val)++-- | add an attribute to the 'Html' for a form element.+setAttr :: (Monad m, Functor m) =>+ Form m input error Html proof a+ -> H.Attribute+ -> Form m input error Html proof a+setAttr form attr = mapView (\e -> e ! attr) form
reform-blaze.cabal view
@@ -1,5 +1,5 @@ Name: reform-blaze-Version: 0.1+Version: 0.1.1 Synopsis: Add support for using blaze-html with Reform Description: Reform is a library for building and validating forms using applicative functors. This package add support for using reform with blaze-html. Homepage: http://www.happstack.com/@@ -15,7 +15,7 @@ source-repository head type: darcs subdir: reform-blaze- location: http://patch-tag.com/r/stepcut/reform+ location: http://hub.darcs.net/stepcut/reform Library Exposed-modules: Text.Reform.Blaze.Common