packages feed

web-page-0.2.0: web-page.cabal

name:          web-page
version:       0.2.0
category:      Web
synopsis:      Monoidally construct web pages
maintainer:    Ertugrul Söylemez <ertesx@gmx.de>
author:        Ertugrul Söylemez <ertesx@gmx.de>
copyright:     (c) 2014 Ertugrul Söylemez
homepage:      http://hub.darcs.net/ertes/web-page
bug-reports:   http://hub.darcs.net/ertes/web-page/issues
license:       BSD3
license-file:  LICENSE
build-type:    Simple
cabal-version: >= 1.10
extra-source-files: README.md default.nix
description:
    This package combines blaze-html, clay and jmacro into a
    framework-agnostic library to generate web pages dynamically from
    individual components.  It is inspired by Yesod's widgets, but is
    more general, more powerful and can be used with other web
    frameworks.
    .
    See the @README.md@ file for a full list of features and a quick
    introduction.  More detailed documentation can be found in the
    individual modules.

flag TestProgram
    default: False
    description: Build the test program
    manual: True

source-repository head
    type:     darcs
    location: http://hub.darcs.net/ertes/web-page

library
    build-depends:
        base           >= 4.5  && < 5,
        blaze-builder  >= 0.3  && < 1,
        blaze-html     >= 0.7  && < 1,
        bytestring     >= 0.10 && < 1,
        clay           >= 0.9  && < 1,
        containers     >= 0.5  && < 1,
        jmacro         >= 0.6  && < 1,
        lens           >= 4.4  && < 5,
        mtl            >= 2.1  && < 3,
        Stream         >= 0.4  && < 1,
        text           >= 1.0  && < 2,
        vector         >= 0.10 && < 1,
        wl-pprint-text >= 1.1  && < 2
    default-language: Haskell2010
    default-extensions:
        ConstraintKinds
        DeriveDataTypeable
        DeriveFoldable
        DeriveFunctor
        FlexibleContexts
        FlexibleInstances
        GeneralizedNewtypeDeriving
        OverloadedStrings
        RankNTypes
        TupleSections
    ghc-options: -W
    exposed-modules:
        Web.Page
        Web.Page.GenId
        Web.Page.Render
        Web.Page.Widget

executable web-page-test
    if flag(testprogram)
        build-depends:
            base >= 4.5 && < 5,
            blaze-html,
            bytestring,
            clay,
            http-types,
            jmacro,
            mtl,
            text,
            wai,
            warp,
            web-page
    else
        buildable: False
    default-language: Haskell2010
    default-extensions:
        FlexibleContexts
        OverloadedStrings
        QuasiQuotes
    ghc-options: -threaded -rtsopts
    hs-source-dirs: test
    main-is: Test.hs