name:           scotty-fay
version:        0.1.1
build-type:     Simple
cabal-version:  >= 1.10

category:       Development, Web, Fay
maintainer:     Harry Garrood <harry@garrood.me>
license:        MIT
license-file:   LICENSE
extra-source-files:
    README.md
    example/Main.hs
    example/src/fay/HelloWorld.hs

synopsis:       Fay integration for Scotty.
description:    Fay integration for Scotty. For more information, please see <https://github.com/hdgarrood/scotty-fay>.

source-repository head
  type:         git
  location:     https://github.com/hdgarrood/scotty-fay

library
  hs-source-dirs:       src
  default-language:     Haskell2010
  ghc-options:          -Wall
  default-extensions:   OverloadedStrings, Rank2Types
  exposed-modules:      Web.Scotty.Fay
  other-modules:        Web.Scotty.Fay.Utils,
                        Web.Scotty.Fay.Internal,
                        Web.Scotty.Fay.Config
  build-depends:        base   >= 4.0   && < 5.0,
                        scotty >= 0.6.0 && < 0.7.0,
                        fay    >= 0.18  && < 0.19,
                        fay-jquery,
                        bytestring,
                        data-default,
                        http-types,
                        wai,
                        transformers,
                        text,
                        directory,
                        filepath

test-suite scotty-fay-tests
  type:                 exitcode-stdio-1.0
  main-is:              Main.hs
  hs-source-dirs:       src test
  default-language:     Haskell2010
  ghc-options:          -Wall
  default-extensions:   OverloadedStrings,
                        Rank2Types
  build-depends:        base,
                        scotty >= 0.6.0 && < 0.7.0,
                        fay    >= 0.18  && < 0.19,
                        fay-jquery,
                        bytestring,
                        data-default,
                        http-types,
                        wai,
                        transformers,
                        text,
                        directory,
                        filepath,
                        wai-test,
                        test-framework,
                        test-framework-hunit,
                        HUnit