ip-0.9.2: Library for IP and MAC addresses

Safe HaskellNone
LanguageHaskell2010

Data.Text.Builder.Fixed

Description

For concatenating fixed-width strings that are only a few characters each, this can be ten times faster than the builder that ships with text.

Synopsis

Documentation

data Builder a Source #

Instances

Monoid (Builder a) Source # 

Methods

mempty :: Builder a #

mappend :: Builder a -> Builder a -> Builder a #

mconcat :: [Builder a] -> Builder a #

run :: Builder a -> a -> Text Source #

contramapBuilder :: (b -> a) -> Builder a -> Builder b Source #

charBmp :: Builder Char Source #

Characters outside the basic multilingual plane are not handled correctly by this function. They will not cause a program to crash; instead, the character will have the upper bits masked out.