damnpacket-1.3.0: Parsing dAmn messages

Safe HaskellNone
LanguageHaskell2010

Network.Damn.Format.IRC

Description

Format a dAmn message body as an inline text approximation, including IRC styles.

Synopsis

Documentation

ircFormat :: Formatter Lines Source #

This formatter functions as damnFormat, except that bold, italics, and underlines will be converted to mIRC colors.

Additionally, Text will be encoded as UTF-8.

Note that this formatter will generate Lines, as newlines (to which &br\t translates) cannot appear in IRC messages.

data Lines Source #

Instances
Show Lines Source # 
Instance details

Defined in Network.Damn.Format.IRC

Methods

showsPrec :: Int -> Lines -> ShowS #

show :: Lines -> String #

showList :: [Lines] -> ShowS #

IsString Lines Source # 
Instance details

Defined in Network.Damn.Format.IRC

Methods

fromString :: String -> Lines #

Semigroup Lines Source # 
Instance details

Defined in Network.Damn.Format.IRC

Methods

(<>) :: Lines -> Lines -> Lines #

sconcat :: NonEmpty Lines -> Lines #

stimes :: Integral b => b -> Lines -> Lines #

Monoid Lines Source # 
Instance details

Defined in Network.Damn.Format.IRC

Methods

mempty :: Lines #

mappend :: Lines -> Lines -> Lines #

mconcat :: [Lines] -> Lines #