packages feed

fbmessenger-api-0.1.0.2: fbmessenger-api.cabal

name:                fbmessenger-api
version:             0.1.0.2
synopsis:            High-level bindings to Facebook Messenger Platform API
description:         Please see README.md
homepage:            https://github.com/mseri/fbmessenger-api-hs#readme
license:             BSD3
license-file:        LICENSE
author:              Marcello Seri
maintainer:          marcello.seri@gmail.com
copyright:           2016 Marcello Seri, Federico Rampazzo
category:            Web
build-type:          Simple
stability:           Experimental
-- extra-source-files:
cabal-version:       >=1.10
data-files:          test-files/*.json

library
  hs-source-dirs:      src
  ghc-options:         -Wall -fwarn-tabs -fno-warn-name-shadowing -fwarn-pointless-pragmas
  exposed-modules:     Web.FBMessenger.API.Bot
                     , Web.FBMessenger.API.Bot.SendAPI
                     , Web.FBMessenger.API.Bot.Responses
                     , Web.FBMessenger.API.Bot.Requests
                     , Web.FBMessenger.API.Bot.WebhookAPI
  other-modules:       Web.FBMessenger.API.Bot.JsonExt
                     , Servant.Client.MultipartFormData
  build-depends:       base >= 4.7 && < 5
                     -- below this line in alphabetical order
                     , aeson
                     , bytestring
                     , http-client
                     , servant == 0.7.*
                     , servant-client == 0.7.*
                     , text
                     , transformers
                     , unordered-containers
                     -- for Servant.Client.MultipartFormData and interaction with it
                     , http-media         
                     , http-types
                     , mime-types
                     , string-conversions
                     -- for more direct error responses manipulation
                     , case-insensitive
  default-language:    Haskell2010

executable example
  main-is:            example.hs
  hs-source-dirs:     example-app
  ghc-options:        -fwarn-tabs -O2 -Wall -threaded
  build-depends:      base
                    ,  aeson
                    ,  http-client
                    ,  http-client-tls
                    ,  fbmessenger-api
                    ,  servant == 0.7.*
                    ,  servant-server == 0.7.*
                    ,  stm
                    ,  text
                    ,  transformers
                    ,  warp
  default-language:   Haskell2010

test-suite fbmessenger-api-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , aeson
                     , bytestring
                     , fbmessenger-api
                     , filepath
                     , hspec
                     , text
                     -- , http-client-tls
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/mseri/fbmessenger-api-hs