5f947d1c43
- Almost everything 0.15; also servant-foreign jumped to 0.15, for consistency - Bump lower bounds of dependencies to most recent versions atm - Use hspec-2.6.0 - Update `stack.yaml` accordingly - Use base-compat a bit more - Drop aeson-compat dependency (in tests and tutorial)
91 lines
2.4 KiB
Text
91 lines
2.4 KiB
Text
name: tutorial
|
|
version: 0.10
|
|
synopsis: The servant tutorial
|
|
description:
|
|
The servant tutorial can be found at
|
|
<http://haskell-servant.readthedocs.org/>
|
|
homepage: http://haskell-servant.readthedocs.org/
|
|
category: Servant, Documentation
|
|
license: BSD3
|
|
license-file: LICENSE
|
|
author: Servant Contributors
|
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
|
build-type: Simple
|
|
cabal-version: >=1.10
|
|
tested-with:
|
|
GHC==8.0.2
|
|
GHC==8.2.2
|
|
GHC==8.4.4
|
|
GHC==8.6.2
|
|
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 && <4.13
|
|
, 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.2.1 && < 3.3
|
|
, lucid >= 2.9.11 && < 2.10
|
|
, random >= 1.1 && < 1.2
|
|
, servant-js >= 0.9 && < 0.10
|
|
, time >= 1.6.0.1 && < 1.9
|
|
|
|
-- 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-tool-depends:
|
|
hspec-discover:hspec-discover
|
|
build-depends: base
|
|
, tutorial
|
|
, hspec
|
|
, hspec-wai
|
|
, string-conversions
|