blaze-html-0.8.1.1/0000755000000000000000000000000012602206321012076 5ustar0000000000000000blaze-html-0.8.1.1/blaze-html.cabal0000644000000000000000000000504512602206321015125 0ustar0000000000000000Name: blaze-html Version: 0.8.1.1 Homepage: http://jaspervdj.be/blaze Bug-Reports: http://github.com/jaspervdj/blaze-html/issues License: BSD3 License-file: LICENSE Author: Jasper Van der Jeugt, Simon Meier Maintainer: Jasper Van der Jeugt Stability: Experimental Category: Text Synopsis: A blazingly fast HTML combinator library for Haskell Description: A blazingly fast HTML combinator library for the Haskell programming language. The Text.Blaze module is a good starting point, as well as this tutorial: . Build-type: Simple Cabal-version: >= 1.8 Extra-source-files: CHANGELOG src/Util/Sanitize.hs src/Util/GenerateHtmlCombinators.hs Library Hs-source-dirs: src Ghc-Options: -Wall Exposed-modules: Text.Blaze.Html Text.Blaze.Html.Renderer.Pretty Text.Blaze.Html.Renderer.String Text.Blaze.Html.Renderer.Text Text.Blaze.Html.Renderer.Utf8 Text.Blaze.Html4.FrameSet Text.Blaze.Html4.FrameSet.Attributes Text.Blaze.Html4.Strict Text.Blaze.Html4.Strict.Attributes Text.Blaze.Html4.Transitional Text.Blaze.Html4.Transitional.Attributes Text.Blaze.Html5 Text.Blaze.Html5.Attributes Text.Blaze.XHtml1.FrameSet Text.Blaze.XHtml1.FrameSet.Attributes Text.Blaze.XHtml1.Strict Text.Blaze.XHtml1.Strict.Attributes Text.Blaze.XHtml1.Transitional Text.Blaze.XHtml1.Transitional.Attributes Text.Blaze.XHtml5 Text.Blaze.XHtml5.Attributes Build-depends: base >= 4 && < 5, blaze-builder >= 0.3 && < 0.5, blaze-markup >= 0.7 && < 0.8, bytestring >= 0.9 && < 0.11, text >= 0.10 && < 1.3 Test-suite blaze-html-tests Type: exitcode-stdio-1.0 Hs-source-dirs: src tests Main-is: TestSuite.hs Ghc-options: -Wall Other-modules: Text.Blaze.Html.Tests Text.Blaze.Html.Tests.Util Util.Tests Build-depends: HUnit >= 1.2 && < 1.4, QuickCheck >= 2.4 && < 2.9, containers >= 0.3 && < 0.6, test-framework >= 0.4 && < 0.9, test-framework-hunit >= 0.3 && < 0.4, test-framework-quickcheck2 >= 0.3 && < 0.4, -- Copied from regular dependencies... base >= 4 && < 5, blaze-builder >= 0.3 && < 0.5, blaze-markup >= 0.7 && < 0.8, bytestring >= 0.9 && < 0.11, text >= 0.10 && < 1.3 Source-repository head Type: git Location: http://github.com/jaspervdj/blaze-html.git blaze-html-0.8.1.1/CHANGELOG0000644000000000000000000000120212602206321013303 0ustar0000000000000000- 0.8.1.1 * Bump HUnit dependency to 1.3 - 0.8.1.0 * Add `
` element to HTML5 - 0.8.0.2 * Relax blaze-builder dependency to include 0.3 again - 0.8.0.1 * Bump QuickCheck dependency to 2.8 - 0.8.0.0 * Bump blaze-builder dependency to 0.4 - 0.7.1.0 * Add `itemscope` and `itemprop` attributes * Constraint `blaze-markup` dependency - 0.7.0.3 * Dependency bump to allow `text-1.2` - 0.7.0.2 * Bump QuickCheck dependency to 2.7 - 0.7.0.1 * Fix incorrect blaze-markup dependency in tests - 0.7.0.0 * Bump blaze-markup so we get the (!?) operator for conditionally setting attributes blaze-html-0.8.1.1/LICENSE0000644000000000000000000000277512602206321013116 0ustar0000000000000000Copyright Jasper Van der Jeugt 2010 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Jasper Van der Jeugt nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. blaze-html-0.8.1.1/Setup.hs0000644000000000000000000000005612602206321013533 0ustar0000000000000000import Distribution.Simple main = defaultMain blaze-html-0.8.1.1/src/0000755000000000000000000000000012602206321012665 5ustar0000000000000000blaze-html-0.8.1.1/src/Text/0000755000000000000000000000000012602206321013611 5ustar0000000000000000blaze-html-0.8.1.1/src/Text/Blaze/0000755000000000000000000000000012602206321014646 5ustar0000000000000000blaze-html-0.8.1.1/src/Text/Blaze/Html.hs0000644000000000000000000000043112602206321016104 0ustar0000000000000000module Text.Blaze.Html ( module Text.Blaze , Html , toHtml , preEscapedToHtml ) where import Text.Blaze type Html = Markup toHtml :: ToMarkup a => a -> Html toHtml = toMarkup preEscapedToHtml :: ToMarkup a => a -> Html preEscapedToHtml = preEscapedToMarkup blaze-html-0.8.1.1/src/Text/Blaze/Html5.hs0000644000000000000000000012417512602206321016205 0ustar0000000000000000-- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:69 -- {-# LANGUAGE OverloadedStrings #-} -- | This module exports HTML combinators used to create documents. -- module Text.Blaze.Html5 ( module Text.Blaze.Html , docType , docTypeHtml , a , abbr , address , area , article , aside , audio , b , base , bdo , blockquote , body , br , button , canvas , caption , cite , code , col , colgroup , command , datalist , dd , del , details , dfn , div , dl , dt , em , embed , fieldset , figcaption , figure , footer , form , h1 , h2 , h3 , h4 , h5 , h6 , head , header , hgroup , hr , html , i , iframe , img , input , ins , kbd , keygen , label , legend , li , link , main , map , mark , menu , menuitem , meta , meter , nav , noscript , object , ol , optgroup , option , output , p , param , pre , progress , q , rp , rt , ruby , samp , script , section , select , small , source , span , strong , style , sub , summary , sup , table , tbody , td , textarea , tfoot , th , thead , time , title , tr , track , ul , var , video , wbr ) where -- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:77 -- import Prelude ((>>), (.)) import Text.Blaze import Text.Blaze.Internal import Text.Blaze.Html -- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:156 -- -- | Combinator for the document type. This should be placed at the top -- of every HTML page. -- -- Example: -- -- > docType -- -- Result: -- -- > -- docType :: Html -- ^ The document type HTML. docType = preEscapedText "\n" {-# INLINE docType #-} -- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:177 -- -- | Combinator for the @\@ element. This combinator will also -- insert the correct doctype. -- -- Example: -- -- > docTypeHtml $ span $ toHtml "foo" -- -- Result: -- -- > -- > foo -- docTypeHtml :: Html -- ^ Inner HTML. -> Html -- ^ Resulting HTML. docTypeHtml inner = docType >> html inner {-# INLINE docTypeHtml #-} -- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:199 -- -- | Combinator for the @\@ element. -- -- Example: -- -- > a $ span $ toHtml "foo" -- -- Result: -- -- > foo -- a :: Html -- ^ Inner HTML. -> Html -- ^ Resulting HTML. a = Parent "a" "" {-# INLINE a #-} -- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:199 -- -- | Combinator for the @\@ element. -- -- Example: -- -- > abbr $ span $ toHtml "foo" -- -- Result: -- -- > foo -- abbr :: Html -- ^ Inner HTML. -> Html -- ^ Resulting HTML. abbr = Parent "abbr" "" {-# INLINE abbr #-} -- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:199 -- -- | Combinator for the @\
@ element. -- -- Example: -- -- > address $ span $ toHtml "foo" -- -- Result: -- -- >
foo
-- address :: Html -- ^ Inner HTML. -> Html -- ^ Resulting HTML. address = Parent "address" "" {-# INLINE address #-} -- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:226 -- -- | Combinator for the @\@ element. -- -- Example: -- -- > area -- -- Result: -- -- > -- area :: Html -- ^ Resulting HTML. area = Leaf "area" "" {-# INLINE area #-} -- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:199 -- -- | Combinator for the @\
@ element. -- -- Example: -- -- > article $ span $ toHtml "foo" -- -- Result: -- -- >
foo
-- article :: Html -- ^ Inner HTML. -> Html -- ^ Resulting HTML. article = Parent "article" "" {-# INLINE article #-} -- WARNING: The next block of code was automatically generated by -- src/Util/GenerateHtmlCombinators.hs:199 -- -- | Combinator for the @\