packages feed

servant-oauth2-examples-0.1.0.0: servant-oauth2-examples.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack

name:           servant-oauth2-examples
version:        0.1.0.0
synopsis:       Example applications using this library in three ways.
description:    Three examples of using this library, either just to demonstrate the end-to-end connection ("Simple"), with cookies ("Cookies") or with type-level authorisation ("Authorised").
category:       Web
homepage:       https://github.com/tweag/servant-oauth2#readme
author:         Tweag
maintainer:     noon.vandersilk@tweag.io
copyright:      2022 Tweag
license:        OtherLicense
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    example-auth/db.txt
    LICENSE

library
  exposed-modules:
      Servant.OAuth2.Examples.Authorisation
      Servant.OAuth2.Examples.Config
      Servant.OAuth2.Examples.Cookies
      Servant.OAuth2.Examples.Simple
  other-modules:
      Paths_servant_oauth2_examples
  hs-source-dirs:
      src
  default-extensions:
      DataKinds
      DeriveGeneric
      DerivingStrategies
      FlexibleContexts
      ImportQualifiedPost
      KindSignatures
      OverloadedStrings
      PackageImports
      ScopedTypeVariables
      TypeApplications
      TypeOperators
  ghc-options: -W -Wall
  build-depends:
      base >=4.7 && <5
    , base64-bytestring
    , binary
    , bytestring
    , clientsession
    , cookie
    , hoauth2
    , http-types
    , mtl
    , servant
    , servant-blaze
    , servant-oauth2
    , servant-server
    , shakespeare
    , text
    , tomland
    , unordered-containers
    , uri-bytestring
    , wai
    , wai-middleware-auth
    , warp
  default-language: Haskell2010

executable example-auth
  main-is: Main.hs
  other-modules:
      Paths_servant_oauth2_examples
  hs-source-dirs:
      example-auth
  default-extensions:
      DataKinds
      DeriveGeneric
      DerivingStrategies
      FlexibleContexts
      ImportQualifiedPost
      KindSignatures
      OverloadedStrings
      PackageImports
      ScopedTypeVariables
      TypeApplications
      TypeOperators
  ghc-options: -W -Wall
  build-depends:
      base >=4.7 && <5
    , base64-bytestring
    , binary
    , bytestring
    , clientsession
    , cookie
    , hoauth2
    , http-types
    , mtl
    , servant
    , servant-blaze
    , servant-oauth2
    , servant-oauth2-examples
    , servant-server
    , shakespeare
    , text
    , tomland
    , unordered-containers
    , uri-bytestring
    , wai
    , wai-middleware-auth
    , warp
  default-language: Haskell2010

executable example-cookies
  main-is: Main.hs
  other-modules:
      Paths_servant_oauth2_examples
  hs-source-dirs:
      example-cookies
  default-extensions:
      DataKinds
      DeriveGeneric
      DerivingStrategies
      FlexibleContexts
      ImportQualifiedPost
      KindSignatures
      OverloadedStrings
      PackageImports
      ScopedTypeVariables
      TypeApplications
      TypeOperators
  ghc-options: -W -Wall
  build-depends:
      base >=4.7 && <5
    , base64-bytestring
    , binary
    , bytestring
    , clientsession
    , cookie
    , hoauth2
    , http-types
    , mtl
    , servant
    , servant-blaze
    , servant-oauth2
    , servant-oauth2-examples
    , servant-server
    , shakespeare
    , text
    , tomland
    , unordered-containers
    , uri-bytestring
    , wai
    , wai-middleware-auth
    , warp
  default-language: Haskell2010

executable example-simple
  main-is: Main.hs
  other-modules:
      Paths_servant_oauth2_examples
  hs-source-dirs:
      example-simple
  default-extensions:
      DataKinds
      DeriveGeneric
      DerivingStrategies
      FlexibleContexts
      ImportQualifiedPost
      KindSignatures
      OverloadedStrings
      PackageImports
      ScopedTypeVariables
      TypeApplications
      TypeOperators
  ghc-options: -W -Wall
  build-depends:
      base >=4.7 && <5
    , base64-bytestring
    , binary
    , bytestring
    , clientsession
    , cookie
    , hoauth2
    , http-types
    , mtl
    , servant
    , servant-blaze
    , servant-oauth2
    , servant-oauth2-examples
    , servant-server
    , shakespeare
    , text
    , tomland
    , unordered-containers
    , uri-bytestring
    , wai
    , wai-middleware-auth
    , warp
  default-language: Haskell2010