packages feed

reform-hsp 0.1.1 → 0.1.2

raw patch · 2 files changed

+22/−2 lines, 2 files

Files

Text/Reform/HSP/Text.hs view
@@ -27,6 +27,7 @@     , selectMultiple       -- * \<label\> element     , label+    , labelText       -- * errors     , errorList     , childErrorList@@ -183,10 +184,29 @@ -- Use this with <++ or ++> to ensure that the @for@ attribute references the correct @id@. -- -- > label "some input field: " ++> inputText ""+--+-- see also: 'labelText' label :: (Monad m, XMLGenerator x, EmbedAsAttr x (Attr String FormId), EmbedAsChild x c) =>          c       -> Form m input error [XMLGenT x (XMLType x)] () () label = C.label++-- | create a @\<label\>@ element.+--+-- Use this with <++ or ++> to ensure that the @for@ attribute references the correct @id@.+--+-- > labelText "some input field: " ++> inputText ""+--+-- This function is provided as an alternative to 'label' because when+-- the 'OverloadedStrings' extension is enabled, you will get+-- ambiguous type errors when attempting to apply 'label' to a string+-- literal. While the type error can be fixed using an explicit type+-- signature, calling 'labelText' looks nicer.+labelText :: (Monad m, XMLGenerator x, EmbedAsAttr x (Attr String FormId), EmbedAsChild x Text) =>+         Text+      -> Form m input error [XMLGenT x (XMLType x)] () ()+labelText = C.label+  -- | create a @\<ul\>@ which contains all the errors related to the 'Form'. --
reform-hsp.cabal view
@@ -1,5 +1,5 @@ Name:                reform-hsp-Version:             0.1.1+Version:             0.1.2 Synopsis:            Add support for using HSP with Reform Description:         Reform is a library for building and validating forms using applicative functors. This package add support for using reform with HSP. Homepage:            http://www.happstack.com/@@ -15,7 +15,7 @@ source-repository head     type:     darcs     subdir:   reform-hsp-    location: http://patch-tag.com/r/stepcut/reform+    location: http://hub.darcs.net/stepcut/reform  Library   Exposed-modules:     Text.Reform.HSP.Common