packages feed

hoauth2-0.5.0: hoauth2.cabal

Name:                hoauth2
-- https://wiki.haskell.org/Package_versioning_policy
Version:             0.5.0

Synopsis:            hoauth2
Description:
  Haskell OAuth2 authentication.
  .
  Tested following services
  .
  * google web oauth: <https://developers.google.com/accounts/docs/OAuth2WebServer>
  .
  * github oauth: <http://developer.github.com/v3/oauth/>
  .
  * facebook
  .
  * fitbit
  .
  * weibo oauth2: <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 files to be distributed with the package, such as examples or
-- a README.
Extra-source-files:
  README.md
  example/Google/test.hs
  example/Weibo/test.hs
  example/Github/test.hs
  example/Facebook/test.hs
  example/Keys.hs.sample
  example/run-7.6.sh
  example/run.sh

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-fb
  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