Format: 1.8 Date: Tue, 30 Apr 2013 18:49:02 -0700 Source: haskell-formlets Binary: libghc-formlets-dev libghc-formlets-prof libghc-formlets-doc Architecture: source all amd64 Version: 0.8-1~hackage1+seereason2~bpo60+1 Distribution: squeeze-seereason Urgency: low Maintainer: Doug Beardsley Changed-By: SeeReason Autobuilder Description: libghc-formlets-dev - Formlets implemented in Haskell libghc-formlets-doc - Formlets implemented in Haskell libghc-formlets-prof - Formlets implemented in Haskell Changes: haskell-formlets (0.8-1~hackage1+seereason2~bpo60+1) squeeze-seereason; urgency=low . * Debianization generated by cabal-debian * Built from hackage, revision: Debianize (Patch (Hackage "formlets") "diff -ru formlets-0.8.orig/formlets.cabal formlets-0.8/formlets.cabal\n--- old/formlets.cabal\t2010-12-21 19:08:34.000000000 -0800\n+++ new/formlets.cabal\t2012-05-21 17:32:06.863265531 -0700\n@@ -21,12 +21,12 @@\n Description: Choose the even newer, even smaller, split-up base package.\n \n Library\n- Build-Depends: haskell98, \n- xhtml, \n+ Build-Depends: xhtml, \n applicative-extras >= 0.1.7, \n bytestring,\n- blaze-html >= 0.2,\n- transformers == 0.2.2.0\n+ blaze-html >= 0.5,\n+ blaze-markup,\n+ transformers >= 0.2.2.0\n if flag(base4)\n Build-Depends: base >= 4 && < 5, syb\n else\ndiff -ru formlets-0.8.orig/Text/Blaze/Html5/Formlets.hs formlets-0.8/Text/Blaze/Html5/Formlets.hs\n--- old/Text/Blaze/Html5/Formlets.hs\t2010-12-21 19:08:34.000000000 -0800\n+++ new/Text/Blaze/Html5/Formlets.hs\t2012-05-21 17:30:10.513955542 -0700\n@@ -35,34 +35,34 @@\n --\n input :: Monad m => Html5Formlet m String\n input = input' $ \\n v -> H.input ! A.type_ \"text\"\n- ! A.name (H.stringValue n)\n- ! A.id (H.stringValue n)\n- ! A.value (H.stringValue v)\n+ ! A.name (H.toValue n)\n+ ! A.id (H.toValue n)\n+ ! A.value (H.toValue v)\n \n -- | A textarea with optional rows and columns, and an optional value\n --\n textarea :: Monad m => Maybe Int -> Maybe Int -> Html5Formlet m String\n-textarea r c = input' $ \\n v -> (applyAttrs n H.textarea) (H.string v)\n+textarea r c = input' $ \\n v -> (applyAttrs n H.textarea) (H.toHtml v)\n where\n- applyAttrs n = (! A.name (H.stringValue n)) . rows r . cols c\n- rows = maybe id $ \\x -> (! A.rows (H.stringValue $ show x))\n- cols = maybe id $ \\x -> (! A.cols (H.stringValue $ show x))\n+ applyAttrs n = (! A.name (H.toValue n)) . rows r . cols c\n+ rows = maybe id $ \\x -> (! A.rows (H.toValue $ show x))\n+ cols = maybe id $ \\x -> (! A.cols (H.toValue $ show x))\n \n -- | A password field with an optional value\n --\n password :: Monad m => Html5Formlet m String\n password = input' $ \\n v -> H.input ! A.type_ \"password\"\n- ! A.name (H.stringValue n)\n- ! A.id (H.stringValue n)\n- ! A.value (H.stringValue v)\n+ ! A.name (H.toValue n)\n+ ! A.id (H.toValue n)\n+ ! A.value (H.toValue v)\n \n -- | A hidden input field\n --\n hidden :: Monad m => Html5Formlet m String\n hidden = input' $ \\n v -> H.input ! A.type_ \"hidden\"\n- ! A.name (H.stringValue n)\n- ! A.id (H.stringValue n)\n- ! A.value (H.stringValue v)\n+ ! A.name (H.toValue n)\n+ ! A.id (H.toValue n)\n+ ! A.value (H.toValue v)\n \n -- | A validated integer component\n --\n@@ -73,8 +73,8 @@\n --\n file :: Monad m => Html5Form m File\n file = inputFile $ \\n -> H.input ! A.type_ \"file\"\n- ! A.name (H.stringValue n)\n- ! A.id (H.stringValue n)\n+ ! A.name (H.toValue n)\n+ ! A.id (H.toValue n)\n \n -- | A checkbox with an optional default value\n --\n@@ -84,13 +84,13 @@\n asBool (Just _) = Success True\n asBool Nothing = Success False\n html (Just True) n = H.input ! A.type_ \"checkbox\" \n- ! A.name (H.stringValue n)\n- ! A.id (H.stringValue n)\n+ ! A.name (H.toValue n)\n+ ! A.id (H.toValue n)\n ! A.value \"on\"\n ! A.checked \"checked\"\n html _ n = H.input ! A.type_ \"checkbox\"\n- ! A.name (H.stringValue n)\n- ! A.id (H.stringValue n)\n+ ! A.name (H.toValue n)\n+ ! A.id (H.toValue n)\n ! A.value \"on\"\n \n -- | A radio choice\n@@ -102,19 +102,19 @@\n where\n makeRadio name selected ((value, label'), idx) = do\n applyAttrs (radio' name value id')\n- H.label ! A.for (H.stringValue id')\n+ H.label ! A.for (H.toValue id')\n ! A.class_ \"radio\"\n- $ H.string label'\n+ $ H.toHtml label'\n where\n applyAttrs | selected == value = (! A.checked \"checked\")\n | otherwise = id\n id' = name ++ \"_\" ++ show idx\n \n radio' n v i = H.input ! A.type_ \"radio\"\n- ! A.name (H.stringValue n)\n- ! A.id (H.stringValue i)\n+ ! A.name (H.toValue n)\n+ ! A.id (H.toValue i)\n ! A.class_ \"radio\"\n- ! A.value (H.stringValue v)\n+ ! A.value (H.toValue v)\n \n -- | An radio choice for Enums\n --\n@@ -129,7 +129,7 @@\n -- | A label\n --\n label :: Monad m => String -> Form H.Html m ()\n-label = xml . H.label . H.string\n+label = xml . H.label . H.toHtml\n \n -- | This is a helper function to generate select boxes\n --\n@@ -138,11 +138,11 @@\n -> String -- ^ The value that is selected\n -> H.Html\n selectHtml choices name selected =\n- H.select ! A.name (H.stringValue name)\n+ H.select ! A.name (H.toValue name)\n $ mconcat $ map makeChoice choices\n where\n makeChoice (value, label') = applyAttrs $\n- H.option ! A.value (H.stringValue value) $ label'\n+ H.option ! A.value (H.toValue value) $ label'\n where\n applyAttrs | selected == value = (! A.selected \"selected\")\n | otherwise = id\n") Checksums-Sha1: e2d5216c8f8b7ef66775c5d5c2b6b71959c13304 13376 haskell-formlets_0.8-1~hackage1+seereason2~bpo60+1.tar.gz a11178395bff981d0f898a46c060b26db484814a 66480 libghc-formlets-doc_0.8-1~hackage1+seereason2~bpo60+1_all.deb 0d7d0bcc3de8dbeed6f24031a1d174d615fb1266 272948 libghc-formlets-dev_0.8-1~hackage1+seereason2~bpo60+1_amd64.deb b2ec41a4a7c1f097937283dc41ed9244d414cc2b 271738 libghc-formlets-prof_0.8-1~hackage1+seereason2~bpo60+1_amd64.deb efd4284fc6d237baf2343923e68d8ea53d786d13 9963 haskell-formlets_0.8-1~hackage1+seereason2~bpo60+1.dsc Checksums-Sha256: 5cadca360346cf24cecafb8d1c51161d42546f4c0bd6f9adf4b0825c95560125 13376 haskell-formlets_0.8-1~hackage1+seereason2~bpo60+1.tar.gz 93cda23efb3fd3579185de565cf7f4348ef18c84fbfea9e3bc320d7851aa5237 66480 libghc-formlets-doc_0.8-1~hackage1+seereason2~bpo60+1_all.deb 61ace9a6a04768fa90f16c0762a13383292df85eaf04f18db903e34b8d310519 272948 libghc-formlets-dev_0.8-1~hackage1+seereason2~bpo60+1_amd64.deb 3dba781425ae0d4d1dee6212101f67e1f14543ec4c790ca519a872c7f499c983 271738 libghc-formlets-prof_0.8-1~hackage1+seereason2~bpo60+1_amd64.deb 8ff0b15b5e7ef41c1355875586f0c46991d3beaa32cab11ca1d1b23f8db061da 9963 haskell-formlets_0.8-1~hackage1+seereason2~bpo60+1.dsc Build-Info: Autobuilder-Version: 6.54 Time: 27.169336s Memory: 8057256 kB CPU: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz CPU count: 4 OS Architecture: x86_64 CPU MHz: 1200.000 CPU cache: 3072 KB Host: t420s Files: bf9b294dac9ee9561e58a888700445ac 13376 haskell optional haskell-formlets_0.8-1~hackage1+seereason2~bpo60+1.tar.gz 53653320f7ae233c60a6a040684c1339 66480 doc optional libghc-formlets-doc_0.8-1~hackage1+seereason2~bpo60+1_all.deb 046caf087f21e4a78e2b991d721a1ba4 272948 haskell optional libghc-formlets-dev_0.8-1~hackage1+seereason2~bpo60+1_amd64.deb 9cea1387e00b71e9bcacbd76ad12a1c6 271738 haskell optional libghc-formlets-prof_0.8-1~hackage1+seereason2~bpo60+1_amd64.deb 1ea7ffd6d58bfa88cac9331cf5fbd646 9963 haskell optional haskell-formlets_0.8-1~hackage1+seereason2~bpo60+1.dsc