| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Blog.Html.Internal
Synopsis
- newtype Html = Html String
- type Title = String
- newtype Head = Head String
- newtype Structure = Structure String
- newtype Content = Content String
- render :: Html -> String
- getStructureString :: Structure -> String
- getContentString :: Content -> String
- html_ :: Head -> Structure -> Html
- el :: String -> String -> String
- elAttr :: String -> String -> String -> String
- p_ :: Content -> Structure
- ul_ :: [Structure] -> Structure
- ol_ :: [Structure] -> Structure
- code_ :: String -> Structure
- h_ :: Natural -> Content -> Structure
- link_ :: FilePath -> Content -> Content
- txt_ :: String -> Content
- img_ :: FilePath -> Content
- b_ :: Content -> Content
- i_ :: Content -> Content
- title_ :: String -> Head
- stylesheet_ :: FilePath -> Head
- meta_ :: String -> String -> Head
- escape :: String -> String
Data Types for HTML
Basically a html tag that may have other "structures"
Helper functions for our data types
getStructureString :: Structure -> String #
getContentString :: Content -> String #
Instances to group the Structures
Html tags
Structure
Head
stylesheet_ :: FilePath -> Head #