summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphadej <>2017-11-08 10:44:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2017-11-08 10:44:00 (GMT)
commit03b4e619195e7e3f6bd8bf02c81b98dd168c9fb1 (patch)
treea24db8f8da29198c76ab9e1567bdad6ea43e7b91
parent0d597cba264f742f16fb504731c9ae114c78f74e (diff)
version 0.3.0.10.3.0.1
-rw-r--r--package.yaml70
-rw-r--r--servant-auth.cabal45
-rw-r--r--test/Doctest.hs26
-rw-r--r--test/Spec.hs1
4 files changed, 3 insertions, 139 deletions
diff --git a/package.yaml b/package.yaml
deleted file mode 100644
index 34f0eaa..0000000
--- a/package.yaml
+++ /dev/null
@@ -1,70 +0,0 @@
-name: servant-auth
-version: 0.3.0.0
-synopsis: Authentication combinators for servant
-description: |
- This package provides an @Auth@ combinator for 'servant'. This combinator
- allows using different authentication schemes in a straightforward way,
- and possibly in conjunction with one another.
-
- 'servant-auth' additionally provides concrete authentication schemes, such
- as Basic Access Authentication, JSON Web Tokens, and Cookies.
-
- For more details on how to use this, see the <http://github.com/plow-technologies/servant-auth#readme README>.
-homepage: http://github.com/plow-technologies/servant-auth#readme
-license: BSD3
-license-file: LICENSE
-author: Julian K. Arni
-maintainer: jkarni@gmail.com
-category: Web, Servant, Authentication
-copyright: (c) Julian K. Arni
-github: plow-technologies/servant-auth
-tested-with: GHC == 7.10.2, GHC == 8.0.1
-
-extra-source-files:
- - package.yaml
-
-ghc-options: -Wall
-
-dependencies:
- - base >= 4.8 && < 4.10
-
-default-extensions:
- - AutoDeriveTypeable
- - ConstraintKinds
- - DataKinds
- - DefaultSignatures
- - DeriveFoldable
- - DeriveFunctor
- - DeriveGeneric
- - DeriveTraversable
- - FlexibleContexts
- - FlexibleInstances
- - FunctionalDependencies
- - GADTs
- - KindSignatures
- - MultiParamTypeClasses
- - OverloadedStrings
- - RankNTypes
- - ScopedTypeVariables
- - TypeFamilies
- - TypeOperators
-
-library:
- source-dirs: src
- other-modules: []
-
-tests:
- spec:
- main: Spec.hs
- source-dirs: test
- dependencies:
- - servant-auth
- - hspec > 2 && < 3
- - QuickCheck >= 2.8 && < 2.10
- doctest:
- main: Doctest.hs
- source-dirs: test
- dependencies:
- - doctest >= 0.9 && < 0.12
- - Glob >= 0.7 && < 0.8
- - yaml == 0.8.*
diff --git a/servant-auth.cabal b/servant-auth.cabal
index 4c26e4f..c532d4b 100644
--- a/servant-auth.cabal
+++ b/servant-auth.cabal
@@ -1,9 +1,5 @@
--- This file has been generated from package.yaml by hpack version 0.17.0.
---
--- see: https://github.com/sol/hpack
-
name: servant-auth
-version: 0.3.0.0
+version: 0.3.0.1
synopsis: Authentication combinators for servant
description: This package provides an @Auth@ combinator for 'servant'. This combinator
allows using different authentication schemes in a straightforward way,
@@ -21,13 +17,10 @@ maintainer: jkarni@gmail.com
copyright: (c) Julian K. Arni
license: BSD3
license-file: LICENSE
-tested-with: GHC == 7.10.2, GHC == 8.0.1
+tested-with: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.1
build-type: Simple
cabal-version: >= 1.10
-extra-source-files:
- package.yaml
-
source-repository head
type: git
location: https://github.com/plow-technologies/servant-auth
@@ -38,39 +31,7 @@ library
default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall
build-depends:
- base >= 4.8 && < 4.10
+ base >= 4.8 && < 4.11
exposed-modules:
Servant.Auth
default-language: Haskell2010
-
-test-suite doctest
- type: exitcode-stdio-1.0
- main-is: Doctest.hs
- hs-source-dirs:
- test
- default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
- ghc-options: -Wall
- build-depends:
- base >= 4.8 && < 4.10
- , doctest >= 0.9 && < 0.12
- , Glob >= 0.7 && < 0.8
- , yaml == 0.8.*
- other-modules:
- Spec
- default-language: Haskell2010
-
-test-suite spec
- type: exitcode-stdio-1.0
- main-is: Spec.hs
- hs-source-dirs:
- test
- default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
- ghc-options: -Wall
- build-depends:
- base >= 4.8 && < 4.10
- , servant-auth
- , hspec > 2 && < 3
- , QuickCheck >= 2.8 && < 2.10
- other-modules:
- Doctest
- default-language: Haskell2010
diff --git a/test/Doctest.hs b/test/Doctest.hs
deleted file mode 100644
index 849dbbd..0000000
--- a/test/Doctest.hs
+++ /dev/null
@@ -1,26 +0,0 @@
-module Main (main) where
-
--- Runs doctest on all files in "src" dir. Assumes:
--- (a) You are using hpack
--- (b) The top-level "default-extensions" are the only extensions besides the
--- ones in the files.
-
-import System.FilePath.Glob (glob)
-import Test.DocTest (doctest)
-import Data.Yaml
-
-newtype Exts = Exts { getExts :: [String] }
- deriving (Eq, Show, Read)
-
-instance FromJSON Exts where
- parseJSON (Object v) = Exts <$> v .: "default-extensions"
- parseJSON _ = fail "expecting object"
-
-main :: IO ()
-main = do
- hpack' <- decodeFile "package.yaml"
- hpack <- case hpack' of
- Nothing -> return $ Exts []
- Just v -> return v
- files <- glob "src/**/*.hs"
- doctest $ files ++ fmap ("-X" ++) (getExts hpack)
diff --git a/test/Spec.hs b/test/Spec.hs
deleted file mode 100644
index a824f8c..0000000
--- a/test/Spec.hs
+++ /dev/null
@@ -1 +0,0 @@
-{-# OPTIONS_GHC -F -pgmF hspec-discover #-}