packages feed

snap-predicates-0.3.0: snap-predicates.cabal

name:                snap-predicates
version:             0.3.0
synopsis:            Declarative routing for Snap.
license:             MIT
license-file:        LICENSE
author:              Toralf Wittner, Brendan Hay
maintainer:          Toralf Wittner <tw@dtex.org>
copyright:           Copyright (c) 2013 Toralf Wittner, Brendan Hay
stability:           experimental
category:            Snap
build-type:          Simple
cabal-version:       >= 1.10
extra-source-files:  README.md

description:
    Provides the definition of a predicate type-class together
    with several concrete implementations which are used to
    constrain the set of possible Snap handlers in a type-safe
    way.

library
    default-language: Haskell2010
    hs-source-dirs:   src
    ghc-options:      -Wall -O2 -fwarn-tabs -funbox-strict-fields
    ghc-prof-options: -prof -auto-all

    exposed-modules:
        Data.Predicate
      , Data.Predicate.Env
      , Snap.Predicate
      , Snap.Predicate.Accept
      , Snap.Predicate.Error
      , Snap.Predicate.Param
      , Snap.Predicate.Header
      , Snap.Predicate.Content
      , Snap.Predicate.MediaType
      , Snap.Predicate.Tutorial
      , Snap.Predicate.Types
      , Snap.Route

    other-modules:
        Snap.Predicate.Internal
        Snap.Predicate.MediaType.Internal
      , Snap.Predicate.Parser.Accept
      , Snap.Predicate.Parser.Shared

    build-depends:
        base             >= 4   && < 5
      , transformers     >= 0.3
      , monads-tf        >= 0.1
      , bytestring       >= 0.9
      , text             >= 0.11
      , containers       >= 0.5
      , case-insensitive >= 1.0
      , snap-core        >= 0.9
      , attoparsec       >= 0.10

test-suite snap-predicates-test-suite
    type:             exitcode-stdio-1.0
    default-language: Haskell2010
    hs-source-dirs:   src test
    main-is:          TestSuite.hs
    ghc-options:      -Wall -O2 -fwarn-tabs -funbox-strict-fields
    ghc-prof-options: -prof -auto-all

    other-modules:
        Tests.Data.Predicate
      , Tests.Snap.Predicate
      , Tests.Snap.Route

    build-depends:
        base             >= 4   && < 5
      , transformers     >= 0.3
      , monads-tf        >= 0.1
      , bytestring       >= 0.9
      , text             >= 0.11
      , containers       >= 0.5
      , case-insensitive >= 1.0
      , snap-core        >= 0.9
      , text             >= 0.11
      , attoparsec       >= 0.10

      , HUnit                      >= 1.2
      , QuickCheck                 >= 2.3
      , test-framework             >= 0.8
      , test-framework-hunit       >= 0.2
      , test-framework-quickcheck2 >= 0.2

source-repository head
    type:             git
    location:         git://github.com/twittner/snap-predicates.git