QuasiText-0.1.2.6: A QuasiQuoter for Text.

Safe HaskellNone
LanguageHaskell98

Text.QuasiText

Description

A simple QuasiQuoter for Text strings. Note that to use embed you need to use the OverloadedStrings extension.

Synopsis

Documentation

embed :: QuasiQuoter Source #

A simple QuasiQuoter to interpolate Text into other pieces of Text. Expressions can be embedded using $(expr), and values can be interpolated with $name. Inside $( )s, if you have a string of ambiguous type, it will default to the Show instance for toText, which will escape unicode characters in the string, and add quotes around them.

data Chunk Source #

Constructors

T Text

text

E Text

expression

V Text

value

Instances

Eq Chunk Source # 

Methods

(==) :: Chunk -> Chunk -> Bool #

(/=) :: Chunk -> Chunk -> Bool #

Show Chunk Source # 

Methods

showsPrec :: Int -> Chunk -> ShowS #

show :: Chunk -> String #

showList :: [Chunk] -> ShowS #

getChunks :: Text -> [Chunk] Source #

Create Chunks without any TH.