servant/servant-swagger/example/example.cabal
Matthieu Coudron 73c87bc2bc
bumped cabal-version field (#1498)
* bumped cabal-version field

Cabal supports two types of licenses, native and SPDX, which can be seen here hackage.haskell.org/package/Cabal-3.6.2.0/docs/Distribution-Types-PackageDescription.html#v:licenseRaw

Several packages use BSD-3-Clause as a license, in conjonction with cabal-version: >=1.10 which cabal parses as Right (UnknownLicense "BSD-3").
If I change teh cabal-version to cabal-version: 2.2 , cabal correctly identifdies the license License (ELicense (ELicenseId BSD_3_Clause)).

* changed license from cabal to spdx format

aka BSD3 -> BSD-3-Clause: next cabal may deprecate the old format
2022-01-04 22:06:23 +01:00

63 lines
1.6 KiB
Plaintext

cabal-version: 2.2
name: example
version: 1.0
synopsis: servant-swagger demonstration
description: servant-swagger demonstration
license: BSD-3-Clause
license-file: LICENSE
author: David Johnson, Nickolay Kudasov
maintainer: nickolay.kudasov@gmail.com
copyright: (c) 2015-2016, Servant contributors
category: Web
build-type: Simple
data-files:
swagger.json
library
ghc-options: -Wall
hs-source-dirs: src/
exposed-modules:
Todo
build-depends: base
, aeson
, aeson-pretty
, bytestring
, lens
, servant
, servant-server
, servant-swagger
, swagger2
, text
, time
default-language: Haskell2010
executable swagger-server
ghc-options: -Wall
hs-source-dirs: server/
main-is: Main.hs
build-depends: base
, example
, servant-server
, warp
default-language: Haskell2010
test-suite swagger-server-spec
ghc-options: -Wall
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules:
TodoSpec
Paths_example
build-depends: base == 4.*
, base-compat >= 0.6.0
, aeson >=0.11.2.0
, bytestring
, example
, hspec
, servant-swagger
, QuickCheck
, quickcheck-instances
default-language: Haskell2010