packages feed

snaplet-oauth-0.0.6: snaplet-oauth.cabal

Name:                snaplet-oauth
Version:             0.0.6
Synopsis:            snaplet-oauth
Description:         This lib is in Alpha status and APIs are likely to be changed.
Homepage:            https://github.com/HaskellCNOrg/snaplet-oauth
License:             BSD3
License-file:        LICENSE
Author:              Haisheng,Wu
Maintainer:          freizl@gmail.com
Copyright:           Haisheng,Wu
Category:            Web
Build-type:          Simple
stability:           alpha
Cabal-version:       >=1.10


-- Extra files to be distributed with the package, such as examples or
-- a README.
Extra-source-files:  
  README.md
  Makefile
  tests/Weibo.hs
  example/example.cabal
  example/Makefile
  example/snaplets/heist/templates/*.tpl
  example/src/Splices.hs
  example/src/Site.hs
  example/src/OAuthHandlers.hs
  example/src/Main.hs
  example/src/Application.hs
  example/src/Keys.hs.default
  example/static/*.css

Source-Repository head
  Type:     git
  Location: git://github.com/HaskellCNOrg/snaplet-oauth.git



Library
  default-language:  Haskell2010
  Hs-Source-Dirs: src
  Exposed-modules:     
      Snap.Snaplet.OAuth
      Snap.Snaplet.OAuth.Weibo
      Snap.Snaplet.OAuth.Google
      Snap.Snaplet.OAuth.Github

  Other-Modules:
      Snap.Snaplet.OAuth.Internal.Types
      Snap.Snaplet.OAuth.Internal.Handlers
      Snap.Snaplet.OAuth.Internal.Utils
      Snap.Snaplet.OAuth.Weibo.Api
      Snap.Snaplet.OAuth.Google.Api
      Snap.Snaplet.OAuth.Github.Api

  Build-Depends:    
      MonadCatchIO-mtl     >= 0.3 && < 0.4,
      aeson                >= 0.6   && < 0.7,
      base                 >= 4     && < 5,
      bytestring           >= 0.9   && < 1.0,
      bytestring-show      >= 0.3.5 && < 0.4,
      data-lens            >= 2.0   && < 2.1,
      data-lens-template   >= 2.1   && < 2.2,
      failure              >= 0.1,
      hashable             >= 1.1.2 && < 1.2,
      heist                == 0.8.*,
      hoauth2              >= 0.2.6 && < 0.2.7,
      http-conduit         >= 1.8.3 && < 1.8.5,
      http-types           >= 0.7 && < 0.8,
      snap                 == 0.9.*,
      snap-core            == 0.9.*,
      snap-loader-dynamic  == 0.9.*,
      snap-loader-static   == 0.9.*,
      text                 >= 0.11  && < 0.12,
      unordered-containers >= 0.2 && < 0.3


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

Test-suite oauth-unit-tests
  Type:           exitcode-stdio-1.0
  Hs-source-dirs: tests
  Main-is:        tests.hs
  Ghc-options:    -Wall
  default-language:  Haskell2010
  Build-depends:
    -- Copied from regular dependencies:
    HUnit                >= 1.2  && < 1.3,
    aeson                >= 0.6  && < 0.7,
    base                 >= 4    && < 5,
    bytestring           >= 0.9  && < 1.0,
    bytestring-show      >= 0.3  && < 0.4,
    test-framework       >= 0.6  && < 0.9,
    test-framework-hunit >= 0.2  && < 0.4,
    text                 >= 0.11 && < 0.12,
    snaplet-oauth        >= 0.0.5 && < 0.0.7