1 {-# LANGUAGE UndecidableInstances #-}
2 {-# LANGUAGE FlexibleInstances #-}
3 {-# LANGUAGE RankNTypes #-}
7 -- * DO NOT READ THIS. READ "Text.BlazeT.Internal" INSTEAD
11 -- -- * Important types.
17 -- -- * Creating attributes.
21 -- -- * Converting values to Markup.
30 , unsafeLazyByteString
36 , unsafeByteStringComment
37 , unsafeLazyByteStringComment
39 -- -- * Creating tags.
43 -- -- * Converting values to attribute values.
44 , Text.Blaze.ToValue (..)
48 , preEscapedLazyTextValue
50 , preEscapedStringValue
51 , unsafeByteStringValue
52 , unsafeLazyByteStringValue
54 -- -- * Setting attributes
58 -- -- * Modifiying Markup trees
74 import qualified Text.Blaze
75 import Text.BlazeT.Internal as Text.BlazeT.Internal
77 class ToMarkup a where
78 toMarkup :: a -> Markup
79 preEscapedToMarkup :: a -> Markup
81 -- test :: (ToMarkup a, Monad m) => a -> MarkupT m ()
84 instance Text.Blaze.ToMarkup a => ToMarkup a where
85 toMarkup = wrapMarkup . Text.Blaze.toMarkup
86 {-# INLINE toMarkup #-}
87 preEscapedToMarkup = wrapMarkup . Text.Blaze.preEscapedToMarkup
88 {-# INLINE preEscapedToMarkup #-}
93 -- Due due a Haddock bug, this documentation is misleading. Please
94 -- read "Text.BlazeT.Internal" instead.
96 -- (The bug shows both @Text.Blaze.Markup@ and @Text.BlazeT.Markup@ as
99 -- Use this documentation only to see which entities are exported by