blog-0.1.0.0: A custom blog generator from markup files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Blog.Html

Synopsis

HTML EDSL

data Html #

html_ :: Head -> Structure -> Html #

the Html page itself

Combinators used to construct the <head> section

data Head #

Instances

Instances details
Monoid Head # 
Instance details

Defined in Blog.Html.Internal

Methods

mempty :: Head #

mappend :: Head -> Head -> Head #

mconcat :: [Head] -> Head #

Semigroup Head # 
Instance details

Defined in Blog.Html.Internal

Methods

(<>) :: Head -> Head -> Head #

sconcat :: NonEmpty Head -> Head #

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

Show Head # 
Instance details

Defined in Blog.Html.Internal

Methods

showsPrec :: Int -> Head -> ShowS #

show :: Head -> String #

showList :: [Head] -> ShowS #

Eq Head # 
Instance details

Defined in Blog.Html.Internal

Methods

(==) :: Head -> Head -> Bool #

(/=) :: Head -> Head -> Bool #

Combinators used to construct the <body> section

data Structure #

Basically a html tag that may have other "structures"

Instances

Instances details
Monoid Structure # 
Instance details

Defined in Blog.Html.Internal

Semigroup Structure # 
Instance details

Defined in Blog.Html.Internal

Combinators used to construct inside structures

data Content #

The content of html tag

Instances

Instances details
Monoid Content # 
Instance details

Defined in Blog.Html.Internal

Semigroup Content # 
Instance details

Defined in Blog.Html.Internal

link_ :: FilePath -> Content -> Content #

adds the link to the tag "a"

Render HTML to String

render :: Html -> String #

Transforms Html data type to String