chatty-0.8.0.0: Some monad transformers and typeclasses for text in- and output abstraction.
Safe HaskellSafe
LanguageHaskell2010

Text.Chatty.Extended.HTML

Description

Provides an ChExtendedPrinter that handles colours using HTML output.

Synopsis

Documentation

newtype HtmlPrinterT m a Source #

An ChExtendedPrinter for HTML output.

Constructors

HtmlPrinter 

Fields

Instances

Instances details
MonadTrans HtmlPrinterT Source # 
Instance details

Defined in Text.Chatty.Extended.HTML

Methods

lift :: Monad m => m a -> HtmlPrinterT m a #

ChChannelPrinter Bool m => ChChannelPrinter Bool (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

ChChannelPrinter Int m => ChChannelPrinter Int (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

ChChannelPrinter Handle m => ChChannelPrinter Handle (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

Monad m => Monad (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Extended.HTML

Methods

(>>=) :: HtmlPrinterT m a -> (a -> HtmlPrinterT m b) -> HtmlPrinterT m b #

(>>) :: HtmlPrinterT m a -> HtmlPrinterT m b -> HtmlPrinterT m b #

return :: a -> HtmlPrinterT m a #

Functor m => Functor (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Extended.HTML

Methods

fmap :: (a -> b) -> HtmlPrinterT m a -> HtmlPrinterT m b #

(<$) :: a -> HtmlPrinterT m b -> HtmlPrinterT m a #

(Functor m, Monad m) => Applicative (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Extended.HTML

Methods

pure :: a -> HtmlPrinterT m a #

(<*>) :: HtmlPrinterT m (a -> b) -> HtmlPrinterT m a -> HtmlPrinterT m b #

liftA2 :: (a -> b -> c) -> HtmlPrinterT m a -> HtmlPrinterT m b -> HtmlPrinterT m c #

(*>) :: HtmlPrinterT m a -> HtmlPrinterT m b -> HtmlPrinterT m b #

(<*) :: HtmlPrinterT m a -> HtmlPrinterT m b -> HtmlPrinterT m a #

MonadIO m => MonadIO (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Extended.HTML

Methods

liftIO :: IO a -> HtmlPrinterT m a #

ChAtoms m => ChAtoms (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

Methods

newAtom :: HtmlPrinterT m (Atom v) #

funAtom :: Atom b -> (b -> a) -> (b -> a -> b) -> HtmlPrinterT m (Atom a) #

funAtom2 :: Atom b -> Atom c -> ((b, c) -> a) -> ((b, c) -> a -> (b, c)) -> HtmlPrinterT m (Atom a) #

putAtom :: Atom v -> v -> HtmlPrinterT m () #

getAtom :: Atom v -> HtmlPrinterT m v #

dispAtom :: Atom v -> HtmlPrinterT m () #

cloneAtom :: Atom v -> HtmlPrinterT m (Atom v) #

ChCounter m => ChCounter (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

(Functor m, ChExpand m) => ChExpand (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Extended.HTML

ChHistoryEnv m => ChHistoryEnv (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

ChExpanderEnv m => ChExpanderEnv (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

ChFinalizer m => ChFinalizer (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

ChPrinter m => ChPrinter (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Extended.HTML

ChPrinter m => ChExtendedPrinter (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Extended.HTML

ChScanner m => ChScanner (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

ChBufferedScanner m => ChBufferedScanner (HtmlPrinterT m) Source # 
Instance details

Defined in Text.Chatty.Interactor

maskHtml :: Char -> String Source #

Convert the given character to its HTML representation.

hexColour :: Colour -> [Char] Source #

Convert the given colour to its CSS representation.