Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Markup markup t m where
- renderMarkup :: t -> m markup
- class InlineMarkup markup t input where
- renderInline :: t -> input -> markup
- class HostedMarkup markup t input where
- renderHosted :: t -> input -> markup
- class LocalMarkup markup t input where
- renderLocal :: t -> input -> markup
Documentation
class Markup markup t m where Source
Overload assets and their markup library, over some deployment
renderMarkup :: t -> m markup Source
(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
renderInline :: t -> input -> markup Source
ToMarkup a => InlineMarkup (MarkupM ()) JavaScript a | |
Monad m => InlineMarkup (HtmlT m ()) JavaScript Text | |
Monad m => InlineMarkup (HtmlT m ()) JavaScript Text |
class HostedMarkup markup t input where Source
Assets that implement this can be rendered as hosted.
renderHosted :: t -> input -> markup Source
ToValue a => HostedMarkup (MarkupM ()) JavaScript a | |
ToValue a => HostedMarkup (MarkupM ()) Image a | |
Monad m => HostedMarkup (HtmlT m ()) JavaScript Text | |
Monad m => HostedMarkup (HtmlT m ()) Image Text |
class LocalMarkup markup t input where Source
Assets that implement this can be rendered as local.
renderLocal :: t -> input -> markup Source
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 |