aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Text/BlazeT
diff options
context:
space:
mode:
authorJohannes Gerer <oss@johannesgerer.com>2017-01-15 13:58:31 +0100
committerJohannes Gerer <oss@johannesgerer.com>2017-01-15 13:58:31 +0100
commit4dc7c9b2b700d43e6b8550b218b6c67bdf20f565 (patch)
tree9bc846154146c6456ef6b5d93f3bdb9bea6c3db2 /src/Text/BlazeT
parentbd93b7c0b050dc23b652f918ed3a98ea6b386962 (diff)
downloadblazeT-4dc7c9b2b700d43e6b8550b218b6c67bdf20f565.tar.gz
blazeT-4dc7c9b2b700d43e6b8550b218b6c67bdf20f565.tar.zst
blazeT-4dc7c9b2b700d43e6b8550b218b6c67bdf20f565.zip
added `textComment`HEAD0.0.5master
Diffstat (limited to 'src/Text/BlazeT')
-rw-r--r--src/Text/BlazeT/Internal.hs26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/Text/BlazeT/Internal.hs b/src/Text/BlazeT/Internal.hs
index fcdf944..f6f642a 100644
--- a/src/Text/BlazeT/Internal.hs
+++ b/src/Text/BlazeT/Internal.hs
@@ -63,11 +63,11 @@ module Text.BlazeT.Internal
63 , unsafeLazyByteString 63 , unsafeLazyByteString
64 64
65 -- ** Comments 65 -- ** Comments
66 , Text.Blaze.textComment 66 , textComment
67 , Text.Blaze.lazyTextComment 67 , lazyTextComment
68 , Text.Blaze.stringComment 68 , stringComment
69 , Text.Blaze.unsafeByteStringComment 69 , unsafeByteStringComment
70 , Text.Blaze.unsafeLazyByteStringComment 70 , unsafeLazyByteStringComment
71 71
72 -- ** Converting values to tags. 72 -- ** Converting values to tags.
73 , Text.Blaze.textTag 73 , Text.Blaze.textTag
@@ -273,6 +273,22 @@ lazyText :: LT.Text -> Markup
273lazyText = wrapMarkup . Text.Blaze.lazyText 273lazyText = wrapMarkup . Text.Blaze.lazyText
274{-# INLINE lazyText #-} 274{-# INLINE lazyText #-}
275 275
276
277textComment :: T.Text -> Markup
278textComment = wrapMarkup . Text.Blaze.textComment
279
280lazyTextComment :: LT.Text -> Markup
281lazyTextComment = wrapMarkup . Text.Blaze.lazyTextComment
282
283stringComment :: String -> Markup
284stringComment = wrapMarkup . Text.Blaze.stringComment
285
286unsafeByteStringComment :: BS.ByteString -> Markup
287unsafeByteStringComment = wrapMarkup . Text.Blaze.unsafeByteStringComment
288
289unsafeLazyByteStringComment :: BL.ByteString -> Markup
290unsafeLazyByteStringComment = wrapMarkup . Text.Blaze.unsafeLazyByteStringComment
291
276-- $descr1 292-- $descr1
277-- The following is an adaptation of all "Text.Blaze.Internal" exports to 293-- The following is an adaptation of all "Text.Blaze.Internal" exports to
278-- @blazeT@ types. 294-- @blazeT@ types.