module Blaze.ByteString.Builder.Char8
(
writeChar
, fromChar
, fromString
, fromShow
, fromText
, fromLazyText
) where
import Blaze.ByteString.Builder.Compat.Write ( Write, writePrimFixed )
import Data.ByteString.Builder ( Builder )
import qualified Data.ByteString.Builder as B
import qualified Data.ByteString.Builder.Prim as P
import qualified Data.Text as TS
import qualified Data.Text.Lazy as TL
writeChar :: Char -> Write
writeChar :: Char -> Write
writeChar = forall a. FixedPrim a -> a -> Write
writePrimFixed FixedPrim Char
P.char8
{-# INLINE writeChar #-}
fromChar :: Char -> Builder
fromChar :: Char -> Builder
fromChar = Char -> Builder
B.char8
{-# INLINE fromChar #-}
fromString :: String -> Builder
fromString :: String -> Builder
fromString = forall a. FixedPrim a -> [a] -> Builder
P.primMapListFixed FixedPrim Char
P.char8
{-# INLINE fromString #-}
fromShow :: Show a => a -> Builder
fromShow :: forall a. Show a => a -> Builder
fromShow = String -> Builder
fromString forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => a -> String
show
{-# INLINE fromShow #-}
fromText :: TS.Text -> Builder
fromText :: Text -> Builder
fromText = String -> Builder
fromString forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
TS.unpack
{-# INLINE fromText #-}
fromLazyText :: TL.Text -> Builder
fromLazyText :: Text -> Builder
fromLazyText = String -> Builder
fromString forall b c a. (b -> c) -> (a -> b) -> a -> c
. Text -> String
TL.unpack
{-# INLINE fromLazyText #-}