packages feed

html-minimalist 0.3 → 0.11

raw patch · 5 files changed

+30/−26 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Text.HTML.Light.Element: hr :: [Attr] -> Content

Files

README view
@@ -1,7 +1,7 @@ html-minimalist - minimalist haskell html library -Text.HTML.Light is a very simple Haskell module -for writing [x]html documents.  It provides +Text.HTML.Light is a very simple Haskell module+for writing [x]html documents.  It provides constructors for html elements and attributes in terms of Text.XML.Light. 
Text/HTML/Light.hs view
@@ -1,13 +1,12 @@ -- | Provides xhtml constructors for 'Text.XML.Light'.-module Text.HTML.Light ( module Text.HTML.Light-                       , module Text.HTML.Light.Attribute-                       , module Text.HTML.Light.Constant-                       , module Text.HTML.Light.Element ) where+module Text.HTML.Light (module L+                       ,cdata,cdata_raw+                       ,renderXHTML) where -import Text.XML.Light-import Text.HTML.Light.Attribute-import Text.HTML.Light.Constant-import Text.HTML.Light.Element+import Text.XML.Light as L+import Text.HTML.Light.Attribute as L+import Text.HTML.Light.Constant as L+import Text.HTML.Light.Element as L  -- | Ordinary character data, subject to escaping. cdata :: String -> Content@@ -19,6 +18,6 @@  -- | Render an xhtml element with the given document type. renderXHTML :: DocType -> Element -> String-renderXHTML t e = concat [ xml_1_0-                         , t-                         , showElement e ]+renderXHTML t e = concat [xml_1_0+                         ,t+                         ,showElement e]
Text/HTML/Light/Attribute.hs view
@@ -1,6 +1,6 @@ -- | XHTML attribute constructors.  Where an attribute name conflicts --   with a haskell keyword the attribute name is written with a prime---   suffix, ie. class'.  Where an attribute name conflicts with an+--   suffix, ie. @class'@.  Where an attribute name conflicts with an --   element name the attribute name is written likewise. module Text.HTML.Light.Attribute where @@ -21,7 +21,7 @@ border :: String -> Attr border = Attr (unqual "border") --- | 'class' is a reserved word.+-- | Prime suffixed since /class/ is a reserved word. class' :: String -> Attr class' = Attr (unqual "class") @@ -37,7 +37,7 @@ coords :: String -> Attr coords = Attr (unqual "coords") --- | 'data' is a reserved word.+-- | Prime suffixed since /data/ is a reserved word. data' :: String -> Attr data' = Attr (unqual "data") @@ -80,25 +80,28 @@ shape :: String -> Attr shape = Attr (unqual "shape") --- | 'span' is the name of both an attribute and element.+-- | Prime suffixed since /span/ is the name of both an attribute and+-- element. span' :: String -> Attr span' = Attr (unqual "span")  src :: String -> Attr src = Attr (unqual "src") --- | 'style' is the name of both an attribute and element.+-- | Prime suffixed since /style/ is the name of both an attribute and+-- element. style' :: String -> Attr style' = Attr (unqual "style")  target :: String -> Attr target = Attr (unqual "target") --- | 'title' is the name of both an attribute and element.+-- | Prime suffixed since /title/ is the name of both an attribute and+-- element. title' :: String -> Attr title' = Attr (unqual "title") --- | 'type' is a reserved word.+-- | Prime suffixed since /type/ is a reserved word. type' :: String -> Attr type' = Attr (unqual "type") @@ -119,4 +122,3 @@  xmlns :: String -> Attr xmlns = Attr (unqual "xmlns")-
Text/HTML/Light/Element.hs view
@@ -52,6 +52,9 @@ head :: [Attr] -> [Content] -> Content head z e = Elem (Element (unqual "head") z e Nothing) +hr :: [Attr] -> Content+hr z = Elem (Element (unqual "hr") z [] Nothing)+ html :: [Attr] -> [Content] -> Element html z e = Element (unqual "html") z e Nothing 
html-minimalist.cabal view
@@ -1,8 +1,8 @@ Name:              html-minimalist-Version:           0.3+Version:           0.11 Synopsis:          Minimalist haskell html library-Description:       Text.HTML.Light is a very simple Haskell module -                   for writing [x]html documents.  It provides +Description:       Text.HTML.Light is a very simple Haskell module+                   for writing [x]html documents.  It provides                    constructors for html elements and attributes                    in terms of Text.XML.Light. License:           GPL@@ -12,9 +12,9 @@ Maintainer:        rd@slavepianos.org Stability:         Experimental Homepage:          http://slavepianos.org/rd/?t=html-minimalist-Tested-With:       GHC == 6.12.1+Tested-With:       GHC == 7.2.2 Build-Type:        Simple-Cabal-Version:     >= 1.6+Cabal-Version:     >= 1.8  Data-files:        README