packages feed

servant-py-0.1.0.3: servant-py.cabal

name:                servant-py
version:             0.1.0.3
synopsis:            Automatically derive python functions to query servant webservices.
description:
  Automatically derive python functions to query servant webservices.
  .
  Supports deriving functions using Python's requests library.
homepage:            https://github.com/pellagic-puffbomb/servant-py#readme
license:             BSD3
license-file:        LICENSE
author:              Erik Aker
maintainer:          eraker@gmail.com
copyright:           2017 Erik Aker
category:            Web
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10

flag example
  description: Build the example too
  manual: True
  default: False

library
  hs-source-dirs:      src
  exposed-modules:     Servant.PY
                     , Servant.PY.Requests
                     , Servant.PY.Internal
                     , Servant.PY.Python
  build-depends:       base >= 4.7 && < 5
                     , aeson
                     , bytestring
                     , charset
                     , lens
                     , servant-foreign
                     , servant
                     , text
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings
  ghc-options:         -Wall

executable servant-py-exe
  ghc-options: -Wall -O2 -threaded -rtsopts -with-rtsopts=-N
  hs-source-dirs: examples

  if flag(example)
    buildable: True
  else
    buildable: False
  hs-source-dirs:      examples
  main-is:             Main.hs
  build-depends:       base
                     , blaze-html
                     , bytestring
                     , servant-py
                     , stm
                     , aeson
                     , wai
                     , servant
                     , servant-foreign
                     , servant-server
                     , servant-blaze
                     , text
                     , filepath
                     , warp
  default-language:    Haskell2010

test-suite servant-py-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  ghc-options:         -Wall
  main-is:             Spec.hs
  other-modules:
      Servant.PYSpec
      Servant.PY.InternalSpec
  build-depends:       base
                     , servant-py
                     , aeson
                     , base-compat
                     , bytestring
                     , hspec
                     , hspec-expectations
                     , lens
                     , QuickCheck
                     , servant
                     , servant-foreign
                     , text
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/pellagic-puffbomb/servant-py