packages feed

yu-auth-0.1.0.0: yu-auth.cabal

-- Initial yu-auth.cabal generated by cabal init.  For further 
-- documentation, see http://haskell.org/cabal/users-guide/

name:                yu-auth
version:             0.1.0.0
synopsis:            Auth module for Yu.
description:         Helper of auth via SHA for Yu
homepage:            https://github.com/Qinka/Yu
license:             GPL-3
license-file:        LICENSE
author:              Johann Lee
maintainer:          qinka@live.com
copyright:           Copyright (C) 2017 Johann Lee
category:            Web
build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >= 1.10

flag client
     description: For client, disable some function about server.
     default: False
                     
library
  exposed-modules:     Yu.Auth.Core
                       Yu.Auth.Info
  other-modules:       Paths_yu_auth
  build-depends:       base >= 4 && < 5
                     , cryptonite >= 0.20
                     , yu-utils == 0.1.0.*
                     , memory >= 0.14
  hs-source-dirs:      src
  default-language:    Haskell2010
  if !flag(client)
     exposed-modules: Yu.Auth
     other-extensions: FunctionalDependencies
                       MultiParamTypeClasses
                       OverloadedStrings
  
test-suite test-core
  type:              exitcode-stdio-1.0
  main-is:           test-core.hs
  hs-source-dirs:    test-src
  default-language:  Haskell2010
  other-extensions:  OverloadedStrings
  build-depends:     base >= 4 && < 5
                   , yu-utils
                   , random
                   , MonadRandom
                   , yu-auth
                   
test-suite test-auth
  if flag(client)
     buildable: False
  else
     buildable: True
  type:              exitcode-stdio-1.0
  main-is:           test-auth.hs
  hs-source-dirs:    test-src
  default-language:  Haskell2010
  other-extensions:  OverloadedStrings
  build-depends:     base >= 4 && < 5
                   , yu-auth
                   , yu-utils
                   , hspec >= 2.0
                   , hspec-wai >= 0.6
                   , yesod-test >= 1.5
                   , yesod-core >= 1.4.30
                   , wai >= 3.2



                   
source-repository head
  type: git
  location: https://github.com/Qinka/Yu.git
  subdir: yu-auth
  branch: 0.1/dev/master