name:                hydrant
version:             0.0
homepage:            https://github.com/thumphries/hydrant
author:              Ambiata, Tim Humphries
maintainer:          tim@utf8.me
bug-reports:         https://github.com/thumphries/hydrant
license:             BSD3
license-file:        LICENSE
category:            Web
build-type:          Simple
cabal-version:       >=1.10
tested-with:         GHC == 7.10.2, GHC == 8.0.2
extra-source-files:
  README.md

synopsis:
  Simple HTML combinators
description:
  Simple HTML combinators.
  .
  Hydrant provides everything you need to construct markup at a low, low cost.
  .
  It distinguishes itself from libraries like Blaze and Lucid by being extremely
  simple in both API and implementation. Hydrant is comprised entirely of lazy
  Text builders, newtypes, and simple inlineable combinators. It has a negligible
  dependency footprint, requiring only `bytestring` and `text`.
  .
  While this simple implementation means your markup cannot be inspected after it
  is built, it also means a simpler API and far less runtime overhead during
  construction.

library
  build-depends:
                     base             >= 3      && < 5
                   , bytestring       >= 0.10.4 && < 0.11
                   , text             == 1.2.*

  default-language:
                     Haskell2010

  ghc-options:
                     -Wall

  hs-source-dirs:
                     src

  exposed-modules:
                     Hydrant
                     Hydrant.Data
                     Hydrant.Raw

test-suite test
  type:
                     exitcode-stdio-1.0

  main-is:
                     test.hs

  hs-source-dirs:
                     test

  default-language:
                     Haskell2010

  build-depends:
                     base
                   , ambiata-disorder-core
                   , ambiata-disorder-corpus
                   , ambiata-disorder-jack
                   , ambiata-p
                   , hydrant
                   , containers                == 0.5.*
                   , QuickCheck                >= 2.8.2 && < 2.9
                   , quickcheck-instances      == 0.3.*
                   , tagsoup                   == 0.14.*
                   , text                      == 1.2.*

benchmark bench
  type:
                     exitcode-stdio-1.0

  main-is:
                     bench.hs

  default-language:
                     Haskell2010

  ghc-options:
                     -Wall -threaded -O2

  hs-source-dirs:
                     test

  build-depends:
                     base
                   , hydrant
                   , ambiata-p
                   , criterion                 == 1.1.*
                   , text                      == 1.2.*