homepage: https://github.com/knupfer/type-of-html
changelog-type: markdown
hash: 8d59c5a737965afbcb43a3be191dfe39abac2de8956ab943d014f04a34dfa5cf
test-bench-deps:
  type-of-html: -any
  bytestring: -any
  base: ==4.10.*
  hspec: -any
  text: -any
  criterion: -any
  blaze-html: -any
maintainer: fknupfer@gmail.com
synopsis: High performance type driven html generation.
changelog: ! '# Revision history for type-of-html


  ## 0.2.1.0  -- 2017-08-04


  * Escape strings


  ## 0.2.0.0  -- 2017-07-30


  * Full implementation


  ## 0.1.0.0  -- 2017-07-09


  * First draft

'
basic-deps:
  base: ! '>=4.10 && <4.11'
  text: -any
all-versions:
- '0.2.1.1'
author: Florian Knupfer
latest: '0.2.1.1'
description-type: markdown
description: ! "# Type of html\n\n`Type of html` is a library for generating html
  in a highly performant\nand type safe manner.\n\nPlease read the documentation of
  the module:\n[Html](https://hackage.haskell.org/package/type-of-html/docs/Html.html)\n\nNote
  that you need at least ghc 8.2.\n\n## Typesafety\n\nPart of the html spec is encoded
  at the typelevel, turning a lot of\nmistakes into type errors.\n\n## Performance\n\n`Type
  of html` is normally a lot faster than `blaze html`.  Criterion\nsays about the
  following snippet that `Type of html` needs only ~450\nns, `blaze html` needs ten
  times more time.\n\n```haskell\nexample x =\n  html_\n    ( body_\n      ( h1_\n
  \       ( img_\n        # strong_ \"0\"\n        )\n      # div_\n        ( div_
  \"1\"\n        )\n      # div_\n        ( form_\n          ( fieldset_\n            (
  div_\n              ( div_\n                ( label_ \"a\"\n                # select_\n
  \                 ( option_ \"b\"\n                  # option_ \"c\"\n                  )\n
  \               # div_ \"d\"\n                )\n              # i_ x\n              )\n
  \           # button_ (i_ \"e\")\n            )\n          )\n        )\n      )\n
  \   )\n```\n"
license-name: BSD3

Update from Hackage at 2017-08-04T19:39:50Z
Update from Hackage at 2017-08-04T19:39:50Z
