markup-0.0.1: Abstraction for markup languages

Safe HaskellNone
LanguageHaskell2010

Data.Markup.Class

Synopsis

Documentation

class Markup markup t m where Source

Overload assets and their markup library, over some deployment

Methods

renderMarkup :: t -> m markup Source

Instances

(LocalMarkup markup t input, Monad m) => Markup markup t (LocalMarkupT input m) 
(HostedMarkup markup t input, Monad m) => Markup markup t (HostedMarkupT input m) 
(InlineMarkup markup t input, Monad m) => Markup markup t (InlineMarkupT input m) 

class InlineMarkup markup t input where Source

Assets that implement this (with their representing markup library) can be rendered as Inline

Methods

renderInline :: t -> input -> markup Source

class HostedMarkup markup t input where Source

Assets that implement this can be rendered as hosted.

Methods

renderHosted :: t -> input -> markup Source

class LocalMarkup markup t input where Source

Assets that implement this can be rendered as local.

Methods

renderLocal :: t -> input -> markup Source

Instances

Url input MarkupM => LocalMarkup (MarkupM ()) JavaScript input 
Url input MarkupM => LocalMarkup (MarkupM ()) Image input 
(Monad m, Url input m) => LocalMarkup (HtmlT m ()) JavaScript input 
(Monad m, Url input m) => LocalMarkup (HtmlT m ()) Image input