web-rep-0.2.0: representations of a web page

Safe HaskellNone
LanguageHaskell2010

Web.Page.Html

Contents

Synopsis

Documentation

class__ :: Text -> Attribute Source #

FIXME: A horrible hack to separate class id's

toText :: Html a -> Text Source #

Convert html to text

genName :: MonadState Int m => m Text Source #

name supply for html elements

genNamePre :: MonadState Int m => Text -> m Text Source #

sometimes a number doesn't work properly in html (or js???), and an alpha prefix seems to help

fromHex :: Parser PixelRGB8 Source #

convert from #xxxxxx to PixelRGB8

toHex :: PixelRGB8 -> Text Source #

convert from PixelRGB8 to #xxxxxx

type Html = HtmlT Identity #

Simple HTML builder type. Defined in terms of HtmlT. Check out that type for instance information.

Simple use-cases will just use this type. But if you want to transformer over Reader or something, you can go and use HtmlT.

Orphan instances

ToHtml Bool Source # 
Instance details

Methods

toHtml :: Monad m => Bool -> HtmlT m () #

toHtmlRaw :: Monad m => Bool -> HtmlT m () #

ToHtml Double Source # 
Instance details

Methods

toHtml :: Monad m => Double -> HtmlT m () #

toHtmlRaw :: Monad m => Double -> HtmlT m () #

ToHtml Int Source # 
Instance details

Methods

toHtml :: Monad m => Int -> HtmlT m () #

toHtmlRaw :: Monad m => Int -> HtmlT m () #

ToHtml () Source # 
Instance details

Methods

toHtml :: Monad m => () -> HtmlT m () #

toHtmlRaw :: Monad m => () -> HtmlT m () #

ToHtml PixelRGB8 Source # 
Instance details

Methods

toHtml :: Monad m => PixelRGB8 -> HtmlT m () #

toHtmlRaw :: Monad m => PixelRGB8 -> HtmlT m () #