73c87bc2bc
* 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
87 lines
2.3 KiB
Text
87 lines
2.3 KiB
Text
cabal-version: 2.2
|
|
name: tutorial
|
|
version: 0.10
|
|
synopsis: The servant tutorial
|
|
description:
|
|
The servant tutorial can be found at
|
|
<http://docs.servant.dev/>
|
|
homepage: http://docs.servant.dev/
|
|
category: Servant, Documentation
|
|
license: BSD-3-Clause
|
|
license-file: LICENSE
|
|
author: Servant Contributors
|
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
|
build-type: Simple
|
|
tested-with:
|
|
GHC==8.6.5
|
|
GHC==8.8.3, GHC ==8.10.7
|
|
extra-source-files:
|
|
static/index.html
|
|
static/ui.js
|
|
|
|
library
|
|
default-language: Haskell2010
|
|
ghc-options: -Wall -pgmL markdown-unlit
|
|
exposed-modules: ApiType
|
|
, Authentication
|
|
, Client
|
|
, Docs
|
|
, Javascript
|
|
, Server
|
|
|
|
-- Packages `servant` depends on.
|
|
-- We don't need to specify bounds here as this package is never released.
|
|
build-depends:
|
|
base >= 4.7 && <5
|
|
, aeson
|
|
, attoparsec
|
|
, base-compat
|
|
, bytestring
|
|
, containers
|
|
, directory
|
|
, http-api-data
|
|
, http-client
|
|
, http-media
|
|
, http-types
|
|
, mtl
|
|
, string-conversions
|
|
, text
|
|
, transformers
|
|
, wai
|
|
, warp
|
|
|
|
-- Servant dependencies
|
|
build-depends:
|
|
servant
|
|
, servant-server
|
|
, servant-client
|
|
, servant-docs
|
|
|
|
-- Other dependencies: Lower bound around what is in the latest Stackage LTS.
|
|
-- Here can be exceptions if we really need features from the newer versions.
|
|
build-depends:
|
|
blaze-html >= 0.9.0.1 && < 0.10
|
|
, blaze-markup >= 0.8.0.0 && < 0.9
|
|
, cookie >= 0.4.3 && < 0.5
|
|
, js-jquery >= 3.3.1 && < 3.4
|
|
, lucid >= 2.9.11 && < 2.10
|
|
, random >= 1.1 && < 1.3
|
|
, servant-js >= 0.9 && < 0.10
|
|
, time >= 1.6.0.1 && < 1.13
|
|
|
|
-- For legacy tools, we need to specify build-depends too
|
|
build-depends: markdown-unlit >= 0.5.0 && <0.6
|
|
build-tool-depends: markdown-unlit:markdown-unlit >= 0.5.0 && <0.6
|
|
|
|
test-suite spec
|
|
type: exitcode-stdio-1.0
|
|
ghc-options: -Wall
|
|
default-language: Haskell2010
|
|
hs-source-dirs: test
|
|
main-is: Spec.hs
|
|
other-modules: JavascriptSpec
|
|
build-depends: base
|
|
, tutorial
|
|
, hspec
|
|
, hspec-wai
|
|
, string-conversions
|