packages feed

type-of-html-1.5.0.0: type-of-html.cabal

name:                 type-of-html
version:              1.5.0.0
synopsis:             High performance type driven html generation.
description:          This library makes most invalid html documents compile time errors and uses advanced type level features to realise compile time computations.
license:              BSD3
license-file:         LICENSE
author:               Florian Knupfer
maintainer:           fknupfer@gmail.com
homepage:             https://github.com/knupfer/type-of-html
tested-with:          GHC == 8.2.2
                    , GHC == 8.4.4
                    , GHC == 8.6.2
copyright:            2017 - 2018, Florian Knupfer
category:             Language, Text, Web, HTML
build-type:           Simple
extra-source-files:   ChangeLog.md
                    , Readme.md
cabal-version:        >=1.10
source-repository     head
   Type: git
   Location: https://github.com/knupfer/type-of-html

library
  exposed-modules:    Html
                    , Html.Type
                    , Html.Convert
                    , Html.Element
                    , Html.Attribute
  other-modules:      Html.Type.Internal
                    , Html.Reify
  hs-source-dirs:     src
  default-language:   Haskell2010
  ghc-options:        -Wall
  build-depends:      base >= 4.9 && <= 5
                    , text
                    , bytestring
                    , ghc-prim
                    , double-conversion
                    , containers

test-suite value
  type:               exitcode-stdio-1.0
  main-is:            Value.hs
  hs-source-dirs:     test
  ghc-options:        -Wall -O0
  default-language:   Haskell2010
  build-depends:      base >= 4.9 && <= 5
                    , type-of-html
                    , QuickCheck
                    , hspec

test-suite type
  type:               exitcode-stdio-1.0
  main-is:            Type.hs
  hs-source-dirs:     test
                    , src
  other-modules:      Html.Type.Internal
  ghc-options:        -Wall
  default-language:   Haskell2010
  build-depends:      base >= 4.9 && <= 5
                    , bytestring

benchmark reduction
  type:               exitcode-stdio-1.0
  main-is:            Reduction.hs
  hs-source-dirs:     bench
  ghc-options:        -Wall -O2
  default-language:   Haskell2010
  build-depends:      base >= 4.9 && <= 5
                    , type-of-html

benchmark alloc
  type:               exitcode-stdio-1.0
  main-is:            Alloc.hs
  other-modules:      Small
                    , Medium
                    , Big
                    , Compilation
                    , Compilation.X0
                    , Compilation.X1
                    , Compilation.X2
                    , Compilation.X4
                    , Compilation.X8
                    , Compilation.X16
                    , Compilation.X32
                    , Compilation.X64
                    , Compilation.X128
  hs-source-dirs:     bench
  ghc-options:        -Wall -O2
  default-language:   Haskell2010
  build-depends:      base >= 4.9 && <= 5
                    , type-of-html
                    , deepseq
                    , weigh
                    , ghc
                    , ghc-paths
                    , temporary

benchmark perf
  type:               exitcode-stdio-1.0
  main-is:            Perf.hs
  other-modules:      Small
                    , Medium
                    , Big
                    , Blaze
  hs-source-dirs:     bench
  ghc-options:        -Wall -O2
  default-language:   Haskell2010
  build-depends:      base >= 4.9 && <= 5
                    , type-of-html
                    , text
                    , bytestring
                    , blaze-html
                    , criterion
                    , random