packages feed

hoauth2-0.5.0.1: hoauth2.cabal

Name:                hoauth2
-- http://wiki.haskell.org/Package_versioning_policy
Version:             0.5.0.1

Synopsis:            Haskell OAuth2 authentication client
Description:
  Haskell OAuth2 authentication client. Tested with the following services:
  .
  * Google web: <https://developers.google.com/accounts/docs/OAuth2WebServer>
  .
  * Github: <http://developer.github.com/v3/oauth/>
  .
  * Facebook: <http://developers.facebook.com/docs/facebook-login/>
  .
  * Fitbit: <http://dev.fitbit.com/docs/oauth2/>
  .
  * Weibo: <http://open.weibo.com/wiki/Oauth2>
  .
  * Douban: <http://developers.douban.com/wiki/?title=oauth2>

Homepage:            https://github.com/freizl/hoauth2
License:             BSD3
License-file:        LICENSE
Author:              Haisheng Wu
Maintainer:          Haisheng Wu <freizl@gmail.com>
Copyright:           Haisheng Wu
Category:            Network
Build-type:          Simple
stability:           alpha
tested-with:         GHC <= 7.10.2

Extra-source-files:
  README.md
  example/Google/test.hs
  example/Weibo/test.hs
  example/Github/test.hs
  example/Facebook/test.hs
  example/Fitbit/test.hs
  example/Douban/test.hs
  example/Keys.hs.sample

Cabal-version:       >=1.10

Source-Repository head
  Type:     git
  Location: git://github.com/freizl/hoauth2.git

Flag test
     Description: Build the executables
     Default: False

Library
  hs-source-dirs: src
  default-language:    Haskell2010
  Exposed-modules:
    Network.OAuth.OAuth2.HttpClient
    Network.OAuth.OAuth2.Internal
    Network.OAuth.OAuth2

  Build-Depends:
    base              >= 4      && < 5,
    aeson             >= 0.10   && < 0.11,
    text              >= 0.11   && < 1.3,
    bytestring        >= 0.9    && < 0.11,
    http-conduit      >= 2.0    && < 2.2,
    http-types        >= 0.9    && < 0.10

  if impl(ghc >= 6.12.0)
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
                   -fno-warn-unused-do-bind
  else
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields

Executable test-weibo
  if flag(test)
    Buildable: True
  else
    Buildable: False

  main-is:             Weibo/test.hs
  hs-source-dirs:      example
  default-language:    Haskell2010
  build-depends:       base              >= 4.5     && < 5,
                       http-types        >= 0.9    && < 0.10,
                       http-conduit      >= 2.0    && < 2.2,
                       text              >= 0.11   && < 1.3,
                       bytestring        >= 0.9    && < 0.11,
                       hoauth2

  if impl(ghc >= 6.12.0)
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
                   -fno-warn-unused-do-bind
  else
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields


Executable test-google
  if flag(test)
    Buildable: True
  else
    Buildable: False

  main-is:             Google/test.hs
  hs-source-dirs:      example
  default-language:    Haskell2010
  build-depends:       base              >= 4.5     && < 5,
                       http-types        >= 0.9    && < 0.10,
                       http-conduit      >= 2.0    && < 2.2,
                       text              >= 0.11   && < 1.3,
                       bytestring        >= 0.9    && < 0.11,
                       aeson             >= 0.10   && < 0.11,
                       hoauth2

  if impl(ghc >= 6.12.0)
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
                   -fno-warn-unused-do-bind
  else
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields


Executable test-github
  if flag(test)
    Buildable: True
  else
    Buildable: False

  main-is:             Github/test.hs
  hs-source-dirs:      example
  default-language:    Haskell2010
  build-depends:       base              >= 4.5    && < 5,
                       http-types        >= 0.9    && < 0.10,
                       http-conduit      >= 2.0    && < 2.2,
                       text              >= 0.11   && < 1.3,
                       bytestring        >= 0.9    && < 0.11,
                       aeson             >= 0.10   && < 0.11,
                       hoauth2

  if impl(ghc >= 6.12.0)
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
                   -fno-warn-unused-do-bind
  else
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields

Executable test-douban
  if flag(test)
    Buildable: True
  else
    Buildable: False

  main-is:             Douban/test.hs
  hs-source-dirs:      example
  default-language:    Haskell2010
  build-depends:       base              >= 4.5     && < 5,
                       http-types        >= 0.9    && < 0.10,
                       http-conduit      >= 2.0    && < 2.2,
                       text              >= 0.11   && < 1.3,
                       bytestring        >= 0.9    && < 0.11,
                       aeson             >= 0.10   && < 0.11,
                       hoauth2

  if impl(ghc >= 6.12.0)
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
                   -fno-warn-unused-do-bind
  else
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields

Executable test-facebook
  if flag(test)
    Buildable: True
  else
    Buildable: False

  main-is:             Facebook/test.hs
  hs-source-dirs:      example
  default-language:    Haskell2010
  build-depends:       base              >= 4.5     && < 5,
                       http-types        >= 0.9    && < 0.10,
                       http-conduit      >= 2.0    && < 2.2,
                       text              >= 0.11   && < 1.3,
                       bytestring        >= 0.9    && < 0.11,
                       aeson             >= 0.10   && < 0.11,
                       hoauth2

  if impl(ghc >= 6.12.0)
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
                   -fno-warn-unused-do-bind
  else
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields

Executable test-fitbit
  if flag(test)
    Buildable: True
  else
    Buildable: False

  main-is:             Fitbit/test.hs
  hs-source-dirs:      example
  default-language:    Haskell2010
  build-depends:       base              >= 4.5    && < 5,
                       aeson             >= 0.10   && < 0.11,
                       text              >= 0.11   && < 1.3,
                       bytestring        >= 0.9    && < 0.11,
                       http-conduit      >= 2.0    && < 2.2,
                       http-types        >= 0.9    && < 0.10,
                       wai               >= 3.0    && < 3.2,
                       warp              >= 3.0    && < 3.2,
                       containers        >= 0.4    && < 0.6,
                       hoauth2


  if impl(ghc >= 6.12.0)
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
                   -fno-warn-unused-do-bind -fno-warn-orphans
  else
      ghc-options: -Wall -fwarn-tabs -funbox-strict-fields