html-minimalist 0.14 → 0.15
raw patch · 5 files changed
+26/−11 lines, 5 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Text.HTML.Light.Attribute: accept :: String -> Attr
+ Text.HTML.Light.Attribute: charset :: String -> Attr
+ Text.HTML.Light.Element: em :: Element_C
+ Text.HTML.Light.Element: tbody :: Element_C
+ Text.HTML.Light.Element: tfoot :: Element_C
Files
- README +1/−1
- Text/HTML/Light.hs +1/−1
- Text/HTML/Light/Attribute.hs +10/−4
- Text/HTML/Light/Element.hs +10/−1
- html-minimalist.cabal +4/−4
README view
@@ -12,7 +12,7 @@ [hs-xml]: http://hackage.haskell.org/package/xml [html5]: http://www.w3.org/html5 -© [rohan drape][rd], 2006-2013, [gpl]+© [rohan drape][rd], 2006-2014, [gpl] [rd]: http://rd.slavepianos.org/ [gpl]: http://gnu.org/copyleft/
Text/HTML/Light.hs view
@@ -3,7 +3,7 @@ ,renderXHTML ,renderHTML5,renderHTML5_pp,showHTML5) where -import Text.XML.Light+import Text.XML.Light {- xml -} import Text.HTML.Light.Attribute as L import Text.HTML.Light.Constant as L import Text.HTML.Light.Element as L
Text/HTML/Light/Attribute.hs view
@@ -1,7 +1,7 @@--- | 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--- element name the attribute name is written likewise.+-- | HTML 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+-- element name the attribute name is written likewise. module Text.HTML.Light.Attribute where import Text.XML.Light@@ -13,6 +13,9 @@ mk_bool_attr :: String -> Attr mk_bool_attr a = Attr (unqual a) a +accept :: String -> Attr+accept = mk_attr "accept"+ action :: String -> Attr action = mk_attr "action" @@ -27,6 +30,9 @@ border :: String -> Attr border = mk_attr "border"++charset :: String -> Attr+charset = mk_attr "charset" -- | Prime suffixed since /class/ is a reserved word. class' :: String -> Attr
Text/HTML/Light/Element.hs view
@@ -2,7 +2,7 @@ -- Content data type, with the exception of the 'html' element. module Text.HTML.Light.Element where -import Text.XML.Light+import Text.XML.Light {- xml -} -- * Content constructors @@ -67,6 +67,9 @@ div :: Element_C div = mk_element "div" +em :: Element_C+em = mk_element "em"+ embed :: Empty_Element_C embed = mk_empty_element "embed" @@ -187,11 +190,17 @@ table :: Element_C table = mk_element "table" +tbody :: Element_C+tbody = mk_element "tbody"+ td :: Element_C td = mk_element "td" textarea :: Element_C textarea = mk_element "textarea"++tfoot :: Element_C+tfoot = mk_element "tfoot" th :: Element_C th = mk_element "th"
html-minimalist.cabal view
@@ -1,5 +1,5 @@ Name: html-minimalist-Version: 0.14+Version: 0.15 Synopsis: Minimalist haskell html library Description: Text.HTML.Light is a very simple Haskell module for writing [x]html documents. It provides@@ -7,12 +7,12 @@ in terms of Text.XML.Light. License: GPL Category: Text-Copyright: (c) Rohan Drape, 2006-2013+Copyright: (c) Rohan Drape, 2006-2014 Author: Rohan Drape Maintainer: rd@slavepianos.org Stability: Experimental-Homepage: http://rd.slavepianos.org/?t=html-minimalist-Tested-With: GHC == 7.6.1+Homepage: http://rd.slavepianos.org/t/html-minimalist+Tested-With: GHC == 7.8.2 Build-Type: Simple Cabal-Version: >= 1.8