digestive-functors-blaze 0.0.2.1 → 0.0.2.2
raw patch · 2 files changed
+12/−1 lines, 2 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Text.Digestive.Blaze.Html5: inputHidden :: (Monad m, Functor m, FormInput i f) => Maybe String -> Form m i e BlazeFormHtml String
Files
digestive-functors-blaze.cabal view
@@ -1,5 +1,5 @@ Name: digestive-functors-blaze-Version: 0.0.2.1+Version: 0.0.2.2 Synopsis: Snap backend for the digestive-functors library Description: This is a blaze frontend for the digestive-functors library.
src/Text/Digestive/Blaze/Html5.hs view
@@ -2,6 +2,7 @@ module Text.Digestive.Blaze.Html5 ( BlazeFormHtml , inputText+ , inputHidden , inputTextArea , inputTextRead , inputPassword@@ -54,6 +55,16 @@ inputText = Forms.inputString $ \id' inp -> createFormHtml $ \cfg -> applyClasses' [htmlInputClasses] cfg $ H.input ! A.type_ "text"+ ! A.name (H.stringValue $ show id')+ ! A.id (H.stringValue $ show id')+ ! A.value (H.stringValue $ fromMaybe "" inp)++inputHidden :: (Monad m, Functor m, FormInput i f)+ => Maybe String+ -> Form m i e BlazeFormHtml String+inputHidden = Forms.inputString $ \id' inp -> createFormHtml $ \cfg ->+ applyClasses' [htmlInputClasses] cfg $+ H.input ! A.type_ "hidden" ! A.name (H.stringValue $ show id') ! A.id (H.stringValue $ show id') ! A.value (H.stringValue $ fromMaybe "" inp)