packages feed

scotty-format-0.1.1.0: scotty-format.cabal

name:                scotty-format
version:             0.1.1.0
synopsis:            Response format helper for the Scotty web framework.
description:
  scotty-format is a helper for the Scotty web framework that helps you defining
  different response formats based on the request's `Accept` header value.
homepage:            https://github.com/potomak/scotty-format#readme
license:             Apache-2.0
license-file:        LICENSE
author:              Giovanni Cappellotto
maintainer:          potomak84@gmail.com
copyright:           2016 Giovanni Cappellotto
category:            Web
build-type:          Simple
-- extra-source-files:
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     Web.Scotty.Format.Trans
  ghc-options:         -Wall
  build-depends:
    base >= 4.8.2 && < 4.10,
    http-media >= 0.6.4 && < 0.7,
    http-types >= 0.9.1 && < 0.10,
    scotty >= 0.11 && < 0.12,
    text >= 1.2.2.1 && < 1.3
  default-language:    Haskell2010

executable scotty-format-example
  hs-source-dirs:      examples
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  build-depends:
    aeson,
    base,
    scotty,
    scotty-format,
    text
  default-language:    Haskell2010

test-suite scotty-format-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:
    base,
    scotty-format
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/potomak/scotty-format