diff options
author | Johannes Gerer <oss@johannesgerer.com> | 2016-10-26 02:07:02 +0200 |
---|---|---|
committer | Johannes Gerer <oss@johannesgerer.com> | 2016-10-26 02:07:02 +0200 |
commit | 675085c2e0b0b851378da08b7d73024766107c87 (patch) | |
tree | 5a927de4a9576aef7e6129b96e74aa5c96f9ffb6 /src/Text | |
download | blazeT-675085c2e0b0b851378da08b7d73024766107c87.tar.gz blazeT-675085c2e0b0b851378da08b7d73024766107c87.tar.zst blazeT-675085c2e0b0b851378da08b7d73024766107c87.zip |
Initial
Diffstat (limited to 'src/Text')
23 files changed, 2215 insertions, 0 deletions
diff --git a/src/Text/BlazeT.hs b/src/Text/BlazeT.hs new file mode 100644 index 0000000..27228fa --- /dev/null +++ b/src/Text/BlazeT.hs | |||
@@ -0,0 +1,81 @@ | |||
1 | {-# LANGUAGE UndecidableInstances #-} | ||
2 | {-# LANGUAGE FlexibleInstances #-} | ||
3 | {-# LANGUAGE RankNTypes #-} | ||
4 | module Text.BlazeT | ||
5 | ( | ||
6 | -- * Important types. | ||
7 | Markup | ||
8 | , Tag | ||
9 | , Attribute | ||
10 | , AttributeValue | ||
11 | |||
12 | -- * Creating attributes. | ||
13 | , dataAttribute | ||
14 | , customAttribute | ||
15 | |||
16 | -- * Converting values to Markup. | ||
17 | , ToMarkup (..) | ||
18 | , text | ||
19 | , preEscapedText | ||
20 | , lazyText | ||
21 | , preEscapedLazyText | ||
22 | , string | ||
23 | , preEscapedString | ||
24 | , unsafeByteString | ||
25 | , unsafeLazyByteString | ||
26 | |||
27 | -- * Comments | ||
28 | , textComment | ||
29 | , lazyTextComment | ||
30 | , stringComment | ||
31 | , unsafeByteStringComment | ||
32 | , unsafeLazyByteStringComment | ||
33 | |||
34 | -- * Creating tags. | ||
35 | , textTag | ||
36 | , stringTag | ||
37 | |||
38 | -- * Converting values to attribute values. | ||
39 | , B.ToValue (..) | ||
40 | , textValue | ||
41 | , preEscapedTextValue | ||
42 | , lazyTextValue | ||
43 | , preEscapedLazyTextValue | ||
44 | , stringValue | ||
45 | , preEscapedStringValue | ||
46 | , unsafeByteStringValue | ||
47 | , unsafeLazyByteStringValue | ||
48 | |||
49 | -- * Setting attributes | ||
50 | , (!) | ||
51 | , (!?) | ||
52 | |||
53 | -- * Modifiying Markup trees | ||
54 | , contents | ||
55 | |||
56 | -- * BlazeT new stuff | ||
57 | ,MarkupM | ||
58 | ,Markup2 | ||
59 | ,mapMarkupT | ||
60 | ,MarkupT | ||
61 | ,runMarkup | ||
62 | ,runMarkupT | ||
63 | ,execMarkup | ||
64 | ,execMarkupT | ||
65 | ) where | ||
66 | |||
67 | import qualified Text.Blaze as B | ||
68 | import Text.BlazeT.Internal | ||
69 | |||
70 | class ToMarkup a where | ||
71 | toMarkup :: a -> Markup | ||
72 | preEscapedToMarkup :: a -> Markup | ||
73 | |||
74 | -- test :: (ToMarkup a, Monad m) => a -> MarkupT m () | ||
75 | -- test = toMarkup | ||
76 | |||
77 | instance B.ToMarkup a => ToMarkup a where | ||
78 | toMarkup = wrapMarkup . B.toMarkup | ||
79 | {-# INLINE toMarkup #-} | ||
80 | preEscapedToMarkup = wrapMarkup . B.preEscapedToMarkup | ||
81 | {-# INLINE preEscapedToMarkup #-} | ||
diff --git a/src/Text/BlazeT/Html.hs b/src/Text/BlazeT/Html.hs new file mode 100644 index 0000000..4a21c03 --- /dev/null +++ b/src/Text/BlazeT/Html.hs | |||
@@ -0,0 +1,22 @@ | |||
1 | {-# LANGUAGE RankNTypes #-} | ||
2 | module Text.BlazeT.Html | ||
3 | ( module Text.BlazeT | ||
4 | , Html | ||
5 | , toHtml | ||
6 | , preEscapedToHtml | ||
7 | -- * BlazeT new stuff | ||
8 | ,HtmlM | ||
9 | ,HtmlT | ||
10 | ) where | ||
11 | |||
12 | import Text.BlazeT | ||
13 | |||
14 | type HtmlT = MarkupT | ||
15 | type HtmlM = MarkupM | ||
16 | type Html = Markup | ||
17 | |||
18 | toHtml ::(ToMarkup a) => a -> Html | ||
19 | toHtml = toMarkup | ||
20 | |||
21 | preEscapedToHtml ::(ToMarkup a) => a -> Html | ||
22 | preEscapedToHtml = preEscapedToMarkup | ||
diff --git a/src/Text/BlazeT/Html4/FrameSet.hs b/src/Text/BlazeT/Html4/FrameSet.hs new file mode 100644 index 0000000..5d6ec03 --- /dev/null +++ b/src/Text/BlazeT/Html4/FrameSet.hs | |||
@@ -0,0 +1,198 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module wraps all exports of "Text.Blaze.Html4.FrameSet" using 'wrapMarkup' and 'wrapMarkup'. | ||
6 | -} | ||
7 | module Text.BlazeT.Html4.FrameSet | ||
8 | (module Text.BlazeT.Html4.FrameSet | ||
9 | ,module Text.BlazeT.Html | ||
10 | ) where | ||
11 | import qualified Text.Blaze.Html4.FrameSet | ||
12 | import Text.BlazeT | ||
13 | import Text.BlazeT.Html | ||
14 | import Text.BlazeT.Internal | ||
15 | |||
16 | docTypeHtml :: Markup2 | ||
17 | docTypeHtml = wrapMarkup2 Text.Blaze.Html4.FrameSet.docTypeHtml | ||
18 | a :: Markup2 | ||
19 | a = wrapMarkup2 Text.Blaze.Html4.FrameSet.a | ||
20 | abbr :: Markup2 | ||
21 | abbr = wrapMarkup2 Text.Blaze.Html4.FrameSet.abbr | ||
22 | acronym :: Markup2 | ||
23 | acronym = wrapMarkup2 Text.Blaze.Html4.FrameSet.acronym | ||
24 | address :: Markup2 | ||
25 | address = wrapMarkup2 Text.Blaze.Html4.FrameSet.address | ||
26 | b :: Markup2 | ||
27 | b = wrapMarkup2 Text.Blaze.Html4.FrameSet.b | ||
28 | bdo :: Markup2 | ||
29 | bdo = wrapMarkup2 Text.Blaze.Html4.FrameSet.bdo | ||
30 | big :: Markup2 | ||
31 | big = wrapMarkup2 Text.Blaze.Html4.FrameSet.big | ||
32 | blockquote :: Markup2 | ||
33 | blockquote = wrapMarkup2 Text.Blaze.Html4.FrameSet.blockquote | ||
34 | body :: Markup2 | ||
35 | body = wrapMarkup2 Text.Blaze.Html4.FrameSet.body | ||
36 | button :: Markup2 | ||
37 | button = wrapMarkup2 Text.Blaze.Html4.FrameSet.button | ||
38 | caption :: Markup2 | ||
39 | caption = wrapMarkup2 Text.Blaze.Html4.FrameSet.caption | ||
40 | cite :: Markup2 | ||
41 | cite = wrapMarkup2 Text.Blaze.Html4.FrameSet.cite | ||
42 | code :: Markup2 | ||
43 | code = wrapMarkup2 Text.Blaze.Html4.FrameSet.code | ||
44 | colgroup :: Markup2 | ||
45 | colgroup = wrapMarkup2 Text.Blaze.Html4.FrameSet.colgroup | ||
46 | dd :: Markup2 | ||
47 | dd = wrapMarkup2 Text.Blaze.Html4.FrameSet.dd | ||
48 | del :: Markup2 | ||
49 | del = wrapMarkup2 Text.Blaze.Html4.FrameSet.del | ||
50 | dfn :: Markup2 | ||
51 | dfn = wrapMarkup2 Text.Blaze.Html4.FrameSet.dfn | ||
52 | div :: Markup2 | ||
53 | div = wrapMarkup2 Text.Blaze.Html4.FrameSet.div | ||
54 | dl :: Markup2 | ||
55 | dl = wrapMarkup2 Text.Blaze.Html4.FrameSet.dl | ||
56 | dt :: Markup2 | ||
57 | dt = wrapMarkup2 Text.Blaze.Html4.FrameSet.dt | ||
58 | em :: Markup2 | ||
59 | em = wrapMarkup2 Text.Blaze.Html4.FrameSet.em | ||
60 | fieldset :: Markup2 | ||
61 | fieldset = wrapMarkup2 Text.Blaze.Html4.FrameSet.fieldset | ||
62 | form :: Markup2 | ||
63 | form = wrapMarkup2 Text.Blaze.Html4.FrameSet.form | ||
64 | h1 :: Markup2 | ||
65 | h1 = wrapMarkup2 Text.Blaze.Html4.FrameSet.h1 | ||
66 | h2 :: Markup2 | ||
67 | h2 = wrapMarkup2 Text.Blaze.Html4.FrameSet.h2 | ||
68 | h3 :: Markup2 | ||
69 | h3 = wrapMarkup2 Text.Blaze.Html4.FrameSet.h3 | ||
70 | h4 :: Markup2 | ||
71 | h4 = wrapMarkup2 Text.Blaze.Html4.FrameSet.h4 | ||
72 | h5 :: Markup2 | ||
73 | h5 = wrapMarkup2 Text.Blaze.Html4.FrameSet.h5 | ||
74 | h6 :: Markup2 | ||
75 | h6 = wrapMarkup2 Text.Blaze.Html4.FrameSet.h6 | ||
76 | head :: Markup2 | ||
77 | head = wrapMarkup2 Text.Blaze.Html4.FrameSet.head | ||
78 | html :: Markup2 | ||
79 | html = wrapMarkup2 Text.Blaze.Html4.FrameSet.html | ||
80 | i :: Markup2 | ||
81 | i = wrapMarkup2 Text.Blaze.Html4.FrameSet.i | ||
82 | ins :: Markup2 | ||
83 | ins = wrapMarkup2 Text.Blaze.Html4.FrameSet.ins | ||
84 | kbd :: Markup2 | ||
85 | kbd = wrapMarkup2 Text.Blaze.Html4.FrameSet.kbd | ||
86 | label :: Markup2 | ||
87 | label = wrapMarkup2 Text.Blaze.Html4.FrameSet.label | ||
88 | legend :: Markup2 | ||
89 | legend = wrapMarkup2 Text.Blaze.Html4.FrameSet.legend | ||
90 | li :: Markup2 | ||
91 | li = wrapMarkup2 Text.Blaze.Html4.FrameSet.li | ||
92 | map :: Markup2 | ||
93 | map = wrapMarkup2 Text.Blaze.Html4.FrameSet.map | ||
94 | noscript :: Markup2 | ||
95 | noscript = wrapMarkup2 Text.Blaze.Html4.FrameSet.noscript | ||
96 | object :: Markup2 | ||
97 | object = wrapMarkup2 Text.Blaze.Html4.FrameSet.object | ||
98 | ol :: Markup2 | ||
99 | ol = wrapMarkup2 Text.Blaze.Html4.FrameSet.ol | ||
100 | optgroup :: Markup2 | ||
101 | optgroup = wrapMarkup2 Text.Blaze.Html4.FrameSet.optgroup | ||
102 | option :: Markup2 | ||
103 | option = wrapMarkup2 Text.Blaze.Html4.FrameSet.option | ||
104 | p :: Markup2 | ||
105 | p = wrapMarkup2 Text.Blaze.Html4.FrameSet.p | ||
106 | pre :: Markup2 | ||
107 | pre = wrapMarkup2 Text.Blaze.Html4.FrameSet.pre | ||
108 | q :: Markup2 | ||
109 | q = wrapMarkup2 Text.Blaze.Html4.FrameSet.q | ||
110 | samp :: Markup2 | ||
111 | samp = wrapMarkup2 Text.Blaze.Html4.FrameSet.samp | ||
112 | script :: Markup2 | ||
113 | script = wrapMarkup2 Text.Blaze.Html4.FrameSet.script | ||
114 | select :: Markup2 | ||
115 | select = wrapMarkup2 Text.Blaze.Html4.FrameSet.select | ||
116 | small :: Markup2 | ||
117 | small = wrapMarkup2 Text.Blaze.Html4.FrameSet.small | ||
118 | span :: Markup2 | ||
119 | span = wrapMarkup2 Text.Blaze.Html4.FrameSet.span | ||
120 | strong :: Markup2 | ||
121 | strong = wrapMarkup2 Text.Blaze.Html4.FrameSet.strong | ||
122 | style :: Markup2 | ||
123 | style = wrapMarkup2 Text.Blaze.Html4.FrameSet.style | ||
124 | sub :: Markup2 | ||
125 | sub = wrapMarkup2 Text.Blaze.Html4.FrameSet.sub | ||
126 | sup :: Markup2 | ||
127 | sup = wrapMarkup2 Text.Blaze.Html4.FrameSet.sup | ||
128 | table :: Markup2 | ||
129 | table = wrapMarkup2 Text.Blaze.Html4.FrameSet.table | ||
130 | tbody :: Markup2 | ||
131 | tbody = wrapMarkup2 Text.Blaze.Html4.FrameSet.tbody | ||
132 | td :: Markup2 | ||
133 | td = wrapMarkup2 Text.Blaze.Html4.FrameSet.td | ||
134 | textarea :: Markup2 | ||
135 | textarea = wrapMarkup2 Text.Blaze.Html4.FrameSet.textarea | ||
136 | tfoot :: Markup2 | ||
137 | tfoot = wrapMarkup2 Text.Blaze.Html4.FrameSet.tfoot | ||
138 | th :: Markup2 | ||
139 | th = wrapMarkup2 Text.Blaze.Html4.FrameSet.th | ||
140 | thead :: Markup2 | ||
141 | thead = wrapMarkup2 Text.Blaze.Html4.FrameSet.thead | ||
142 | title :: Markup2 | ||
143 | title = wrapMarkup2 Text.Blaze.Html4.FrameSet.title | ||
144 | tr :: Markup2 | ||
145 | tr = wrapMarkup2 Text.Blaze.Html4.FrameSet.tr | ||
146 | tt :: Markup2 | ||
147 | tt = wrapMarkup2 Text.Blaze.Html4.FrameSet.tt | ||
148 | ul :: Markup2 | ||
149 | ul = wrapMarkup2 Text.Blaze.Html4.FrameSet.ul | ||
150 | var :: Markup2 | ||
151 | var = wrapMarkup2 Text.Blaze.Html4.FrameSet.var | ||
152 | applet :: Markup2 | ||
153 | applet = wrapMarkup2 Text.Blaze.Html4.FrameSet.applet | ||
154 | center :: Markup2 | ||
155 | center = wrapMarkup2 Text.Blaze.Html4.FrameSet.center | ||
156 | dir :: Markup2 | ||
157 | dir = wrapMarkup2 Text.Blaze.Html4.FrameSet.dir | ||
158 | font :: Markup2 | ||
159 | font = wrapMarkup2 Text.Blaze.Html4.FrameSet.font | ||
160 | iframe :: Markup2 | ||
161 | iframe = wrapMarkup2 Text.Blaze.Html4.FrameSet.iframe | ||
162 | isindex :: Markup2 | ||
163 | isindex = wrapMarkup2 Text.Blaze.Html4.FrameSet.isindex | ||
164 | menu :: Markup2 | ||
165 | menu = wrapMarkup2 Text.Blaze.Html4.FrameSet.menu | ||
166 | noframes :: Markup2 | ||
167 | noframes = wrapMarkup2 Text.Blaze.Html4.FrameSet.noframes | ||
168 | s :: Markup2 | ||
169 | s = wrapMarkup2 Text.Blaze.Html4.FrameSet.s | ||
170 | u :: Markup2 | ||
171 | u = wrapMarkup2 Text.Blaze.Html4.FrameSet.u | ||
172 | frameset :: Markup2 | ||
173 | frameset = wrapMarkup2 Text.Blaze.Html4.FrameSet.frameset | ||
174 | docType :: Markup | ||
175 | docType = wrapMarkup Text.Blaze.Html4.FrameSet.docType | ||
176 | area :: Markup | ||
177 | area = wrapMarkup Text.Blaze.Html4.FrameSet.area | ||
178 | br :: Markup | ||
179 | br = wrapMarkup Text.Blaze.Html4.FrameSet.br | ||
180 | col :: Markup | ||
181 | col = wrapMarkup Text.Blaze.Html4.FrameSet.col | ||
182 | hr :: Markup | ||
183 | hr = wrapMarkup Text.Blaze.Html4.FrameSet.hr | ||
184 | link :: Markup | ||
185 | link = wrapMarkup Text.Blaze.Html4.FrameSet.link | ||
186 | img :: Markup | ||
187 | img = wrapMarkup Text.Blaze.Html4.FrameSet.img | ||
188 | input :: Markup | ||
189 | input = wrapMarkup Text.Blaze.Html4.FrameSet.input | ||
190 | meta :: Markup | ||
191 | meta = wrapMarkup Text.Blaze.Html4.FrameSet.meta | ||
192 | param :: Markup | ||
193 | param = wrapMarkup Text.Blaze.Html4.FrameSet.param | ||
194 | basefont :: Markup | ||
195 | basefont = wrapMarkup Text.Blaze.Html4.FrameSet.basefont | ||
196 | frame :: Markup | ||
197 | frame = wrapMarkup Text.Blaze.Html4.FrameSet.frame | ||
198 | |||
diff --git a/src/Text/BlazeT/Html4/FrameSet/Attributes.hs b/src/Text/BlazeT/Html4/FrameSet/Attributes.hs new file mode 100644 index 0000000..d806f29 --- /dev/null +++ b/src/Text/BlazeT/Html4/FrameSet/Attributes.hs | |||
@@ -0,0 +1,11 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module simply reexports the corresponding @blaze-html@ module. | ||
6 | -} | ||
7 | module Text.BlazeT.Html4.FrameSet.Attributes | ||
8 | (module Text.Blaze.Html4.FrameSet.Attributes | ||
9 | ) where | ||
10 | import Text.Blaze.Html4.FrameSet.Attributes | ||
11 | |||
diff --git a/src/Text/BlazeT/Html4/Strict.hs b/src/Text/BlazeT/Html4/Strict.hs new file mode 100644 index 0000000..90fd65a --- /dev/null +++ b/src/Text/BlazeT/Html4/Strict.hs | |||
@@ -0,0 +1,172 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module wraps all exports of "Text.Blaze.Html4.Strict" using 'wrapMarkup' and 'wrapMarkup'. | ||
6 | -} | ||
7 | module Text.BlazeT.Html4.Strict | ||
8 | (module Text.BlazeT.Html4.Strict | ||
9 | ,module Text.BlazeT.Html | ||
10 | ) where | ||
11 | import qualified Text.Blaze.Html4.Strict | ||
12 | import Text.BlazeT | ||
13 | import Text.BlazeT.Html | ||
14 | import Text.BlazeT.Internal | ||
15 | |||
16 | docTypeHtml :: Markup2 | ||
17 | docTypeHtml = wrapMarkup2 Text.Blaze.Html4.Strict.docTypeHtml | ||
18 | a :: Markup2 | ||
19 | a = wrapMarkup2 Text.Blaze.Html4.Strict.a | ||
20 | abbr :: Markup2 | ||
21 | abbr = wrapMarkup2 Text.Blaze.Html4.Strict.abbr | ||
22 | acronym :: Markup2 | ||
23 | acronym = wrapMarkup2 Text.Blaze.Html4.Strict.acronym | ||
24 | address :: Markup2 | ||
25 | address = wrapMarkup2 Text.Blaze.Html4.Strict.address | ||
26 | b :: Markup2 | ||
27 | b = wrapMarkup2 Text.Blaze.Html4.Strict.b | ||
28 | bdo :: Markup2 | ||
29 | bdo = wrapMarkup2 Text.Blaze.Html4.Strict.bdo | ||
30 | big :: Markup2 | ||
31 | big = wrapMarkup2 Text.Blaze.Html4.Strict.big | ||
32 | blockquote :: Markup2 | ||
33 | blockquote = wrapMarkup2 Text.Blaze.Html4.Strict.blockquote | ||
34 | body :: Markup2 | ||
35 | body = wrapMarkup2 Text.Blaze.Html4.Strict.body | ||
36 | button :: Markup2 | ||
37 | button = wrapMarkup2 Text.Blaze.Html4.Strict.button | ||
38 | caption :: Markup2 | ||
39 | caption = wrapMarkup2 Text.Blaze.Html4.Strict.caption | ||
40 | cite :: Markup2 | ||
41 | cite = wrapMarkup2 Text.Blaze.Html4.Strict.cite | ||
42 | code :: Markup2 | ||
43 | code = wrapMarkup2 Text.Blaze.Html4.Strict.code | ||
44 | colgroup :: Markup2 | ||
45 | colgroup = wrapMarkup2 Text.Blaze.Html4.Strict.colgroup | ||
46 | dd :: Markup2 | ||
47 | dd = wrapMarkup2 Text.Blaze.Html4.Strict.dd | ||
48 | del :: Markup2 | ||
49 | del = wrapMarkup2 Text.Blaze.Html4.Strict.del | ||
50 | dfn :: Markup2 | ||
51 | dfn = wrapMarkup2 Text.Blaze.Html4.Strict.dfn | ||
52 | div :: Markup2 | ||
53 | div = wrapMarkup2 Text.Blaze.Html4.Strict.div | ||
54 | dl :: Markup2 | ||
55 | dl = wrapMarkup2 Text.Blaze.Html4.Strict.dl | ||
56 | dt :: Markup2 | ||
57 | dt = wrapMarkup2 Text.Blaze.Html4.Strict.dt | ||
58 | em :: Markup2 | ||
59 | em = wrapMarkup2 Text.Blaze.Html4.Strict.em | ||
60 | fieldset :: Markup2 | ||
61 | fieldset = wrapMarkup2 Text.Blaze.Html4.Strict.fieldset | ||
62 | form :: Markup2 | ||
63 | form = wrapMarkup2 Text.Blaze.Html4.Strict.form | ||
64 | h1 :: Markup2 | ||
65 | h1 = wrapMarkup2 Text.Blaze.Html4.Strict.h1 | ||
66 | h2 :: Markup2 | ||
67 | h2 = wrapMarkup2 Text.Blaze.Html4.Strict.h2 | ||
68 | h3 :: Markup2 | ||
69 | h3 = wrapMarkup2 Text.Blaze.Html4.Strict.h3 | ||
70 | h4 :: Markup2 | ||
71 | h4 = wrapMarkup2 Text.Blaze.Html4.Strict.h4 | ||
72 | h5 :: Markup2 | ||
73 | h5 = wrapMarkup2 Text.Blaze.Html4.Strict.h5 | ||
74 | h6 :: Markup2 | ||
75 | h6 = wrapMarkup2 Text.Blaze.Html4.Strict.h6 | ||
76 | head :: Markup2 | ||
77 | head = wrapMarkup2 Text.Blaze.Html4.Strict.head | ||
78 | html :: Markup2 | ||
79 | html = wrapMarkup2 Text.Blaze.Html4.Strict.html | ||
80 | i :: Markup2 | ||
81 | i = wrapMarkup2 Text.Blaze.Html4.Strict.i | ||
82 | ins :: Markup2 | ||
83 | ins = wrapMarkup2 Text.Blaze.Html4.Strict.ins | ||
84 | kbd :: Markup2 | ||
85 | kbd = wrapMarkup2 Text.Blaze.Html4.Strict.kbd | ||
86 | label :: Markup2 | ||
87 | label = wrapMarkup2 Text.Blaze.Html4.Strict.label | ||
88 | legend :: Markup2 | ||
89 | legend = wrapMarkup2 Text.Blaze.Html4.Strict.legend | ||
90 | li :: Markup2 | ||
91 | li = wrapMarkup2 Text.Blaze.Html4.Strict.li | ||
92 | map :: Markup2 | ||
93 | map = wrapMarkup2 Text.Blaze.Html4.Strict.map | ||
94 | noscript :: Markup2 | ||
95 | noscript = wrapMarkup2 Text.Blaze.Html4.Strict.noscript | ||
96 | object :: Markup2 | ||
97 | object = wrapMarkup2 Text.Blaze.Html4.Strict.object | ||
98 | ol :: Markup2 | ||
99 | ol = wrapMarkup2 Text.Blaze.Html4.Strict.ol | ||
100 | optgroup :: Markup2 | ||
101 | optgroup = wrapMarkup2 Text.Blaze.Html4.Strict.optgroup | ||
102 | option :: Markup2 | ||
103 | option = wrapMarkup2 Text.Blaze.Html4.Strict.option | ||
104 | p :: Markup2 | ||
105 | p = wrapMarkup2 Text.Blaze.Html4.Strict.p | ||
106 | pre :: Markup2 | ||
107 | pre = wrapMarkup2 Text.Blaze.Html4.Strict.pre | ||
108 | q :: Markup2 | ||
109 | q = wrapMarkup2 Text.Blaze.Html4.Strict.q | ||
110 | samp :: Markup2 | ||
111 | samp = wrapMarkup2 Text.Blaze.Html4.Strict.samp | ||
112 | script :: Markup2 | ||
113 | script = wrapMarkup2 Text.Blaze.Html4.Strict.script | ||
114 | select :: Markup2 | ||
115 | select = wrapMarkup2 Text.Blaze.Html4.Strict.select | ||
116 | small :: Markup2 | ||
117 | small = wrapMarkup2 Text.Blaze.Html4.Strict.small | ||
118 | span :: Markup2 | ||
119 | span = wrapMarkup2 Text.Blaze.Html4.Strict.span | ||
120 | strong :: Markup2 | ||
121 | strong = wrapMarkup2 Text.Blaze.Html4.Strict.strong | ||
122 | style :: Markup2 | ||
123 | style = wrapMarkup2 Text.Blaze.Html4.Strict.style | ||
124 | sub :: Markup2 | ||
125 | sub = wrapMarkup2 Text.Blaze.Html4.Strict.sub | ||
126 | sup :: Markup2 | ||
127 | sup = wrapMarkup2 Text.Blaze.Html4.Strict.sup | ||
128 | table :: Markup2 | ||
129 | table = wrapMarkup2 Text.Blaze.Html4.Strict.table | ||
130 | tbody :: Markup2 | ||
131 | tbody = wrapMarkup2 Text.Blaze.Html4.Strict.tbody | ||
132 | td :: Markup2 | ||
133 | td = wrapMarkup2 Text.Blaze.Html4.Strict.td | ||
134 | textarea :: Markup2 | ||
135 | textarea = wrapMarkup2 Text.Blaze.Html4.Strict.textarea | ||
136 | tfoot :: Markup2 | ||
137 | tfoot = wrapMarkup2 Text.Blaze.Html4.Strict.tfoot | ||
138 | th :: Markup2 | ||
139 | th = wrapMarkup2 Text.Blaze.Html4.Strict.th | ||
140 | thead :: Markup2 | ||
141 | thead = wrapMarkup2 Text.Blaze.Html4.Strict.thead | ||
142 | title :: Markup2 | ||
143 | title = wrapMarkup2 Text.Blaze.Html4.Strict.title | ||
144 | tr :: Markup2 | ||
145 | tr = wrapMarkup2 Text.Blaze.Html4.Strict.tr | ||
146 | tt :: Markup2 | ||
147 | tt = wrapMarkup2 Text.Blaze.Html4.Strict.tt | ||
148 | ul :: Markup2 | ||
149 | ul = wrapMarkup2 Text.Blaze.Html4.Strict.ul | ||
150 | var :: Markup2 | ||
151 | var = wrapMarkup2 Text.Blaze.Html4.Strict.var | ||
152 | docType :: Markup | ||
153 | docType = wrapMarkup Text.Blaze.Html4.Strict.docType | ||
154 | area :: Markup | ||
155 | area = wrapMarkup Text.Blaze.Html4.Strict.area | ||
156 | br :: Markup | ||
157 | br = wrapMarkup Text.Blaze.Html4.Strict.br | ||
158 | col :: Markup | ||
159 | col = wrapMarkup Text.Blaze.Html4.Strict.col | ||
160 | hr :: Markup | ||
161 | hr = wrapMarkup Text.Blaze.Html4.Strict.hr | ||
162 | link :: Markup | ||
163 | link = wrapMarkup Text.Blaze.Html4.Strict.link | ||
164 | img :: Markup | ||
165 | img = wrapMarkup Text.Blaze.Html4.Strict.img | ||
166 | input :: Markup | ||
167 | input = wrapMarkup Text.Blaze.Html4.Strict.input | ||
168 | meta :: Markup | ||
169 | meta = wrapMarkup Text.Blaze.Html4.Strict.meta | ||
170 | param :: Markup | ||
171 | param = wrapMarkup Text.Blaze.Html4.Strict.param | ||
172 | |||
diff --git a/src/Text/BlazeT/Html4/Strict/Attributes.hs b/src/Text/BlazeT/Html4/Strict/Attributes.hs new file mode 100644 index 0000000..18d1fe2 --- /dev/null +++ b/src/Text/BlazeT/Html4/Strict/Attributes.hs | |||
@@ -0,0 +1,11 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module simply reexports the corresponding @blaze-html@ module. | ||
6 | -} | ||
7 | module Text.BlazeT.Html4.Strict.Attributes | ||
8 | (module Text.Blaze.Html4.Strict.Attributes | ||
9 | ) where | ||
10 | import Text.Blaze.Html4.Strict.Attributes | ||
11 | |||
diff --git a/src/Text/BlazeT/Html4/Transitional.hs b/src/Text/BlazeT/Html4/Transitional.hs new file mode 100644 index 0000000..a6dead6 --- /dev/null +++ b/src/Text/BlazeT/Html4/Transitional.hs | |||
@@ -0,0 +1,194 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module wraps all exports of "Text.Blaze.Html4.Transitional" using 'wrapMarkup' and 'wrapMarkup'. | ||
6 | -} | ||
7 | module Text.BlazeT.Html4.Transitional | ||
8 | (module Text.BlazeT.Html4.Transitional | ||
9 | ,module Text.BlazeT.Html | ||
10 | ) where | ||
11 | import qualified Text.Blaze.Html4.Transitional | ||
12 | import Text.BlazeT | ||
13 | import Text.BlazeT.Html | ||
14 | import Text.BlazeT.Internal | ||
15 | |||
16 | docTypeHtml :: Markup2 | ||
17 | docTypeHtml = wrapMarkup2 Text.Blaze.Html4.Transitional.docTypeHtml | ||
18 | a :: Markup2 | ||
19 | a = wrapMarkup2 Text.Blaze.Html4.Transitional.a | ||
20 | abbr :: Markup2 | ||
21 | abbr = wrapMarkup2 Text.Blaze.Html4.Transitional.abbr | ||
22 | acronym :: Markup2 | ||
23 | acronym = wrapMarkup2 Text.Blaze.Html4.Transitional.acronym | ||
24 | address :: Markup2 | ||
25 | address = wrapMarkup2 Text.Blaze.Html4.Transitional.address | ||
26 | b :: Markup2 | ||
27 | b = wrapMarkup2 Text.Blaze.Html4.Transitional.b | ||
28 | bdo :: Markup2 | ||
29 | bdo = wrapMarkup2 Text.Blaze.Html4.Transitional.bdo | ||
30 | big :: Markup2 | ||
31 | big = wrapMarkup2 Text.Blaze.Html4.Transitional.big | ||
32 | blockquote :: Markup2 | ||
33 | blockquote = wrapMarkup2 Text.Blaze.Html4.Transitional.blockquote | ||
34 | body :: Markup2 | ||
35 | body = wrapMarkup2 Text.Blaze.Html4.Transitional.body | ||
36 | button :: Markup2 | ||
37 | button = wrapMarkup2 Text.Blaze.Html4.Transitional.button | ||
38 | caption :: Markup2 | ||
39 | caption = wrapMarkup2 Text.Blaze.Html4.Transitional.caption | ||
40 | cite :: Markup2 | ||
41 | cite = wrapMarkup2 Text.Blaze.Html4.Transitional.cite | ||
42 | code :: Markup2 | ||
43 | code = wrapMarkup2 Text.Blaze.Html4.Transitional.code | ||
44 | colgroup :: Markup2 | ||
45 | colgroup = wrapMarkup2 Text.Blaze.Html4.Transitional.colgroup | ||
46 | dd :: Markup2 | ||
47 | dd = wrapMarkup2 Text.Blaze.Html4.Transitional.dd | ||
48 | del :: Markup2 | ||
49 | del = wrapMarkup2 Text.Blaze.Html4.Transitional.del | ||
50 | dfn :: Markup2 | ||
51 | dfn = wrapMarkup2 Text.Blaze.Html4.Transitional.dfn | ||
52 | div :: Markup2 | ||
53 | div = wrapMarkup2 Text.Blaze.Html4.Transitional.div | ||
54 | dl :: Markup2 | ||
55 | dl = wrapMarkup2 Text.Blaze.Html4.Transitional.dl | ||
56 | dt :: Markup2 | ||
57 | dt = wrapMarkup2 Text.Blaze.Html4.Transitional.dt | ||
58 | em :: Markup2 | ||
59 | em = wrapMarkup2 Text.Blaze.Html4.Transitional.em | ||
60 | fieldset :: Markup2 | ||
61 | fieldset = wrapMarkup2 Text.Blaze.Html4.Transitional.fieldset | ||
62 | form :: Markup2 | ||
63 | form = wrapMarkup2 Text.Blaze.Html4.Transitional.form | ||
64 | h1 :: Markup2 | ||
65 | h1 = wrapMarkup2 Text.Blaze.Html4.Transitional.h1 | ||
66 | h2 :: Markup2 | ||
67 | h2 = wrapMarkup2 Text.Blaze.Html4.Transitional.h2 | ||
68 | h3 :: Markup2 | ||
69 | h3 = wrapMarkup2 Text.Blaze.Html4.Transitional.h3 | ||
70 | h4 :: Markup2 | ||
71 | h4 = wrapMarkup2 Text.Blaze.Html4.Transitional.h4 | ||
72 | h5 :: Markup2 | ||
73 | h5 = wrapMarkup2 Text.Blaze.Html4.Transitional.h5 | ||
74 | h6 :: Markup2 | ||
75 | h6 = wrapMarkup2 Text.Blaze.Html4.Transitional.h6 | ||
76 | head :: Markup2 | ||
77 | head = wrapMarkup2 Text.Blaze.Html4.Transitional.head | ||
78 | html :: Markup2 | ||
79 | html = wrapMarkup2 Text.Blaze.Html4.Transitional.html | ||
80 | i :: Markup2 | ||
81 | i = wrapMarkup2 Text.Blaze.Html4.Transitional.i | ||
82 | ins :: Markup2 | ||
83 | ins = wrapMarkup2 Text.Blaze.Html4.Transitional.ins | ||
84 | kbd :: Markup2 | ||
85 | kbd = wrapMarkup2 Text.Blaze.Html4.Transitional.kbd | ||
86 | label :: Markup2 | ||
87 | label = wrapMarkup2 Text.Blaze.Html4.Transitional.label | ||
88 | legend :: Markup2 | ||
89 | legend = wrapMarkup2 Text.Blaze.Html4.Transitional.legend | ||
90 | li :: Markup2 | ||
91 | li = wrapMarkup2 Text.Blaze.Html4.Transitional.li | ||
92 | map :: Markup2 | ||
93 | map = wrapMarkup2 Text.Blaze.Html4.Transitional.map | ||
94 | noscript :: Markup2 | ||
95 | noscript = wrapMarkup2 Text.Blaze.Html4.Transitional.noscript | ||
96 | object :: Markup2 | ||
97 | object = wrapMarkup2 Text.Blaze.Html4.Transitional.object | ||
98 | ol :: Markup2 | ||
99 | ol = wrapMarkup2 Text.Blaze.Html4.Transitional.ol | ||
100 | optgroup :: Markup2 | ||
101 | optgroup = wrapMarkup2 Text.Blaze.Html4.Transitional.optgroup | ||
102 | option :: Markup2 | ||
103 | option = wrapMarkup2 Text.Blaze.Html4.Transitional.option | ||
104 | p :: Markup2 | ||
105 | p = wrapMarkup2 Text.Blaze.Html4.Transitional.p | ||
106 | pre :: Markup2 | ||
107 | pre = wrapMarkup2 Text.Blaze.Html4.Transitional.pre | ||
108 | q :: Markup2 | ||
109 | q = wrapMarkup2 Text.Blaze.Html4.Transitional.q | ||
110 | samp :: Markup2 | ||
111 | samp = wrapMarkup2 Text.Blaze.Html4.Transitional.samp | ||
112 | script :: Markup2 | ||
113 | script = wrapMarkup2 Text.Blaze.Html4.Transitional.script | ||
114 | select :: Markup2 | ||
115 | select = wrapMarkup2 Text.Blaze.Html4.Transitional.select | ||
116 | small :: Markup2 | ||
117 | small = wrapMarkup2 Text.Blaze.Html4.Transitional.small | ||
118 | span :: Markup2 | ||
119 | span = wrapMarkup2 Text.Blaze.Html4.Transitional.span | ||
120 | strong :: Markup2 | ||
121 | strong = wrapMarkup2 Text.Blaze.Html4.Transitional.strong | ||
122 | style :: Markup2 | ||
123 | style = wrapMarkup2 Text.Blaze.Html4.Transitional.style | ||
124 | sub :: Markup2 | ||
125 | sub = wrapMarkup2 Text.Blaze.Html4.Transitional.sub | ||
126 | sup :: Markup2 | ||
127 | sup = wrapMarkup2 Text.Blaze.Html4.Transitional.sup | ||
128 | table :: Markup2 | ||
129 | table = wrapMarkup2 Text.Blaze.Html4.Transitional.table | ||
130 | tbody :: Markup2 | ||
131 | tbody = wrapMarkup2 Text.Blaze.Html4.Transitional.tbody | ||
132 | td :: Markup2 | ||
133 | td = wrapMarkup2 Text.Blaze.Html4.Transitional.td | ||
134 | textarea :: Markup2 | ||
135 | textarea = wrapMarkup2 Text.Blaze.Html4.Transitional.textarea | ||
136 | tfoot :: Markup2 | ||
137 | tfoot = wrapMarkup2 Text.Blaze.Html4.Transitional.tfoot | ||
138 | th :: Markup2 | ||
139 | th = wrapMarkup2 Text.Blaze.Html4.Transitional.th | ||
140 | thead :: Markup2 | ||
141 | thead = wrapMarkup2 Text.Blaze.Html4.Transitional.thead | ||
142 | title :: Markup2 | ||
143 | title = wrapMarkup2 Text.Blaze.Html4.Transitional.title | ||
144 | tr :: Markup2 | ||
145 | tr = wrapMarkup2 Text.Blaze.Html4.Transitional.tr | ||
146 | tt :: Markup2 | ||
147 | tt = wrapMarkup2 Text.Blaze.Html4.Transitional.tt | ||
148 | ul :: Markup2 | ||
149 | ul = wrapMarkup2 Text.Blaze.Html4.Transitional.ul | ||
150 | var :: Markup2 | ||
151 | var = wrapMarkup2 Text.Blaze.Html4.Transitional.var | ||
152 | applet :: Markup2 | ||
153 | applet = wrapMarkup2 Text.Blaze.Html4.Transitional.applet | ||
154 | center :: Markup2 | ||
155 | center = wrapMarkup2 Text.Blaze.Html4.Transitional.center | ||
156 | dir :: Markup2 | ||
157 | dir = wrapMarkup2 Text.Blaze.Html4.Transitional.dir | ||
158 | font :: Markup2 | ||
159 | font = wrapMarkup2 Text.Blaze.Html4.Transitional.font | ||
160 | iframe :: Markup2 | ||
161 | iframe = wrapMarkup2 Text.Blaze.Html4.Transitional.iframe | ||
162 | isindex :: Markup2 | ||
163 | isindex = wrapMarkup2 Text.Blaze.Html4.Transitional.isindex | ||
164 | menu :: Markup2 | ||
165 | menu = wrapMarkup2 Text.Blaze.Html4.Transitional.menu | ||
166 | noframes :: Markup2 | ||
167 | noframes = wrapMarkup2 Text.Blaze.Html4.Transitional.noframes | ||
168 | s :: Markup2 | ||
169 | s = wrapMarkup2 Text.Blaze.Html4.Transitional.s | ||
170 | u :: Markup2 | ||
171 | u = wrapMarkup2 Text.Blaze.Html4.Transitional.u | ||
172 | docType :: Markup | ||
173 | docType = wrapMarkup Text.Blaze.Html4.Transitional.docType | ||
174 | area :: Markup | ||
175 | area = wrapMarkup Text.Blaze.Html4.Transitional.area | ||
176 | br :: Markup | ||
177 | br = wrapMarkup Text.Blaze.Html4.Transitional.br | ||
178 | col :: Markup | ||
179 | col = wrapMarkup Text.Blaze.Html4.Transitional.col | ||
180 | hr :: Markup | ||
181 | hr = wrapMarkup Text.Blaze.Html4.Transitional.hr | ||
182 | link :: Markup | ||
183 | link = wrapMarkup Text.Blaze.Html4.Transitional.link | ||
184 | img :: Markup | ||
185 | img = wrapMarkup Text.Blaze.Html4.Transitional.img | ||
186 | input :: Markup | ||
187 | input = wrapMarkup Text.Blaze.Html4.Transitional.input | ||
188 | meta :: Markup | ||
189 | meta = wrapMarkup Text.Blaze.Html4.Transitional.meta | ||
190 | param :: Markup | ||
191 | param = wrapMarkup Text.Blaze.Html4.Transitional.param | ||
192 | basefont :: Markup | ||
193 | basefont = wrapMarkup Text.Blaze.Html4.Transitional.basefont | ||
194 | |||
diff --git a/src/Text/BlazeT/Html4/Transitional/Attributes.hs b/src/Text/BlazeT/Html4/Transitional/Attributes.hs new file mode 100644 index 0000000..2fc0d97 --- /dev/null +++ b/src/Text/BlazeT/Html4/Transitional/Attributes.hs | |||
@@ -0,0 +1,11 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module simply reexports the corresponding @blaze-html@ module. | ||
6 | -} | ||
7 | module Text.BlazeT.Html4.Transitional.Attributes | ||
8 | (module Text.Blaze.Html4.Transitional.Attributes | ||
9 | ) where | ||
10 | import Text.Blaze.Html4.Transitional.Attributes | ||
11 | |||
diff --git a/src/Text/BlazeT/Html5.hs b/src/Text/BlazeT/Html5.hs new file mode 100644 index 0000000..8e93bf9 --- /dev/null +++ b/src/Text/BlazeT/Html5.hs | |||
@@ -0,0 +1,234 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module wraps all exports of "Text.Blaze.Html5" using 'wrapMarkup' and 'wrapMarkup'. | ||
6 | -} | ||
7 | module Text.BlazeT.Html5 | ||
8 | (module Text.BlazeT.Html5 | ||
9 | ,module Text.BlazeT.Html | ||
10 | ) where | ||
11 | import qualified Text.Blaze.Html5 | ||
12 | import Text.BlazeT | ||
13 | import Text.BlazeT.Html | ||
14 | import Text.BlazeT.Internal | ||
15 | |||
16 | docTypeHtml :: Markup2 | ||
17 | docTypeHtml = wrapMarkup2 Text.Blaze.Html5.docTypeHtml | ||
18 | a :: Markup2 | ||
19 | a = wrapMarkup2 Text.Blaze.Html5.a | ||
20 | abbr :: Markup2 | ||
21 | abbr = wrapMarkup2 Text.Blaze.Html5.abbr | ||
22 | address :: Markup2 | ||
23 | address = wrapMarkup2 Text.Blaze.Html5.address | ||
24 | article :: Markup2 | ||
25 | article = wrapMarkup2 Text.Blaze.Html5.article | ||
26 | aside :: Markup2 | ||
27 | aside = wrapMarkup2 Text.Blaze.Html5.aside | ||
28 | audio :: Markup2 | ||
29 | audio = wrapMarkup2 Text.Blaze.Html5.audio | ||
30 | b :: Markup2 | ||
31 | b = wrapMarkup2 Text.Blaze.Html5.b | ||
32 | bdo :: Markup2 | ||
33 | bdo = wrapMarkup2 Text.Blaze.Html5.bdo | ||
34 | blockquote :: Markup2 | ||
35 | blockquote = wrapMarkup2 Text.Blaze.Html5.blockquote | ||
36 | body :: Markup2 | ||
37 | body = wrapMarkup2 Text.Blaze.Html5.body | ||
38 | button :: Markup2 | ||
39 | button = wrapMarkup2 Text.Blaze.Html5.button | ||
40 | canvas :: Markup2 | ||
41 | canvas = wrapMarkup2 Text.Blaze.Html5.canvas | ||
42 | caption :: Markup2 | ||
43 | caption = wrapMarkup2 Text.Blaze.Html5.caption | ||
44 | cite :: Markup2 | ||
45 | cite = wrapMarkup2 Text.Blaze.Html5.cite | ||
46 | code :: Markup2 | ||
47 | code = wrapMarkup2 Text.Blaze.Html5.code | ||
48 | colgroup :: Markup2 | ||
49 | colgroup = wrapMarkup2 Text.Blaze.Html5.colgroup | ||
50 | command :: Markup2 | ||
51 | command = wrapMarkup2 Text.Blaze.Html5.command | ||
52 | datalist :: Markup2 | ||
53 | datalist = wrapMarkup2 Text.Blaze.Html5.datalist | ||
54 | dd :: Markup2 | ||
55 | dd = wrapMarkup2 Text.Blaze.Html5.dd | ||
56 | del :: Markup2 | ||
57 | del = wrapMarkup2 Text.Blaze.Html5.del | ||
58 | details :: Markup2 | ||
59 | details = wrapMarkup2 Text.Blaze.Html5.details | ||
60 | dfn :: Markup2 | ||
61 | dfn = wrapMarkup2 Text.Blaze.Html5.dfn | ||
62 | div :: Markup2 | ||
63 | div = wrapMarkup2 Text.Blaze.Html5.div | ||
64 | dl :: Markup2 | ||
65 | dl = wrapMarkup2 Text.Blaze.Html5.dl | ||
66 | dt :: Markup2 | ||
67 | dt = wrapMarkup2 Text.Blaze.Html5.dt | ||
68 | em :: Markup2 | ||
69 | em = wrapMarkup2 Text.Blaze.Html5.em | ||
70 | fieldset :: Markup2 | ||
71 | fieldset = wrapMarkup2 Text.Blaze.Html5.fieldset | ||
72 | figcaption :: Markup2 | ||
73 | figcaption = wrapMarkup2 Text.Blaze.Html5.figcaption | ||
74 | figure :: Markup2 | ||
75 | figure = wrapMarkup2 Text.Blaze.Html5.figure | ||
76 | footer :: Markup2 | ||
77 | footer = wrapMarkup2 Text.Blaze.Html5.footer | ||
78 | form :: Markup2 | ||
79 | form = wrapMarkup2 Text.Blaze.Html5.form | ||
80 | h1 :: Markup2 | ||
81 | h1 = wrapMarkup2 Text.Blaze.Html5.h1 | ||
82 | h2 :: Markup2 | ||
83 | h2 = wrapMarkup2 Text.Blaze.Html5.h2 | ||
84 | h3 :: Markup2 | ||
85 | h3 = wrapMarkup2 Text.Blaze.Html5.h3 | ||
86 | h4 :: Markup2 | ||
87 | h4 = wrapMarkup2 Text.Blaze.Html5.h4 | ||
88 | h5 :: Markup2 | ||
89 | h5 = wrapMarkup2 Text.Blaze.Html5.h5 | ||
90 | h6 :: Markup2 | ||
91 | h6 = wrapMarkup2 Text.Blaze.Html5.h6 | ||
92 | head :: Markup2 | ||
93 | head = wrapMarkup2 Text.Blaze.Html5.head | ||
94 | header :: Markup2 | ||
95 | header = wrapMarkup2 Text.Blaze.Html5.header | ||
96 | hgroup :: Markup2 | ||
97 | hgroup = wrapMarkup2 Text.Blaze.Html5.hgroup | ||
98 | html :: Markup2 | ||
99 | html = wrapMarkup2 Text.Blaze.Html5.html | ||
100 | i :: Markup2 | ||
101 | i = wrapMarkup2 Text.Blaze.Html5.i | ||
102 | iframe :: Markup2 | ||
103 | iframe = wrapMarkup2 Text.Blaze.Html5.iframe | ||
104 | ins :: Markup2 | ||
105 | ins = wrapMarkup2 Text.Blaze.Html5.ins | ||
106 | kbd :: Markup2 | ||
107 | kbd = wrapMarkup2 Text.Blaze.Html5.kbd | ||
108 | label :: Markup2 | ||
109 | label = wrapMarkup2 Text.Blaze.Html5.label | ||
110 | legend :: Markup2 | ||
111 | legend = wrapMarkup2 Text.Blaze.Html5.legend | ||
112 | li :: Markup2 | ||
113 | li = wrapMarkup2 Text.Blaze.Html5.li | ||
114 | main :: Markup2 | ||
115 | main = wrapMarkup2 Text.Blaze.Html5.main | ||
116 | map :: Markup2 | ||
117 | map = wrapMarkup2 Text.Blaze.Html5.map | ||
118 | mark :: Markup2 | ||
119 | mark = wrapMarkup2 Text.Blaze.Html5.mark | ||
120 | menu :: Markup2 | ||
121 | menu = wrapMarkup2 Text.Blaze.Html5.menu | ||
122 | meter :: Markup2 | ||
123 | meter = wrapMarkup2 Text.Blaze.Html5.meter | ||
124 | nav :: Markup2 | ||
125 | nav = wrapMarkup2 Text.Blaze.Html5.nav | ||
126 | noscript :: Markup2 | ||
127 | noscript = wrapMarkup2 Text.Blaze.Html5.noscript | ||
128 | object :: Markup2 | ||
129 | object = wrapMarkup2 Text.Blaze.Html5.object | ||
130 | ol :: Markup2 | ||
131 | ol = wrapMarkup2 Text.Blaze.Html5.ol | ||
132 | optgroup :: Markup2 | ||
133 | optgroup = wrapMarkup2 Text.Blaze.Html5.optgroup | ||
134 | option :: Markup2 | ||
135 | option = wrapMarkup2 Text.Blaze.Html5.option | ||
136 | output :: Markup2 | ||
137 | output = wrapMarkup2 Text.Blaze.Html5.output | ||
138 | p :: Markup2 | ||
139 | p = wrapMarkup2 Text.Blaze.Html5.p | ||
140 | pre :: Markup2 | ||
141 | pre = wrapMarkup2 Text.Blaze.Html5.pre | ||
142 | progress :: Markup2 | ||
143 | progress = wrapMarkup2 Text.Blaze.Html5.progress | ||
144 | q :: Markup2 | ||
145 | q = wrapMarkup2 Text.Blaze.Html5.q | ||
146 | rp :: Markup2 | ||
147 | rp = wrapMarkup2 Text.Blaze.Html5.rp | ||
148 | rt :: Markup2 | ||
149 | rt = wrapMarkup2 Text.Blaze.Html5.rt | ||
150 | ruby :: Markup2 | ||
151 | ruby = wrapMarkup2 Text.Blaze.Html5.ruby | ||
152 | samp :: Markup2 | ||
153 | samp = wrapMarkup2 Text.Blaze.Html5.samp | ||
154 | script :: Markup2 | ||
155 | script = wrapMarkup2 Text.Blaze.Html5.script | ||
156 | section :: Markup2 | ||
157 | section = wrapMarkup2 Text.Blaze.Html5.section | ||
158 | select :: Markup2 | ||
159 | select = wrapMarkup2 Text.Blaze.Html5.select | ||
160 | small :: Markup2 | ||
161 | small = wrapMarkup2 Text.Blaze.Html5.small | ||
162 | span :: Markup2 | ||
163 | span = wrapMarkup2 Text.Blaze.Html5.span | ||
164 | strong :: Markup2 | ||
165 | strong = wrapMarkup2 Text.Blaze.Html5.strong | ||
166 | style :: Markup2 | ||
167 | style = wrapMarkup2 Text.Blaze.Html5.style | ||
168 | sub :: Markup2 | ||
169 | sub = wrapMarkup2 Text.Blaze.Html5.sub | ||
170 | summary :: Markup2 | ||
171 | summary = wrapMarkup2 Text.Blaze.Html5.summary | ||
172 | sup :: Markup2 | ||
173 | sup = wrapMarkup2 Text.Blaze.Html5.sup | ||
174 | table :: Markup2 | ||
175 | table = wrapMarkup2 Text.Blaze.Html5.table | ||
176 | tbody :: Markup2 | ||
177 | tbody = wrapMarkup2 Text.Blaze.Html5.tbody | ||
178 | td :: Markup2 | ||
179 | td = wrapMarkup2 Text.Blaze.Html5.td | ||
180 | textarea :: Markup2 | ||
181 | textarea = wrapMarkup2 Text.Blaze.Html5.textarea | ||
182 | tfoot :: Markup2 | ||
183 | tfoot = wrapMarkup2 Text.Blaze.Html5.tfoot | ||
184 | th :: Markup2 | ||
185 | th = wrapMarkup2 Text.Blaze.Html5.th | ||
186 | thead :: Markup2 | ||
187 | thead = wrapMarkup2 Text.Blaze.Html5.thead | ||
188 | time :: Markup2 | ||
189 | time = wrapMarkup2 Text.Blaze.Html5.time | ||
190 | title :: Markup2 | ||
191 | title = wrapMarkup2 Text.Blaze.Html5.title | ||
192 | tr :: Markup2 | ||
193 | tr = wrapMarkup2 Text.Blaze.Html5.tr | ||
194 | ul :: Markup2 | ||
195 | ul = wrapMarkup2 Text.Blaze.Html5.ul | ||
196 | var :: Markup2 | ||
197 | var = wrapMarkup2 Text.Blaze.Html5.var | ||
198 | video :: Markup2 | ||
199 | video = wrapMarkup2 Text.Blaze.Html5.video | ||
200 | docType :: Markup | ||
201 | docType = wrapMarkup Text.Blaze.Html5.docType | ||
202 | area :: Markup | ||
203 | area = wrapMarkup Text.Blaze.Html5.area | ||
204 | base :: Markup | ||
205 | base = wrapMarkup Text.Blaze.Html5.base | ||
206 | br :: Markup | ||
207 | br = wrapMarkup Text.Blaze.Html5.br | ||
208 | col :: Markup | ||
209 | col = wrapMarkup Text.Blaze.Html5.col | ||
210 | embed :: Markup | ||
211 | embed = wrapMarkup Text.Blaze.Html5.embed | ||
212 | hr :: Markup | ||
213 | hr = wrapMarkup Text.Blaze.Html5.hr | ||
214 | img :: Markup | ||
215 | img = wrapMarkup Text.Blaze.Html5.img | ||
216 | input :: Markup | ||
217 | input = wrapMarkup Text.Blaze.Html5.input | ||
218 | keygen :: Markup | ||
219 | keygen = wrapMarkup Text.Blaze.Html5.keygen | ||
220 | link :: Markup | ||
221 | link = wrapMarkup Text.Blaze.Html5.link | ||
222 | menuitem :: Markup | ||
223 | menuitem = wrapMarkup Text.Blaze.Html5.menuitem | ||
224 | meta :: Markup | ||
225 | meta = wrapMarkup Text.Blaze.Html5.meta | ||
226 | param :: Markup | ||
227 | param = wrapMarkup Text.Blaze.Html5.param | ||
228 | source :: Markup | ||
229 | source = wrapMarkup Text.Blaze.Html5.source | ||
230 | track :: Markup | ||
231 | track = wrapMarkup Text.Blaze.Html5.track | ||
232 | wbr :: Markup | ||
233 | wbr = wrapMarkup Text.Blaze.Html5.wbr | ||
234 | |||
diff --git a/src/Text/BlazeT/Html5/Attributes.hs b/src/Text/BlazeT/Html5/Attributes.hs new file mode 100644 index 0000000..1bcd773 --- /dev/null +++ b/src/Text/BlazeT/Html5/Attributes.hs | |||
@@ -0,0 +1,11 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module simply reexports the corresponding @blaze-html@ module. | ||
6 | -} | ||
7 | module Text.BlazeT.Html5.Attributes | ||
8 | (module Text.Blaze.Html5.Attributes | ||
9 | ) where | ||
10 | import Text.Blaze.Html5.Attributes | ||
11 | |||
diff --git a/src/Text/BlazeT/Internal.hs b/src/Text/BlazeT/Internal.hs new file mode 100644 index 0000000..24ef1fe --- /dev/null +++ b/src/Text/BlazeT/Internal.hs | |||
@@ -0,0 +1,238 @@ | |||
1 | {-# LANGUAGE DeriveFunctor #-} | ||
2 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} | ||
3 | {-# LANGUAGE FlexibleInstances #-} | ||
4 | {-# LANGUAGE RankNTypes #-} | ||
5 | {-# LANGUAGE CPP #-} | ||
6 | #if MIN_VERSION_blaze_markup(0,7,1) | ||
7 | #define PRE_BUILDER | ||
8 | #endif | ||
9 | module Text.BlazeT.Internal | ||
10 | ( | ||
11 | -- * Important types. | ||
12 | B.ChoiceString (..) | ||
13 | , B.StaticString (..) | ||
14 | , MarkupM | ||
15 | , Markup | ||
16 | , B.Tag | ||
17 | , B.Attribute | ||
18 | , B.AttributeValue | ||
19 | |||
20 | -- * Creating custom tags and attributes. | ||
21 | , customParent | ||
22 | , customLeaf | ||
23 | , B.attribute | ||
24 | , B.dataAttribute | ||
25 | , B.customAttribute | ||
26 | |||
27 | -- * Converting values to Markup. | ||
28 | , text | ||
29 | , preEscapedText | ||
30 | , lazyText | ||
31 | , preEscapedLazyText | ||
32 | , textBuilder | ||
33 | , preEscapedTextBuilder | ||
34 | , string | ||
35 | , preEscapedString | ||
36 | , unsafeByteString | ||
37 | , unsafeLazyByteString | ||
38 | |||
39 | -- * Comments | ||
40 | , B.textComment | ||
41 | , B.lazyTextComment | ||
42 | , B.stringComment | ||
43 | , B.unsafeByteStringComment | ||
44 | , B.unsafeLazyByteStringComment | ||
45 | |||
46 | -- * Converting values to tags. | ||
47 | , B.textTag | ||
48 | , B.stringTag | ||
49 | |||
50 | -- * Converting values to attribute values. | ||
51 | , B.textValue | ||
52 | , B.preEscapedTextValue | ||
53 | , B.lazyTextValue | ||
54 | , B.preEscapedLazyTextValue | ||
55 | , B.textBuilderValue | ||
56 | , B.preEscapedTextBuilderValue | ||
57 | , B.stringValue | ||
58 | , B.preEscapedStringValue | ||
59 | , B.unsafeByteStringValue | ||
60 | , B.unsafeLazyByteStringValue | ||
61 | |||
62 | -- * Setting attributes | ||
63 | , B.Attributable | ||
64 | , (B.!) | ||
65 | , (B.!?) | ||
66 | |||
67 | -- * Modifying Markup elements | ||
68 | , contents | ||
69 | , external | ||
70 | |||
71 | -- * Querying Markup elements | ||
72 | , null | ||
73 | |||
74 | -- * BlazeT new stuff | ||
75 | ,Markup2 | ||
76 | ,mapMarkupT | ||
77 | ,MarkupT | ||
78 | ,runMarkup | ||
79 | ,runMarkupT | ||
80 | ,execMarkup | ||
81 | ,execMarkupT | ||
82 | ,wrapMarkup | ||
83 | ,wrapMarkupT | ||
84 | ,wrapMarkup2 | ||
85 | ,wrapMarkupT2 | ||
86 | ) where | ||
87 | |||
88 | import Control.Monad.Identity | ||
89 | import Control.Monad.Trans.Class | ||
90 | import Control.Monad.Writer.Strict | ||
91 | import qualified Data.ByteString as BS | ||
92 | import qualified Data.ByteString.Lazy as BL | ||
93 | import Data.String | ||
94 | import qualified Data.Text as T | ||
95 | import qualified Data.Text.Lazy as LT | ||
96 | import qualified Data.Text.Lazy.Builder as LTB | ||
97 | import qualified Text.Blaze as B | ||
98 | import qualified Text.Blaze.Internal as B | ||
99 | |||
100 | newtype MarkupT m a= MarkupT { fromMarkupT :: WriterT B.Markup m a } | ||
101 | deriving (Functor | ||
102 | #if MIN_VERSION_base(4,8,0) | ||
103 | ,Applicative | ||
104 | #endif | ||
105 | ,Monad | ||
106 | ,MonadWriter B.Markup | ||
107 | ,MonadTrans | ||
108 | ) | ||
109 | |||
110 | -- | Map both the return value and markup of a computation using the | ||
111 | -- given function | ||
112 | mapMarkupT :: (m (a,B.Markup) -> n (b,B.Markup)) -> MarkupT m a -> MarkupT n b | ||
113 | mapMarkupT f = MarkupT . mapWriterT f . fromMarkupT | ||
114 | {-# INLINE mapMarkupT #-} | ||
115 | |||
116 | type MarkupM = MarkupT Identity | ||
117 | type Markup = forall m . Monad m => MarkupT m () | ||
118 | type Markup2 = forall m . Monad m => MarkupT m () -> MarkupT m () | ||
119 | |||
120 | runMarkupT :: MarkupT m a -> m (a,B.Markup) | ||
121 | runMarkupT = runWriterT . fromMarkupT | ||
122 | {-# INLINE runMarkupT #-} | ||
123 | |||
124 | execMarkupT :: Monad m => MarkupT m a -> m B.Markup | ||
125 | execMarkupT = liftM snd . runMarkupT | ||
126 | {-# INLINE execMarkupT #-} | ||
127 | |||
128 | runMarkup :: MarkupM a -> (a,B.Markup) | ||
129 | runMarkup = runIdentity . runMarkupT | ||
130 | {-# INLINE runMarkup #-} | ||
131 | |||
132 | execMarkup :: MarkupM a -> B.Markup | ||
133 | execMarkup = snd . runMarkup | ||
134 | {-# INLINE execMarkup #-} | ||
135 | |||
136 | -- instance MonadTrans MarkupT where | ||
137 | |||
138 | |||
139 | instance (Monad m,Monoid a) => Monoid (MarkupT m a) where | ||
140 | mempty = return mempty | ||
141 | {-# INLINE mempty #-} | ||
142 | a `mappend` b = do {a' <- a; b >>= return . (mappend a')} | ||
143 | {-# INLINE mappend #-} | ||
144 | |||
145 | |||
146 | instance Monad m => B.Attributable (MarkupT m a) where | ||
147 | h ! a = wrapMarkupT2 (B.! a) h | ||
148 | {-# INLINE (!) #-} | ||
149 | |||
150 | instance Monad m => B.Attributable (a -> MarkupT m b) where | ||
151 | h ! a = \x -> wrapMarkupT2 (B.! a) $ h x | ||
152 | {-# INLINE (!) #-} | ||
153 | |||
154 | instance Monad m => IsString (MarkupT m ()) where | ||
155 | fromString = wrapMarkup . fromString | ||
156 | {-# INLINE fromString #-} | ||
157 | |||
158 | wrapMarkupT :: Monad m => B.Markup -> MarkupT m () | ||
159 | wrapMarkupT = tell | ||
160 | {-# INLINE wrapMarkupT #-} | ||
161 | |||
162 | wrapMarkup :: B.Markup -> Markup | ||
163 | wrapMarkup = wrapMarkupT | ||
164 | {-# INLINE wrapMarkup #-} | ||
165 | |||
166 | wrapMarkupT2 :: Monad m => (B.Markup -> B.Markup) | ||
167 | -> MarkupT m a -> MarkupT m a | ||
168 | wrapMarkupT2 = censor | ||
169 | {-# INLINE wrapMarkupT2 #-} | ||
170 | |||
171 | wrapMarkup2 :: (B.Markup -> B.Markup) -> Markup2 | ||
172 | wrapMarkup2 = wrapMarkupT2 | ||
173 | {-# INLINE wrapMarkup2 #-} | ||
174 | |||
175 | unsafeByteString :: BS.ByteString -> Markup | ||
176 | unsafeByteString = wrapMarkup . B.unsafeByteString | ||
177 | {-# INLINE unsafeByteString #-} | ||
178 | |||
179 | -- | Insert a lazy 'BL.ByteString'. See 'unsafeByteString' for reasons why this | ||
180 | -- is an unsafe operation. | ||
181 | -- | ||
182 | unsafeLazyByteString :: BL.ByteString -- ^ Value to insert | ||
183 | -> Markup -- ^ Resulting HTML fragment | ||
184 | unsafeLazyByteString = wrapMarkup . B.unsafeLazyByteString | ||
185 | {-# INLINE unsafeLazyByteString #-} | ||
186 | |||
187 | external :: Monad m => MarkupT m a -> MarkupT m a | ||
188 | external = wrapMarkupT2 B.external | ||
189 | {-# INLINE external #-} | ||
190 | |||
191 | contents :: Monad m => MarkupT m a -> MarkupT m a | ||
192 | contents = wrapMarkupT2 B.contents | ||
193 | {-# INLINE contents #-} | ||
194 | |||
195 | customParent ::B.Tag -> Markup2 | ||
196 | customParent = wrapMarkup2 . B.customParent | ||
197 | {-# INLINE customParent #-} | ||
198 | |||
199 | customLeaf :: B.Tag -> Bool -> Markup | ||
200 | customLeaf = fmap wrapMarkup . B.customLeaf | ||
201 | {-# INLINE customLeaf #-} | ||
202 | |||
203 | preEscapedText :: T.Text -> Markup | ||
204 | preEscapedText = wrapMarkup . B.preEscapedText | ||
205 | {-# INLINE preEscapedText #-} | ||
206 | |||
207 | preEscapedLazyText :: LT.Text -> Markup | ||
208 | preEscapedLazyText = wrapMarkup . B.preEscapedLazyText | ||
209 | {-# INLINE preEscapedLazyText #-} | ||
210 | |||
211 | preEscapedTextBuilder :: LTB.Builder -> Markup | ||
212 | textBuilder :: LTB.Builder -> Markup | ||
213 | |||
214 | #ifdef PRE_BUILDER | ||
215 | preEscapedTextBuilder = wrapMarkup . B.preEscapedTextBuilder | ||
216 | textBuilder = wrapMarkup . B.textBuilder | ||
217 | {-# INLINE preEscapedTextBuilder #-} | ||
218 | {-# INLINE textBuilder #-} | ||
219 | #else | ||
220 | preEscapedTextBuilder = error "This function needs blaze-markup 0.7.1.0" | ||
221 | textBuilder = error "This function needs blaze-markup 0.7.1.0" | ||
222 | #endif | ||
223 | |||
224 | preEscapedString :: String -> Markup | ||
225 | preEscapedString = wrapMarkup . B.preEscapedString | ||
226 | {-# INLINE preEscapedString #-} | ||
227 | |||
228 | string :: String -> Markup | ||
229 | string = wrapMarkup . B.string | ||
230 | {-# INLINE string #-} | ||
231 | |||
232 | text :: T.Text -> Markup | ||
233 | text = wrapMarkup . B.text | ||
234 | {-# INLINE text #-} | ||
235 | |||
236 | lazyText :: LT.Text -> Markup | ||
237 | lazyText = wrapMarkup . B.lazyText | ||
238 | {-# INLINE lazyText #-} | ||
diff --git a/src/Text/BlazeT/Renderer/Pretty.hs b/src/Text/BlazeT/Renderer/Pretty.hs new file mode 100644 index 0000000..8977c94 --- /dev/null +++ b/src/Text/BlazeT/Renderer/Pretty.hs | |||
@@ -0,0 +1,22 @@ | |||
1 | module Text.BlazeT.Renderer.Pretty | ||
2 | ( renderMarkup | ||
3 | , renderHtml | ||
4 | , renderMarkupT | ||
5 | , renderHtmlT | ||
6 | ) where | ||
7 | |||
8 | import Control.Monad | ||
9 | import Control.Monad.Identity | ||
10 | import qualified Text.Blaze.Renderer.Pretty as BU | ||
11 | import Text.BlazeT | ||
12 | |||
13 | renderMarkup :: MarkupM a -> String | ||
14 | renderMarkup = runIdentity . renderMarkupT | ||
15 | renderMarkupT :: Monad m => MarkupT m a -> m String | ||
16 | renderMarkupT = liftM BU.renderMarkup . execMarkupT | ||
17 | |||
18 | renderHtml :: MarkupM a -> String | ||
19 | renderHtml = renderMarkup | ||
20 | renderHtmlT :: Monad m => MarkupT m a -> m String | ||
21 | renderHtmlT = renderMarkupT | ||
22 | |||
diff --git a/src/Text/BlazeT/Renderer/String.hs b/src/Text/BlazeT/Renderer/String.hs new file mode 100644 index 0000000..0a2de8a --- /dev/null +++ b/src/Text/BlazeT/Renderer/String.hs | |||
@@ -0,0 +1,27 @@ | |||
1 | module Text.BlazeT.Renderer.String | ||
2 | ( fromChoiceString | ||
3 | , renderMarkup | ||
4 | , renderHtml | ||
5 | , renderMarkupT | ||
6 | , renderHtmlT | ||
7 | ) where | ||
8 | |||
9 | import Control.Monad | ||
10 | import Control.Monad.Identity | ||
11 | import Text.Blaze.Internal (ChoiceString) | ||
12 | import qualified Text.Blaze.Renderer.String as BU | ||
13 | import Text.BlazeT | ||
14 | |||
15 | fromChoiceString :: ChoiceString -> String -> String | ||
16 | fromChoiceString = BU.fromChoiceString | ||
17 | |||
18 | renderMarkup :: MarkupM a -> String | ||
19 | renderMarkup = runIdentity . renderMarkupT | ||
20 | renderMarkupT :: Monad m => MarkupT m a -> m String | ||
21 | renderMarkupT = liftM BU.renderMarkup . execMarkupT | ||
22 | |||
23 | renderHtml :: MarkupM a -> String | ||
24 | renderHtml = renderMarkup | ||
25 | renderHtmlT :: Monad m => MarkupT m a -> m String | ||
26 | renderHtmlT = renderMarkupT | ||
27 | |||
diff --git a/src/Text/BlazeT/Renderer/Text.hs b/src/Text/BlazeT/Renderer/Text.hs new file mode 100644 index 0000000..31181eb --- /dev/null +++ b/src/Text/BlazeT/Renderer/Text.hs | |||
@@ -0,0 +1,75 @@ | |||
1 | module Text.BlazeT.Renderer.Text | ||
2 | ( renderMarkupBuilderT | ||
3 | , renderMarkupBuilder | ||
4 | , renderMarkupBuilderWithT | ||
5 | , renderMarkupT | ||
6 | , renderMarkupWithT | ||
7 | , renderHtmlBuilderT | ||
8 | , renderHtmlBuilderWithT | ||
9 | , renderHtmlT | ||
10 | , renderHtmlWithT | ||
11 | , renderMarkupBuilderWith | ||
12 | , renderMarkup | ||
13 | , renderMarkupWith | ||
14 | , renderHtmlBuilder | ||
15 | , renderHtmlBuilderWith | ||
16 | , renderHtml | ||
17 | , renderHtmlWith | ||
18 | ) where | ||
19 | |||
20 | import Control.Monad | ||
21 | import Data.ByteString (ByteString) | ||
22 | import Control.Monad.Identity | ||
23 | import Data.Text (Text) | ||
24 | import qualified Data.Text.Lazy as L | ||
25 | import qualified Data.Text.Lazy.Builder as B | ||
26 | import qualified Text.Blaze.Html.Renderer.Text as BH | ||
27 | import qualified Text.Blaze.Renderer.Text as BU | ||
28 | import Text.BlazeT | ||
29 | |||
30 | renderMarkupBuilder :: MarkupM a -> B.Builder | ||
31 | renderMarkupBuilder = runIdentity . renderMarkupBuilderT | ||
32 | |||
33 | renderMarkupBuilderT :: Monad m => MarkupT m a -> m B.Builder | ||
34 | renderMarkupBuilderT = liftM BU.renderMarkupBuilder . execMarkupT | ||
35 | |||
36 | renderHtmlBuilder :: MarkupM a -> B.Builder | ||
37 | renderHtmlBuilder = renderMarkupBuilder | ||
38 | |||
39 | renderHtmlBuilderT :: Monad m => MarkupT m a -> m B.Builder | ||
40 | renderHtmlBuilderT = renderMarkupBuilderT | ||
41 | |||
42 | renderMarkup :: MarkupM a -> L.Text | ||
43 | renderMarkup = runIdentity . renderMarkupT | ||
44 | renderMarkupT :: Monad m => MarkupT m a -> m L.Text | ||
45 | renderMarkupT = liftM BU.renderMarkup . execMarkupT | ||
46 | |||
47 | renderHtml :: MarkupM a -> L.Text | ||
48 | renderHtml = renderMarkup | ||
49 | renderHtmlT :: Monad m => MarkupT m a -> m L.Text | ||
50 | renderHtmlT = renderMarkupT | ||
51 | |||
52 | renderMarkupWithT :: Monad m => (ByteString -> Text) -> MarkupT m a -> m L.Text | ||
53 | renderMarkupWithT g = liftM (BU.renderMarkupWith g) . execMarkupT | ||
54 | |||
55 | renderMarkupWith :: (ByteString -> Text) -> MarkupM a -> L.Text | ||
56 | renderMarkupWith g = runIdentity . renderMarkupWithT g | ||
57 | |||
58 | renderHtmlWithT :: Monad m => (ByteString -> Text) -> MarkupT m a -> m L.Text | ||
59 | renderHtmlWithT g = liftM (BH.renderHtmlWith g) . execMarkupT | ||
60 | |||
61 | renderHtmlWith :: (ByteString -> Text) -> MarkupM a -> L.Text | ||
62 | renderHtmlWith g = runIdentity . renderHtmlWithT g | ||
63 | |||
64 | renderHtmlBuilderWithT :: Monad m => (ByteString -> Text) -> MarkupT m a -> m B.Builder | ||
65 | renderHtmlBuilderWithT g = liftM (BH.renderHtmlBuilderWith g) . execMarkupT | ||
66 | |||
67 | renderHtmlBuilderWith :: (ByteString -> Text) -> MarkupM a -> B.Builder | ||
68 | renderHtmlBuilderWith g = runIdentity . renderHtmlBuilderWithT g | ||
69 | |||
70 | |||
71 | renderMarkupBuilderWithT :: Monad m => (ByteString -> Text) -> MarkupT m a -> m B.Builder | ||
72 | renderMarkupBuilderWithT g = liftM (BU.renderMarkupBuilderWith g) . execMarkupT | ||
73 | |||
74 | renderMarkupBuilderWith :: (ByteString -> Text) -> MarkupM a -> B.Builder | ||
75 | renderMarkupBuilderWith g = runIdentity . renderMarkupBuilderWithT g | ||
diff --git a/src/Text/BlazeT/Renderer/Utf8.hs b/src/Text/BlazeT/Renderer/Utf8.hs new file mode 100644 index 0000000..292f81f --- /dev/null +++ b/src/Text/BlazeT/Renderer/Utf8.hs | |||
@@ -0,0 +1,66 @@ | |||
1 | {-# OPTIONS_GHC -fsimpl-tick-factor=230 #-} | ||
2 | |||
3 | -- the above option was not needed with | ||
4 | -- ,blaze-html >= 0.6.0.0 && < 0.7.0.0 | ||
5 | -- ,blaze-builder >= 0.2 | ||
6 | -- ,text < 1.2 | ||
7 | |||
8 | module Text.BlazeT.Renderer.Utf8 | ||
9 | ( | ||
10 | renderMarkupBuilder | ||
11 | , renderMarkup | ||
12 | , renderMarkupToByteStringIO | ||
13 | , renderHtmlBuilder | ||
14 | , renderHtml | ||
15 | , renderHtmlToByteStringIO | ||
16 | |||
17 | -- * new BlazeT stuff | ||
18 | , renderMarkupBuilderT | ||
19 | , renderMarkupT | ||
20 | , renderMarkupToByteStringIOT | ||
21 | , renderHtmlToByteStringIOT | ||
22 | , renderHtmlBuilderT | ||
23 | , renderHtmlT | ||
24 | ) where | ||
25 | |||
26 | import qualified Blaze.ByteString.Builder as B | ||
27 | import Control.Monad | ||
28 | import Control.Monad.Identity | ||
29 | import qualified Data.ByteString as BS | ||
30 | import qualified Data.ByteString.Lazy as BL | ||
31 | import qualified Text.Blaze.Renderer.Utf8 as BU | ||
32 | import Text.BlazeT | ||
33 | |||
34 | renderMarkupBuilder :: MarkupM a -> B.Builder | ||
35 | renderMarkupBuilder = runIdentity . renderMarkupBuilderT | ||
36 | |||
37 | renderMarkupBuilderT :: Monad m => MarkupT m a -> m B.Builder | ||
38 | renderMarkupBuilderT = liftM BU.renderMarkupBuilder . execMarkupT | ||
39 | |||
40 | renderHtmlBuilder :: MarkupM a -> B.Builder | ||
41 | renderHtmlBuilder = renderMarkupBuilder | ||
42 | |||
43 | renderHtmlBuilderT :: Monad m => MarkupT m a -> m B.Builder | ||
44 | renderHtmlBuilderT = renderMarkupBuilderT | ||
45 | |||
46 | renderMarkup :: MarkupM a -> BL.ByteString | ||
47 | renderMarkup = runIdentity . renderMarkupT | ||
48 | renderMarkupT :: Monad m => MarkupT m a -> m BL.ByteString | ||
49 | renderMarkupT = liftM BU.renderMarkup . execMarkupT | ||
50 | |||
51 | renderHtml :: MarkupM a -> BL.ByteString | ||
52 | renderHtml = renderMarkup | ||
53 | renderHtmlT :: Monad m => MarkupT m a -> m BL.ByteString | ||
54 | renderHtmlT = renderMarkupT | ||
55 | |||
56 | renderMarkupToByteStringIO :: (BS.ByteString -> IO ()) -> MarkupM a -> IO () | ||
57 | renderMarkupToByteStringIO g = runIdentity . renderMarkupToByteStringIOT g | ||
58 | renderMarkupToByteStringIOT :: Monad m => (BS.ByteString -> IO ()) -> | ||
59 | MarkupT m a -> m (IO ()) | ||
60 | renderMarkupToByteStringIOT g = liftM (BU.renderMarkupToByteStringIO g) . execMarkupT | ||
61 | |||
62 | renderHtmlToByteStringIO :: (BS.ByteString -> IO ()) -> MarkupM a -> IO () | ||
63 | renderHtmlToByteStringIO g = runIdentity . renderMarkupToByteStringIOT g | ||
64 | renderHtmlToByteStringIOT :: Monad m => (BS.ByteString -> IO ()) -> | ||
65 | MarkupT m a -> m (IO ()) | ||
66 | renderHtmlToByteStringIOT g = liftM (BU.renderMarkupToByteStringIO g) . execMarkupT | ||
diff --git a/src/Text/BlazeT/XHtml1/FrameSet.hs b/src/Text/BlazeT/XHtml1/FrameSet.hs new file mode 100644 index 0000000..57edcd5 --- /dev/null +++ b/src/Text/BlazeT/XHtml1/FrameSet.hs | |||
@@ -0,0 +1,198 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module wraps all exports of "Text.Blaze.XHtml1.FrameSet" using 'wrapMarkup' and 'wrapMarkup'. | ||
6 | -} | ||
7 | module Text.BlazeT.XHtml1.FrameSet | ||
8 | (module Text.BlazeT.XHtml1.FrameSet | ||
9 | ,module Text.BlazeT.Html | ||
10 | ) where | ||
11 | import qualified Text.Blaze.XHtml1.FrameSet | ||
12 | import Text.BlazeT | ||
13 | import Text.BlazeT.Html | ||
14 | import Text.BlazeT.Internal | ||
15 | |||
16 | docTypeHtml :: Markup2 | ||
17 | docTypeHtml = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.docTypeHtml | ||
18 | a :: Markup2 | ||
19 | a = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.a | ||
20 | abbr :: Markup2 | ||
21 | abbr = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.abbr | ||
22 | acronym :: Markup2 | ||
23 | acronym = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.acronym | ||
24 | address :: Markup2 | ||
25 | address = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.address | ||
26 | b :: Markup2 | ||
27 | b = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.b | ||
28 | bdo :: Markup2 | ||
29 | bdo = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.bdo | ||
30 | big :: Markup2 | ||
31 | big = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.big | ||
32 | blockquote :: Markup2 | ||
33 | blockquote = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.blockquote | ||
34 | body :: Markup2 | ||
35 | body = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.body | ||
36 | button :: Markup2 | ||
37 | button = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.button | ||
38 | caption :: Markup2 | ||
39 | caption = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.caption | ||
40 | cite :: Markup2 | ||
41 | cite = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.cite | ||
42 | code :: Markup2 | ||
43 | code = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.code | ||
44 | colgroup :: Markup2 | ||
45 | colgroup = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.colgroup | ||
46 | dd :: Markup2 | ||
47 | dd = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.dd | ||
48 | del :: Markup2 | ||
49 | del = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.del | ||
50 | dfn :: Markup2 | ||
51 | dfn = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.dfn | ||
52 | div :: Markup2 | ||
53 | div = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.div | ||
54 | dl :: Markup2 | ||
55 | dl = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.dl | ||
56 | dt :: Markup2 | ||
57 | dt = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.dt | ||
58 | em :: Markup2 | ||
59 | em = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.em | ||
60 | fieldset :: Markup2 | ||
61 | fieldset = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.fieldset | ||
62 | form :: Markup2 | ||
63 | form = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.form | ||
64 | h1 :: Markup2 | ||
65 | h1 = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.h1 | ||
66 | h2 :: Markup2 | ||
67 | h2 = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.h2 | ||
68 | h3 :: Markup2 | ||
69 | h3 = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.h3 | ||
70 | h4 :: Markup2 | ||
71 | h4 = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.h4 | ||
72 | h5 :: Markup2 | ||
73 | h5 = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.h5 | ||
74 | h6 :: Markup2 | ||
75 | h6 = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.h6 | ||
76 | head :: Markup2 | ||
77 | head = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.head | ||
78 | html :: Markup2 | ||
79 | html = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.html | ||
80 | i :: Markup2 | ||
81 | i = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.i | ||
82 | ins :: Markup2 | ||
83 | ins = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.ins | ||
84 | kbd :: Markup2 | ||
85 | kbd = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.kbd | ||
86 | label :: Markup2 | ||
87 | label = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.label | ||
88 | legend :: Markup2 | ||
89 | legend = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.legend | ||
90 | li :: Markup2 | ||
91 | li = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.li | ||
92 | map :: Markup2 | ||
93 | map = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.map | ||
94 | noscript :: Markup2 | ||
95 | noscript = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.noscript | ||
96 | object :: Markup2 | ||
97 | object = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.object | ||
98 | ol :: Markup2 | ||
99 | ol = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.ol | ||
100 | optgroup :: Markup2 | ||
101 | optgroup = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.optgroup | ||
102 | option :: Markup2 | ||
103 | option = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.option | ||
104 | p :: Markup2 | ||
105 | p = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.p | ||
106 | pre :: Markup2 | ||
107 | pre = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.pre | ||
108 | q :: Markup2 | ||
109 | q = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.q | ||
110 | samp :: Markup2 | ||
111 | samp = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.samp | ||
112 | script :: Markup2 | ||
113 | script = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.script | ||
114 | select :: Markup2 | ||
115 | select = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.select | ||
116 | small :: Markup2 | ||
117 | small = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.small | ||
118 | span :: Markup2 | ||
119 | span = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.span | ||
120 | strong :: Markup2 | ||
121 | strong = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.strong | ||
122 | style :: Markup2 | ||
123 | style = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.style | ||
124 | sub :: Markup2 | ||
125 | sub = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.sub | ||
126 | sup :: Markup2 | ||
127 | sup = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.sup | ||
128 | table :: Markup2 | ||
129 | table = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.table | ||
130 | tbody :: Markup2 | ||
131 | tbody = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.tbody | ||
132 | td :: Markup2 | ||
133 | td = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.td | ||
134 | textarea :: Markup2 | ||
135 | textarea = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.textarea | ||
136 | tfoot :: Markup2 | ||
137 | tfoot = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.tfoot | ||
138 | th :: Markup2 | ||
139 | th = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.th | ||
140 | thead :: Markup2 | ||
141 | thead = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.thead | ||
142 | title :: Markup2 | ||
143 | title = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.title | ||
144 | tr :: Markup2 | ||
145 | tr = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.tr | ||
146 | tt :: Markup2 | ||
147 | tt = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.tt | ||
148 | ul :: Markup2 | ||
149 | ul = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.ul | ||
150 | var :: Markup2 | ||
151 | var = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.var | ||
152 | applet :: Markup2 | ||
153 | applet = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.applet | ||
154 | center :: Markup2 | ||
155 | center = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.center | ||
156 | dir :: Markup2 | ||
157 | dir = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.dir | ||
158 | font :: Markup2 | ||
159 | font = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.font | ||
160 | iframe :: Markup2 | ||
161 | iframe = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.iframe | ||
162 | isindex :: Markup2 | ||
163 | isindex = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.isindex | ||
164 | menu :: Markup2 | ||
165 | menu = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.menu | ||
166 | noframes :: Markup2 | ||
167 | noframes = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.noframes | ||
168 | s :: Markup2 | ||
169 | s = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.s | ||
170 | u :: Markup2 | ||
171 | u = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.u | ||
172 | frameset :: Markup2 | ||
173 | frameset = wrapMarkup2 Text.Blaze.XHtml1.FrameSet.frameset | ||
174 | docType :: Markup | ||
175 | docType = wrapMarkup Text.Blaze.XHtml1.FrameSet.docType | ||
176 | area :: Markup | ||
177 | area = wrapMarkup Text.Blaze.XHtml1.FrameSet.area | ||
178 | br :: Markup | ||
179 | br = wrapMarkup Text.Blaze.XHtml1.FrameSet.br | ||
180 | col :: Markup | ||
181 | col = wrapMarkup Text.Blaze.XHtml1.FrameSet.col | ||
182 | hr :: Markup | ||
183 | hr = wrapMarkup Text.Blaze.XHtml1.FrameSet.hr | ||
184 | link :: Markup | ||
185 | link = wrapMarkup Text.Blaze.XHtml1.FrameSet.link | ||
186 | img :: Markup | ||
187 | img = wrapMarkup Text.Blaze.XHtml1.FrameSet.img | ||
188 | input :: Markup | ||
189 | input = wrapMarkup Text.Blaze.XHtml1.FrameSet.input | ||
190 | meta :: Markup | ||
191 | meta = wrapMarkup Text.Blaze.XHtml1.FrameSet.meta | ||
192 | param :: Markup | ||
193 | param = wrapMarkup Text.Blaze.XHtml1.FrameSet.param | ||
194 | basefont :: Markup | ||
195 | basefont = wrapMarkup Text.Blaze.XHtml1.FrameSet.basefont | ||
196 | frame :: Markup | ||
197 | frame = wrapMarkup Text.Blaze.XHtml1.FrameSet.frame | ||
198 | |||
diff --git a/src/Text/BlazeT/XHtml1/FrameSet/Attributes.hs b/src/Text/BlazeT/XHtml1/FrameSet/Attributes.hs new file mode 100644 index 0000000..af4ecbe --- /dev/null +++ b/src/Text/BlazeT/XHtml1/FrameSet/Attributes.hs | |||
@@ -0,0 +1,11 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module simply reexports the corresponding @blaze-html@ module. | ||
6 | -} | ||
7 | module Text.BlazeT.XHtml1.FrameSet.Attributes | ||
8 | (module Text.Blaze.XHtml1.FrameSet.Attributes | ||
9 | ) where | ||
10 | import Text.Blaze.XHtml1.FrameSet.Attributes | ||
11 | |||
diff --git a/src/Text/BlazeT/XHtml1/Strict.hs b/src/Text/BlazeT/XHtml1/Strict.hs new file mode 100644 index 0000000..0bca241 --- /dev/null +++ b/src/Text/BlazeT/XHtml1/Strict.hs | |||
@@ -0,0 +1,172 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module wraps all exports of "Text.Blaze.XHtml1.Strict" using 'wrapMarkup' and 'wrapMarkup'. | ||
6 | -} | ||
7 | module Text.BlazeT.XHtml1.Strict | ||
8 | (module Text.BlazeT.XHtml1.Strict | ||
9 | ,module Text.BlazeT.Html | ||
10 | ) where | ||
11 | import qualified Text.Blaze.XHtml1.Strict | ||
12 | import Text.BlazeT | ||
13 | import Text.BlazeT.Html | ||
14 | import Text.BlazeT.Internal | ||
15 | |||
16 | docTypeHtml :: Markup2 | ||
17 | docTypeHtml = wrapMarkup2 Text.Blaze.XHtml1.Strict.docTypeHtml | ||
18 | a :: Markup2 | ||
19 | a = wrapMarkup2 Text.Blaze.XHtml1.Strict.a | ||
20 | abbr :: Markup2 | ||
21 | abbr = wrapMarkup2 Text.Blaze.XHtml1.Strict.abbr | ||
22 | acronym :: Markup2 | ||
23 | acronym = wrapMarkup2 Text.Blaze.XHtml1.Strict.acronym | ||
24 | address :: Markup2 | ||
25 | address = wrapMarkup2 Text.Blaze.XHtml1.Strict.address | ||
26 | b :: Markup2 | ||
27 | b = wrapMarkup2 Text.Blaze.XHtml1.Strict.b | ||
28 | bdo :: Markup2 | ||
29 | bdo = wrapMarkup2 Text.Blaze.XHtml1.Strict.bdo | ||
30 | big :: Markup2 | ||
31 | big = wrapMarkup2 Text.Blaze.XHtml1.Strict.big | ||
32 | blockquote :: Markup2 | ||
33 | blockquote = wrapMarkup2 Text.Blaze.XHtml1.Strict.blockquote | ||
34 | body :: Markup2 | ||
35 | body = wrapMarkup2 Text.Blaze.XHtml1.Strict.body | ||
36 | button :: Markup2 | ||
37 | button = wrapMarkup2 Text.Blaze.XHtml1.Strict.button | ||
38 | caption :: Markup2 | ||
39 | caption = wrapMarkup2 Text.Blaze.XHtml1.Strict.caption | ||
40 | cite :: Markup2 | ||
41 | cite = wrapMarkup2 Text.Blaze.XHtml1.Strict.cite | ||
42 | code :: Markup2 | ||
43 | code = wrapMarkup2 Text.Blaze.XHtml1.Strict.code | ||
44 | colgroup :: Markup2 | ||
45 | colgroup = wrapMarkup2 Text.Blaze.XHtml1.Strict.colgroup | ||
46 | dd :: Markup2 | ||
47 | dd = wrapMarkup2 Text.Blaze.XHtml1.Strict.dd | ||
48 | del :: Markup2 | ||
49 | del = wrapMarkup2 Text.Blaze.XHtml1.Strict.del | ||
50 | dfn :: Markup2 | ||
51 | dfn = wrapMarkup2 Text.Blaze.XHtml1.Strict.dfn | ||
52 | div :: Markup2 | ||
53 | div = wrapMarkup2 Text.Blaze.XHtml1.Strict.div | ||
54 | dl :: Markup2 | ||
55 | dl = wrapMarkup2 Text.Blaze.XHtml1.Strict.dl | ||
56 | dt :: Markup2 | ||
57 | dt = wrapMarkup2 Text.Blaze.XHtml1.Strict.dt | ||
58 | em :: Markup2 | ||
59 | em = wrapMarkup2 Text.Blaze.XHtml1.Strict.em | ||
60 | fieldset :: Markup2 | ||
61 | fieldset = wrapMarkup2 Text.Blaze.XHtml1.Strict.fieldset | ||
62 | form :: Markup2 | ||
63 | form = wrapMarkup2 Text.Blaze.XHtml1.Strict.form | ||
64 | h1 :: Markup2 | ||
65 | h1 = wrapMarkup2 Text.Blaze.XHtml1.Strict.h1 | ||
66 | h2 :: Markup2 | ||
67 | h2 = wrapMarkup2 Text.Blaze.XHtml1.Strict.h2 | ||
68 | h3 :: Markup2 | ||
69 | h3 = wrapMarkup2 Text.Blaze.XHtml1.Strict.h3 | ||
70 | h4 :: Markup2 | ||
71 | h4 = wrapMarkup2 Text.Blaze.XHtml1.Strict.h4 | ||
72 | h5 :: Markup2 | ||
73 | h5 = wrapMarkup2 Text.Blaze.XHtml1.Strict.h5 | ||
74 | h6 :: Markup2 | ||
75 | h6 = wrapMarkup2 Text.Blaze.XHtml1.Strict.h6 | ||
76 | head :: Markup2 | ||
77 | head = wrapMarkup2 Text.Blaze.XHtml1.Strict.head | ||
78 | html :: Markup2 | ||
79 | html = wrapMarkup2 Text.Blaze.XHtml1.Strict.html | ||
80 | i :: Markup2 | ||
81 | i = wrapMarkup2 Text.Blaze.XHtml1.Strict.i | ||
82 | ins :: Markup2 | ||
83 | ins = wrapMarkup2 Text.Blaze.XHtml1.Strict.ins | ||
84 | kbd :: Markup2 | ||
85 | kbd = wrapMarkup2 Text.Blaze.XHtml1.Strict.kbd | ||
86 | label :: Markup2 | ||
87 | label = wrapMarkup2 Text.Blaze.XHtml1.Strict.label | ||
88 | legend :: Markup2 | ||
89 | legend = wrapMarkup2 Text.Blaze.XHtml1.Strict.legend | ||
90 | li :: Markup2 | ||
91 | li = wrapMarkup2 Text.Blaze.XHtml1.Strict.li | ||
92 | map :: Markup2 | ||
93 | map = wrapMarkup2 Text.Blaze.XHtml1.Strict.map | ||
94 | noscript :: Markup2 | ||
95 | noscript = wrapMarkup2 Text.Blaze.XHtml1.Strict.noscript | ||
96 | object :: Markup2 | ||
97 | object = wrapMarkup2 Text.Blaze.XHtml1.Strict.object | ||
98 | ol :: Markup2 | ||
99 | ol = wrapMarkup2 Text.Blaze.XHtml1.Strict.ol | ||
100 | optgroup :: Markup2 | ||
101 | optgroup = wrapMarkup2 Text.Blaze.XHtml1.Strict.optgroup | ||
102 | option :: Markup2 | ||
103 | option = wrapMarkup2 Text.Blaze.XHtml1.Strict.option | ||
104 | p :: Markup2 | ||
105 | p = wrapMarkup2 Text.Blaze.XHtml1.Strict.p | ||
106 | pre :: Markup2 | ||
107 | pre = wrapMarkup2 Text.Blaze.XHtml1.Strict.pre | ||
108 | q :: Markup2 | ||
109 | q = wrapMarkup2 Text.Blaze.XHtml1.Strict.q | ||
110 | samp :: Markup2 | ||
111 | samp = wrapMarkup2 Text.Blaze.XHtml1.Strict.samp | ||
112 | script :: Markup2 | ||
113 | script = wrapMarkup2 Text.Blaze.XHtml1.Strict.script | ||
114 | select :: Markup2 | ||
115 | select = wrapMarkup2 Text.Blaze.XHtml1.Strict.select | ||
116 | small :: Markup2 | ||
117 | small = wrapMarkup2 Text.Blaze.XHtml1.Strict.small | ||
118 | span :: Markup2 | ||
119 | span = wrapMarkup2 Text.Blaze.XHtml1.Strict.span | ||
120 | strong :: Markup2 | ||
121 | strong = wrapMarkup2 Text.Blaze.XHtml1.Strict.strong | ||
122 | style :: Markup2 | ||
123 | style = wrapMarkup2 Text.Blaze.XHtml1.Strict.style | ||
124 | sub :: Markup2 | ||
125 | sub = wrapMarkup2 Text.Blaze.XHtml1.Strict.sub | ||
126 | sup :: Markup2 | ||
127 | sup = wrapMarkup2 Text.Blaze.XHtml1.Strict.sup | ||
128 | table :: Markup2 | ||
129 | table = wrapMarkup2 Text.Blaze.XHtml1.Strict.table | ||
130 | tbody :: Markup2 | ||
131 | tbody = wrapMarkup2 Text.Blaze.XHtml1.Strict.tbody | ||
132 | td :: Markup2 | ||
133 | td = wrapMarkup2 Text.Blaze.XHtml1.Strict.td | ||
134 | textarea :: Markup2 | ||
135 | textarea = wrapMarkup2 Text.Blaze.XHtml1.Strict.textarea | ||
136 | tfoot :: Markup2 | ||
137 | tfoot = wrapMarkup2 Text.Blaze.XHtml1.Strict.tfoot | ||
138 | th :: Markup2 | ||
139 | th = wrapMarkup2 Text.Blaze.XHtml1.Strict.th | ||
140 | thead :: Markup2 | ||
141 | thead = wrapMarkup2 Text.Blaze.XHtml1.Strict.thead | ||
142 | title :: Markup2 | ||
143 | title = wrapMarkup2 Text.Blaze.XHtml1.Strict.title | ||
144 | tr :: Markup2 | ||
145 | tr = wrapMarkup2 Text.Blaze.XHtml1.Strict.tr | ||
146 | tt :: Markup2 | ||
147 | tt = wrapMarkup2 Text.Blaze.XHtml1.Strict.tt | ||
148 | ul :: Markup2 | ||
149 | ul = wrapMarkup2 Text.Blaze.XHtml1.Strict.ul | ||
150 | var :: Markup2 | ||
151 | var = wrapMarkup2 Text.Blaze.XHtml1.Strict.var | ||
152 | docType :: Markup | ||
153 | docType = wrapMarkup Text.Blaze.XHtml1.Strict.docType | ||
154 | area :: Markup | ||
155 | area = wrapMarkup Text.Blaze.XHtml1.Strict.area | ||
156 | br :: Markup | ||
157 | br = wrapMarkup Text.Blaze.XHtml1.Strict.br | ||
158 | col :: Markup | ||
159 | col = wrapMarkup Text.Blaze.XHtml1.Strict.col | ||
160 | hr :: Markup | ||
161 | hr = wrapMarkup Text.Blaze.XHtml1.Strict.hr | ||
162 | link :: Markup | ||
163 | link = wrapMarkup Text.Blaze.XHtml1.Strict.link | ||
164 | img :: Markup | ||
165 | img = wrapMarkup Text.Blaze.XHtml1.Strict.img | ||
166 | input :: Markup | ||
167 | input = wrapMarkup Text.Blaze.XHtml1.Strict.input | ||
168 | meta :: Markup | ||
169 | meta = wrapMarkup Text.Blaze.XHtml1.Strict.meta | ||
170 | param :: Markup | ||
171 | param = wrapMarkup Text.Blaze.XHtml1.Strict.param | ||
172 | |||
diff --git a/src/Text/BlazeT/XHtml1/Strict/Attributes.hs b/src/Text/BlazeT/XHtml1/Strict/Attributes.hs new file mode 100644 index 0000000..c7e07d4 --- /dev/null +++ b/src/Text/BlazeT/XHtml1/Strict/Attributes.hs | |||
@@ -0,0 +1,11 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module simply reexports the corresponding @blaze-html@ module. | ||
6 | -} | ||
7 | module Text.BlazeT.XHtml1.Strict.Attributes | ||
8 | (module Text.Blaze.XHtml1.Strict.Attributes | ||
9 | ) where | ||
10 | import Text.Blaze.XHtml1.Strict.Attributes | ||
11 | |||
diff --git a/src/Text/BlazeT/XHtml1/Transitional.hs b/src/Text/BlazeT/XHtml1/Transitional.hs new file mode 100644 index 0000000..b1e6aad --- /dev/null +++ b/src/Text/BlazeT/XHtml1/Transitional.hs | |||
@@ -0,0 +1,194 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module wraps all exports of "Text.Blaze.XHtml1.Transitional" using 'wrapMarkup' and 'wrapMarkup'. | ||
6 | -} | ||
7 | module Text.BlazeT.XHtml1.Transitional | ||
8 | (module Text.BlazeT.XHtml1.Transitional | ||
9 | ,module Text.BlazeT.Html | ||
10 | ) where | ||
11 | import qualified Text.Blaze.XHtml1.Transitional | ||
12 | import Text.BlazeT | ||
13 | import Text.BlazeT.Html | ||
14 | import Text.BlazeT.Internal | ||
15 | |||
16 | docTypeHtml :: Markup2 | ||
17 | docTypeHtml = wrapMarkup2 Text.Blaze.XHtml1.Transitional.docTypeHtml | ||
18 | a :: Markup2 | ||
19 | a = wrapMarkup2 Text.Blaze.XHtml1.Transitional.a | ||
20 | abbr :: Markup2 | ||
21 | abbr = wrapMarkup2 Text.Blaze.XHtml1.Transitional.abbr | ||
22 | acronym :: Markup2 | ||
23 | acronym = wrapMarkup2 Text.Blaze.XHtml1.Transitional.acronym | ||
24 | address :: Markup2 | ||
25 | address = wrapMarkup2 Text.Blaze.XHtml1.Transitional.address | ||
26 | b :: Markup2 | ||
27 | b = wrapMarkup2 Text.Blaze.XHtml1.Transitional.b | ||
28 | bdo :: Markup2 | ||
29 | bdo = wrapMarkup2 Text.Blaze.XHtml1.Transitional.bdo | ||
30 | big :: Markup2 | ||
31 | big = wrapMarkup2 Text.Blaze.XHtml1.Transitional.big | ||
32 | blockquote :: Markup2 | ||
33 | blockquote = wrapMarkup2 Text.Blaze.XHtml1.Transitional.blockquote | ||
34 | body :: Markup2 | ||
35 | body = wrapMarkup2 Text.Blaze.XHtml1.Transitional.body | ||
36 | button :: Markup2 | ||
37 | button = wrapMarkup2 Text.Blaze.XHtml1.Transitional.button | ||
38 | caption :: Markup2 | ||
39 | caption = wrapMarkup2 Text.Blaze.XHtml1.Transitional.caption | ||
40 | cite :: Markup2 | ||
41 | cite = wrapMarkup2 Text.Blaze.XHtml1.Transitional.cite | ||
42 | code :: Markup2 | ||
43 | code = wrapMarkup2 Text.Blaze.XHtml1.Transitional.code | ||
44 | colgroup :: Markup2 | ||
45 | colgroup = wrapMarkup2 Text.Blaze.XHtml1.Transitional.colgroup | ||
46 | dd :: Markup2 | ||
47 | dd = wrapMarkup2 Text.Blaze.XHtml1.Transitional.dd | ||
48 | del :: Markup2 | ||
49 | del = wrapMarkup2 Text.Blaze.XHtml1.Transitional.del | ||
50 | dfn :: Markup2 | ||
51 | dfn = wrapMarkup2 Text.Blaze.XHtml1.Transitional.dfn | ||
52 | div :: Markup2 | ||
53 | div = wrapMarkup2 Text.Blaze.XHtml1.Transitional.div | ||
54 | dl :: Markup2 | ||
55 | dl = wrapMarkup2 Text.Blaze.XHtml1.Transitional.dl | ||
56 | dt :: Markup2 | ||
57 | dt = wrapMarkup2 Text.Blaze.XHtml1.Transitional.dt | ||
58 | em :: Markup2 | ||
59 | em = wrapMarkup2 Text.Blaze.XHtml1.Transitional.em | ||
60 | fieldset :: Markup2 | ||
61 | fieldset = wrapMarkup2 Text.Blaze.XHtml1.Transitional.fieldset | ||
62 | form :: Markup2 | ||
63 | form = wrapMarkup2 Text.Blaze.XHtml1.Transitional.form | ||
64 | h1 :: Markup2 | ||
65 | h1 = wrapMarkup2 Text.Blaze.XHtml1.Transitional.h1 | ||
66 | h2 :: Markup2 | ||
67 | h2 = wrapMarkup2 Text.Blaze.XHtml1.Transitional.h2 | ||
68 | h3 :: Markup2 | ||
69 | h3 = wrapMarkup2 Text.Blaze.XHtml1.Transitional.h3 | ||
70 | h4 :: Markup2 | ||
71 | h4 = wrapMarkup2 Text.Blaze.XHtml1.Transitional.h4 | ||
72 | h5 :: Markup2 | ||
73 | h5 = wrapMarkup2 Text.Blaze.XHtml1.Transitional.h5 | ||
74 | h6 :: Markup2 | ||
75 | h6 = wrapMarkup2 Text.Blaze.XHtml1.Transitional.h6 | ||
76 | head :: Markup2 | ||
77 | head = wrapMarkup2 Text.Blaze.XHtml1.Transitional.head | ||
78 | html :: Markup2 | ||
79 | html = wrapMarkup2 Text.Blaze.XHtml1.Transitional.html | ||
80 | i :: Markup2 | ||
81 | i = wrapMarkup2 Text.Blaze.XHtml1.Transitional.i | ||
82 | ins :: Markup2 | ||
83 | ins = wrapMarkup2 Text.Blaze.XHtml1.Transitional.ins | ||
84 | kbd :: Markup2 | ||
85 | kbd = wrapMarkup2 Text.Blaze.XHtml1.Transitional.kbd | ||
86 | label :: Markup2 | ||
87 | label = wrapMarkup2 Text.Blaze.XHtml1.Transitional.label | ||
88 | legend :: Markup2 | ||
89 | legend = wrapMarkup2 Text.Blaze.XHtml1.Transitional.legend | ||
90 | li :: Markup2 | ||
91 | li = wrapMarkup2 Text.Blaze.XHtml1.Transitional.li | ||
92 | map :: Markup2 | ||
93 | map = wrapMarkup2 Text.Blaze.XHtml1.Transitional.map | ||
94 | noscript :: Markup2 | ||
95 | noscript = wrapMarkup2 Text.Blaze.XHtml1.Transitional.noscript | ||
96 | object :: Markup2 | ||
97 | object = wrapMarkup2 Text.Blaze.XHtml1.Transitional.object | ||
98 | ol :: Markup2 | ||
99 | ol = wrapMarkup2 Text.Blaze.XHtml1.Transitional.ol | ||
100 | optgroup :: Markup2 | ||
101 | optgroup = wrapMarkup2 Text.Blaze.XHtml1.Transitional.optgroup | ||
102 | option :: Markup2 | ||
103 | option = wrapMarkup2 Text.Blaze.XHtml1.Transitional.option | ||
104 | p :: Markup2 | ||
105 | p = wrapMarkup2 Text.Blaze.XHtml1.Transitional.p | ||
106 | pre :: Markup2 | ||
107 | pre = wrapMarkup2 Text.Blaze.XHtml1.Transitional.pre | ||
108 | q :: Markup2 | ||
109 | q = wrapMarkup2 Text.Blaze.XHtml1.Transitional.q | ||
110 | samp :: Markup2 | ||
111 | samp = wrapMarkup2 Text.Blaze.XHtml1.Transitional.samp | ||
112 | script :: Markup2 | ||
113 | script = wrapMarkup2 Text.Blaze.XHtml1.Transitional.script | ||
114 | select :: Markup2 | ||
115 | select = wrapMarkup2 Text.Blaze.XHtml1.Transitional.select | ||
116 | small :: Markup2 | ||
117 | small = wrapMarkup2 Text.Blaze.XHtml1.Transitional.small | ||
118 | span :: Markup2 | ||
119 | span = wrapMarkup2 Text.Blaze.XHtml1.Transitional.span | ||
120 | strong :: Markup2 | ||
121 | strong = wrapMarkup2 Text.Blaze.XHtml1.Transitional.strong | ||
122 | style :: Markup2 | ||
123 | style = wrapMarkup2 Text.Blaze.XHtml1.Transitional.style | ||
124 | sub :: Markup2 | ||
125 | sub = wrapMarkup2 Text.Blaze.XHtml1.Transitional.sub | ||
126 | sup :: Markup2 | ||
127 | sup = wrapMarkup2 Text.Blaze.XHtml1.Transitional.sup | ||
128 | table :: Markup2 | ||
129 | table = wrapMarkup2 Text.Blaze.XHtml1.Transitional.table | ||
130 | tbody :: Markup2 | ||
131 | tbody = wrapMarkup2 Text.Blaze.XHtml1.Transitional.tbody | ||
132 | td :: Markup2 | ||
133 | td = wrapMarkup2 Text.Blaze.XHtml1.Transitional.td | ||
134 | textarea :: Markup2 | ||
135 | textarea = wrapMarkup2 Text.Blaze.XHtml1.Transitional.textarea | ||
136 | tfoot :: Markup2 | ||
137 | tfoot = wrapMarkup2 Text.Blaze.XHtml1.Transitional.tfoot | ||
138 | th :: Markup2 | ||
139 | th = wrapMarkup2 Text.Blaze.XHtml1.Transitional.th | ||
140 | thead :: Markup2 | ||
141 | thead = wrapMarkup2 Text.Blaze.XHtml1.Transitional.thead | ||
142 | title :: Markup2 | ||
143 | title = wrapMarkup2 Text.Blaze.XHtml1.Transitional.title | ||
144 | tr :: Markup2 | ||
145 | tr = wrapMarkup2 Text.Blaze.XHtml1.Transitional.tr | ||
146 | tt :: Markup2 | ||
147 | tt = wrapMarkup2 Text.Blaze.XHtml1.Transitional.tt | ||
148 | ul :: Markup2 | ||
149 | ul = wrapMarkup2 Text.Blaze.XHtml1.Transitional.ul | ||
150 | var :: Markup2 | ||
151 | var = wrapMarkup2 Text.Blaze.XHtml1.Transitional.var | ||
152 | applet :: Markup2 | ||
153 | applet = wrapMarkup2 Text.Blaze.XHtml1.Transitional.applet | ||
154 | center :: Markup2 | ||
155 | center = wrapMarkup2 Text.Blaze.XHtml1.Transitional.center | ||
156 | dir :: Markup2 | ||
157 | dir = wrapMarkup2 Text.Blaze.XHtml1.Transitional.dir | ||
158 | font :: Markup2 | ||
159 | font = wrapMarkup2 Text.Blaze.XHtml1.Transitional.font | ||
160 | iframe :: Markup2 | ||
161 | iframe = wrapMarkup2 Text.Blaze.XHtml1.Transitional.iframe | ||
162 | isindex :: Markup2 | ||
163 | isindex = wrapMarkup2 Text.Blaze.XHtml1.Transitional.isindex | ||
164 | menu :: Markup2 | ||
165 | menu = wrapMarkup2 Text.Blaze.XHtml1.Transitional.menu | ||
166 | noframes :: Markup2 | ||
167 | noframes = wrapMarkup2 Text.Blaze.XHtml1.Transitional.noframes | ||
168 | s :: Markup2 | ||
169 | s = wrapMarkup2 Text.Blaze.XHtml1.Transitional.s | ||
170 | u :: Markup2 | ||
171 | u = wrapMarkup2 Text.Blaze.XHtml1.Transitional.u | ||
172 | docType :: Markup | ||
173 | docType = wrapMarkup Text.Blaze.XHtml1.Transitional.docType | ||
174 | area :: Markup | ||
175 | area = wrapMarkup Text.Blaze.XHtml1.Transitional.area | ||
176 | br :: Markup | ||
177 | br = wrapMarkup Text.Blaze.XHtml1.Transitional.br | ||
178 | col :: Markup | ||
179 | col = wrapMarkup Text.Blaze.XHtml1.Transitional.col | ||
180 | hr :: Markup | ||
181 | hr = wrapMarkup Text.Blaze.XHtml1.Transitional.hr | ||
182 | link :: Markup | ||
183 | link = wrapMarkup Text.Blaze.XHtml1.Transitional.link | ||
184 | img :: Markup | ||
185 | img = wrapMarkup Text.Blaze.XHtml1.Transitional.img | ||
186 | input :: Markup | ||
187 | input = wrapMarkup Text.Blaze.XHtml1.Transitional.input | ||
188 | meta :: Markup | ||
189 | meta = wrapMarkup Text.Blaze.XHtml1.Transitional.meta | ||
190 | param :: Markup | ||
191 | param = wrapMarkup Text.Blaze.XHtml1.Transitional.param | ||
192 | basefont :: Markup | ||
193 | basefont = wrapMarkup Text.Blaze.XHtml1.Transitional.basefont | ||
194 | |||
diff --git a/src/Text/BlazeT/XHtml1/Transitional/Attributes.hs b/src/Text/BlazeT/XHtml1/Transitional/Attributes.hs new file mode 100644 index 0000000..1881806 --- /dev/null +++ b/src/Text/BlazeT/XHtml1/Transitional/Attributes.hs | |||
@@ -0,0 +1,11 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module simply reexports the corresponding @blaze-html@ module. | ||
6 | -} | ||
7 | module Text.BlazeT.XHtml1.Transitional.Attributes | ||
8 | (module Text.Blaze.XHtml1.Transitional.Attributes | ||
9 | ) where | ||
10 | import Text.Blaze.XHtml1.Transitional.Attributes | ||
11 | |||
diff --git a/src/Text/BlazeT/XHtml5.hs b/src/Text/BlazeT/XHtml5.hs new file mode 100644 index 0000000..102a993 --- /dev/null +++ b/src/Text/BlazeT/XHtml5.hs | |||
@@ -0,0 +1,234 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module wraps all exports of "Text.Blaze.XHtml5" using 'wrapMarkup' and 'wrapMarkup'. | ||
6 | -} | ||
7 | module Text.BlazeT.XHtml5 | ||
8 | (module Text.BlazeT.XHtml5 | ||
9 | ,module Text.BlazeT.Html | ||
10 | ) where | ||
11 | import qualified Text.Blaze.XHtml5 | ||
12 | import Text.BlazeT | ||
13 | import Text.BlazeT.Html | ||
14 | import Text.BlazeT.Internal | ||
15 | |||
16 | docTypeHtml :: Markup2 | ||
17 | docTypeHtml = wrapMarkup2 Text.Blaze.XHtml5.docTypeHtml | ||
18 | a :: Markup2 | ||
19 | a = wrapMarkup2 Text.Blaze.XHtml5.a | ||
20 | abbr :: Markup2 | ||
21 | abbr = wrapMarkup2 Text.Blaze.XHtml5.abbr | ||
22 | address :: Markup2 | ||
23 | address = wrapMarkup2 Text.Blaze.XHtml5.address | ||
24 | article :: Markup2 | ||
25 | article = wrapMarkup2 Text.Blaze.XHtml5.article | ||
26 | aside :: Markup2 | ||
27 | aside = wrapMarkup2 Text.Blaze.XHtml5.aside | ||
28 | audio :: Markup2 | ||
29 | audio = wrapMarkup2 Text.Blaze.XHtml5.audio | ||
30 | b :: Markup2 | ||
31 | b = wrapMarkup2 Text.Blaze.XHtml5.b | ||
32 | bdo :: Markup2 | ||
33 | bdo = wrapMarkup2 Text.Blaze.XHtml5.bdo | ||
34 | blockquote :: Markup2 | ||
35 | blockquote = wrapMarkup2 Text.Blaze.XHtml5.blockquote | ||
36 | body :: Markup2 | ||
37 | body = wrapMarkup2 Text.Blaze.XHtml5.body | ||
38 | button :: Markup2 | ||
39 | button = wrapMarkup2 Text.Blaze.XHtml5.button | ||
40 | canvas :: Markup2 | ||
41 | canvas = wrapMarkup2 Text.Blaze.XHtml5.canvas | ||
42 | caption :: Markup2 | ||
43 | caption = wrapMarkup2 Text.Blaze.XHtml5.caption | ||
44 | cite :: Markup2 | ||
45 | cite = wrapMarkup2 Text.Blaze.XHtml5.cite | ||
46 | code :: Markup2 | ||
47 | code = wrapMarkup2 Text.Blaze.XHtml5.code | ||
48 | colgroup :: Markup2 | ||
49 | colgroup = wrapMarkup2 Text.Blaze.XHtml5.colgroup | ||
50 | command :: Markup2 | ||
51 | command = wrapMarkup2 Text.Blaze.XHtml5.command | ||
52 | datalist :: Markup2 | ||
53 | datalist = wrapMarkup2 Text.Blaze.XHtml5.datalist | ||
54 | dd :: Markup2 | ||
55 | dd = wrapMarkup2 Text.Blaze.XHtml5.dd | ||
56 | del :: Markup2 | ||
57 | del = wrapMarkup2 Text.Blaze.XHtml5.del | ||
58 | details :: Markup2 | ||
59 | details = wrapMarkup2 Text.Blaze.XHtml5.details | ||
60 | dfn :: Markup2 | ||
61 | dfn = wrapMarkup2 Text.Blaze.XHtml5.dfn | ||
62 | div :: Markup2 | ||
63 | div = wrapMarkup2 Text.Blaze.XHtml5.div | ||
64 | dl :: Markup2 | ||
65 | dl = wrapMarkup2 Text.Blaze.XHtml5.dl | ||
66 | dt :: Markup2 | ||
67 | dt = wrapMarkup2 Text.Blaze.XHtml5.dt | ||
68 | em :: Markup2 | ||
69 | em = wrapMarkup2 Text.Blaze.XHtml5.em | ||
70 | fieldset :: Markup2 | ||
71 | fieldset = wrapMarkup2 Text.Blaze.XHtml5.fieldset | ||
72 | figcaption :: Markup2 | ||
73 | figcaption = wrapMarkup2 Text.Blaze.XHtml5.figcaption | ||
74 | figure :: Markup2 | ||
75 | figure = wrapMarkup2 Text.Blaze.XHtml5.figure | ||
76 | footer :: Markup2 | ||
77 | footer = wrapMarkup2 Text.Blaze.XHtml5.footer | ||
78 | form :: Markup2 | ||
79 | form = wrapMarkup2 Text.Blaze.XHtml5.form | ||
80 | h1 :: Markup2 | ||
81 | h1 = wrapMarkup2 Text.Blaze.XHtml5.h1 | ||
82 | h2 :: Markup2 | ||
83 | h2 = wrapMarkup2 Text.Blaze.XHtml5.h2 | ||
84 | h3 :: Markup2 | ||
85 | h3 = wrapMarkup2 Text.Blaze.XHtml5.h3 | ||
86 | h4 :: Markup2 | ||
87 | h4 = wrapMarkup2 Text.Blaze.XHtml5.h4 | ||
88 | h5 :: Markup2 | ||
89 | h5 = wrapMarkup2 Text.Blaze.XHtml5.h5 | ||
90 | h6 :: Markup2 | ||
91 | h6 = wrapMarkup2 Text.Blaze.XHtml5.h6 | ||
92 | head :: Markup2 | ||
93 | head = wrapMarkup2 Text.Blaze.XHtml5.head | ||
94 | header :: Markup2 | ||
95 | header = wrapMarkup2 Text.Blaze.XHtml5.header | ||
96 | hgroup :: Markup2 | ||
97 | hgroup = wrapMarkup2 Text.Blaze.XHtml5.hgroup | ||
98 | html :: Markup2 | ||
99 | html = wrapMarkup2 Text.Blaze.XHtml5.html | ||
100 | i :: Markup2 | ||
101 | i = wrapMarkup2 Text.Blaze.XHtml5.i | ||
102 | iframe :: Markup2 | ||
103 | iframe = wrapMarkup2 Text.Blaze.XHtml5.iframe | ||
104 | ins :: Markup2 | ||
105 | ins = wrapMarkup2 Text.Blaze.XHtml5.ins | ||
106 | kbd :: Markup2 | ||
107 | kbd = wrapMarkup2 Text.Blaze.XHtml5.kbd | ||
108 | label :: Markup2 | ||
109 | label = wrapMarkup2 Text.Blaze.XHtml5.label | ||
110 | legend :: Markup2 | ||
111 | legend = wrapMarkup2 Text.Blaze.XHtml5.legend | ||
112 | li :: Markup2 | ||
113 | li = wrapMarkup2 Text.Blaze.XHtml5.li | ||
114 | main :: Markup2 | ||
115 | main = wrapMarkup2 Text.Blaze.XHtml5.main | ||
116 | map :: Markup2 | ||
117 | map = wrapMarkup2 Text.Blaze.XHtml5.map | ||
118 | mark :: Markup2 | ||
119 | mark = wrapMarkup2 Text.Blaze.XHtml5.mark | ||
120 | menu :: Markup2 | ||
121 | menu = wrapMarkup2 Text.Blaze.XHtml5.menu | ||
122 | meter :: Markup2 | ||
123 | meter = wrapMarkup2 Text.Blaze.XHtml5.meter | ||
124 | nav :: Markup2 | ||
125 | nav = wrapMarkup2 Text.Blaze.XHtml5.nav | ||
126 | noscript :: Markup2 | ||
127 | noscript = wrapMarkup2 Text.Blaze.XHtml5.noscript | ||
128 | object :: Markup2 | ||
129 | object = wrapMarkup2 Text.Blaze.XHtml5.object | ||
130 | ol :: Markup2 | ||
131 | ol = wrapMarkup2 Text.Blaze.XHtml5.ol | ||
132 | optgroup :: Markup2 | ||
133 | optgroup = wrapMarkup2 Text.Blaze.XHtml5.optgroup | ||
134 | option :: Markup2 | ||
135 | option = wrapMarkup2 Text.Blaze.XHtml5.option | ||
136 | output :: Markup2 | ||
137 | output = wrapMarkup2 Text.Blaze.XHtml5.output | ||
138 | p :: Markup2 | ||
139 | p = wrapMarkup2 Text.Blaze.XHtml5.p | ||
140 | pre :: Markup2 | ||
141 | pre = wrapMarkup2 Text.Blaze.XHtml5.pre | ||
142 | progress :: Markup2 | ||
143 | progress = wrapMarkup2 Text.Blaze.XHtml5.progress | ||
144 | q :: Markup2 | ||
145 | q = wrapMarkup2 Text.Blaze.XHtml5.q | ||
146 | rp :: Markup2 | ||
147 | rp = wrapMarkup2 Text.Blaze.XHtml5.rp | ||
148 | rt :: Markup2 | ||
149 | rt = wrapMarkup2 Text.Blaze.XHtml5.rt | ||
150 | ruby :: Markup2 | ||
151 | ruby = wrapMarkup2 Text.Blaze.XHtml5.ruby | ||
152 | samp :: Markup2 | ||
153 | samp = wrapMarkup2 Text.Blaze.XHtml5.samp | ||
154 | script :: Markup2 | ||
155 | script = wrapMarkup2 Text.Blaze.XHtml5.script | ||
156 | section :: Markup2 | ||
157 | section = wrapMarkup2 Text.Blaze.XHtml5.section | ||
158 | select :: Markup2 | ||
159 | select = wrapMarkup2 Text.Blaze.XHtml5.select | ||
160 | small :: Markup2 | ||
161 | small = wrapMarkup2 Text.Blaze.XHtml5.small | ||
162 | span :: Markup2 | ||
163 | span = wrapMarkup2 Text.Blaze.XHtml5.span | ||
164 | strong :: Markup2 | ||
165 | strong = wrapMarkup2 Text.Blaze.XHtml5.strong | ||
166 | style :: Markup2 | ||
167 | style = wrapMarkup2 Text.Blaze.XHtml5.style | ||
168 | sub :: Markup2 | ||
169 | sub = wrapMarkup2 Text.Blaze.XHtml5.sub | ||
170 | summary :: Markup2 | ||
171 | summary = wrapMarkup2 Text.Blaze.XHtml5.summary | ||
172 | sup :: Markup2 | ||
173 | sup = wrapMarkup2 Text.Blaze.XHtml5.sup | ||
174 | table :: Markup2 | ||
175 | table = wrapMarkup2 Text.Blaze.XHtml5.table | ||
176 | tbody :: Markup2 | ||
177 | tbody = wrapMarkup2 Text.Blaze.XHtml5.tbody | ||
178 | td :: Markup2 | ||
179 | td = wrapMarkup2 Text.Blaze.XHtml5.td | ||
180 | textarea :: Markup2 | ||
181 | textarea = wrapMarkup2 Text.Blaze.XHtml5.textarea | ||
182 | tfoot :: Markup2 | ||
183 | tfoot = wrapMarkup2 Text.Blaze.XHtml5.tfoot | ||
184 | th :: Markup2 | ||
185 | th = wrapMarkup2 Text.Blaze.XHtml5.th | ||
186 | thead :: Markup2 | ||
187 | thead = wrapMarkup2 Text.Blaze.XHtml5.thead | ||
188 | time :: Markup2 | ||
189 | time = wrapMarkup2 Text.Blaze.XHtml5.time | ||
190 | title :: Markup2 | ||
191 | title = wrapMarkup2 Text.Blaze.XHtml5.title | ||
192 | tr :: Markup2 | ||
193 | tr = wrapMarkup2 Text.Blaze.XHtml5.tr | ||
194 | ul :: Markup2 | ||
195 | ul = wrapMarkup2 Text.Blaze.XHtml5.ul | ||
196 | var :: Markup2 | ||
197 | var = wrapMarkup2 Text.Blaze.XHtml5.var | ||
198 | video :: Markup2 | ||
199 | video = wrapMarkup2 Text.Blaze.XHtml5.video | ||
200 | docType :: Markup | ||
201 | docType = wrapMarkup Text.Blaze.XHtml5.docType | ||
202 | area :: Markup | ||
203 | area = wrapMarkup Text.Blaze.XHtml5.area | ||
204 | base :: Markup | ||
205 | base = wrapMarkup Text.Blaze.XHtml5.base | ||
206 | br :: Markup | ||
207 | br = wrapMarkup Text.Blaze.XHtml5.br | ||
208 | col :: Markup | ||
209 | col = wrapMarkup Text.Blaze.XHtml5.col | ||
210 | embed :: Markup | ||
211 | embed = wrapMarkup Text.Blaze.XHtml5.embed | ||
212 | hr :: Markup | ||
213 | hr = wrapMarkup Text.Blaze.XHtml5.hr | ||
214 | img :: Markup | ||
215 | img = wrapMarkup Text.Blaze.XHtml5.img | ||
216 | input :: Markup | ||
217 | input = wrapMarkup Text.Blaze.XHtml5.input | ||
218 | keygen :: Markup | ||
219 | keygen = wrapMarkup Text.Blaze.XHtml5.keygen | ||
220 | link :: Markup | ||
221 | link = wrapMarkup Text.Blaze.XHtml5.link | ||
222 | menuitem :: Markup | ||
223 | menuitem = wrapMarkup Text.Blaze.XHtml5.menuitem | ||
224 | meta :: Markup | ||
225 | meta = wrapMarkup Text.Blaze.XHtml5.meta | ||
226 | param :: Markup | ||
227 | param = wrapMarkup Text.Blaze.XHtml5.param | ||
228 | source :: Markup | ||
229 | source = wrapMarkup Text.Blaze.XHtml5.source | ||
230 | track :: Markup | ||
231 | track = wrapMarkup Text.Blaze.XHtml5.track | ||
232 | wbr :: Markup | ||
233 | wbr = wrapMarkup Text.Blaze.XHtml5.wbr | ||
234 | |||
diff --git a/src/Text/BlazeT/XHtml5/Attributes.hs b/src/Text/BlazeT/XHtml5/Attributes.hs new file mode 100644 index 0000000..e878108 --- /dev/null +++ b/src/Text/BlazeT/XHtml5/Attributes.hs | |||
@@ -0,0 +1,11 @@ | |||
1 | -- !! DO NOT EDIT | ||
2 | {-| | ||
3 | (Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@) | ||
4 | |||
5 | This module simply reexports the corresponding @blaze-html@ module. | ||
6 | -} | ||
7 | module Text.BlazeT.XHtml5.Attributes | ||
8 | (module Text.Blaze.XHtml5.Attributes | ||
9 | ) where | ||
10 | import Text.Blaze.XHtml5.Attributes | ||
11 | |||