2014-11-27 18:28:01 +01:00
|
|
|
name: servant-docs
|
2017-11-06 09:40:39 +01:00
|
|
|
version: 0.11.1
|
2014-12-08 11:25:52 +01:00
|
|
|
synopsis: generate API docs for your servant webservice
|
|
|
|
description:
|
|
|
|
Library for generating API docs from a servant API definition.
|
|
|
|
.
|
2017-07-06 17:43:37 +02:00
|
|
|
Runnable example <https://github.com/haskell-servant/servant/blob/master/servant-docs/example/greet.hs here>.
|
2015-04-20 16:00:51 +02:00
|
|
|
.
|
|
|
|
<https://github.com/haskell-servant/servant/blob/master/servant-docs/CHANGELOG.md CHANGELOG>
|
2014-11-27 18:28:01 +01:00
|
|
|
license: BSD3
|
|
|
|
license-file: LICENSE
|
2016-01-20 16:58:29 +01:00
|
|
|
author: Servant Contributors
|
|
|
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
|
|
|
copyright: 2014-2016 Zalora South East Asia Pte Ltd, Servant Contributors
|
2017-07-25 09:46:57 +02:00
|
|
|
category: Servant, Web
|
2014-11-27 18:28:01 +01:00
|
|
|
build-type: Simple
|
|
|
|
cabal-version: >=1.10
|
2017-10-22 11:59:10 +02:00
|
|
|
tested-with:
|
|
|
|
GHC==7.8.4
|
|
|
|
GHC==7.10.3
|
|
|
|
GHC==8.0.2
|
2017-12-10 12:29:37 +01:00
|
|
|
GHC==8.2.2
|
2016-04-21 12:22:54 +02:00
|
|
|
homepage: http://haskell-servant.readthedocs.org/
|
2015-04-20 15:55:41 +02:00
|
|
|
Bug-reports: http://github.com/haskell-servant/servant/issues
|
2015-01-04 17:18:40 +01:00
|
|
|
extra-source-files:
|
2016-01-05 05:05:05 +01:00
|
|
|
include/*.h
|
2015-01-04 17:18:40 +01:00
|
|
|
CHANGELOG.md
|
|
|
|
README.md
|
2014-12-08 11:25:52 +01:00
|
|
|
source-repository head
|
|
|
|
type: git
|
2015-04-20 15:55:41 +02:00
|
|
|
location: http://github.com/haskell-servant/servant.git
|
2014-11-27 18:28:01 +01:00
|
|
|
|
|
|
|
library
|
|
|
|
exposed-modules:
|
2015-04-08 16:27:38 +02:00
|
|
|
Servant.Docs
|
|
|
|
, Servant.Docs.Internal
|
2015-12-10 21:27:15 +01:00
|
|
|
, Servant.Docs.Internal.Pretty
|
2014-11-27 18:28:01 +01:00
|
|
|
build-depends:
|
|
|
|
base >=4.7 && <5
|
2017-01-19 18:05:01 +01:00
|
|
|
, base-compat >= 0.9.1 && <0.10
|
2015-12-10 03:04:47 +01:00
|
|
|
, aeson
|
|
|
|
, aeson-pretty
|
2014-11-27 18:28:01 +01:00
|
|
|
, bytestring
|
2015-05-02 03:21:03 +02:00
|
|
|
, case-insensitive
|
2014-11-27 18:28:01 +01:00
|
|
|
, hashable
|
2015-02-24 08:54:14 +01:00
|
|
|
, http-media >= 0.6
|
2015-05-02 03:21:03 +02:00
|
|
|
, http-types >= 0.7
|
2014-11-27 18:28:01 +01:00
|
|
|
, lens
|
2017-11-06 09:40:39 +01:00
|
|
|
, servant == 0.12.*
|
2014-11-27 18:28:01 +01:00
|
|
|
, string-conversions
|
2014-12-08 13:07:34 +01:00
|
|
|
, text
|
2014-11-27 18:28:01 +01:00
|
|
|
, unordered-containers
|
Make default ToSample instances productive
The default Generics-based ToSample instance now uses Omega type
to productively produce distinct samples. The previous version
was based on lists and hence left-recursive. This means that with
previous versions the default toSamples for [Bool] would return an
infinite list like this:
[[],[False],[False,False],[False,False,False],...
As you can see it would never produce a list with True in it.
Omega handles this and produces a more diverse output:
[[],[False],[False,False],[True],...
This is still not the best possible case, but to do better we need
to use Omega not only in GToSample, but in ToSample as well since
GToSample uses ToSample instances recursively.
2015-09-19 00:25:26 +02:00
|
|
|
, control-monad-omega == 0.3.*
|
2017-01-19 18:05:01 +01:00
|
|
|
if !impl(ghc >= 8.0)
|
|
|
|
build-depends:
|
2017-10-06 01:55:50 +02:00
|
|
|
semigroups >=0.17 && <0.19
|
2014-11-27 18:28:01 +01:00
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
2014-12-08 11:25:52 +01:00
|
|
|
ghc-options: -Wall
|
2016-04-22 08:32:39 +02:00
|
|
|
if impl(ghc >= 8.0)
|
|
|
|
ghc-options: -Wno-redundant-constraints
|
2015-12-27 17:54:29 +01:00
|
|
|
include-dirs: include
|
2014-11-27 18:28:01 +01:00
|
|
|
|
|
|
|
executable greet-docs
|
|
|
|
main-is: greet.hs
|
|
|
|
hs-source-dirs: example
|
2014-12-08 11:25:52 +01:00
|
|
|
ghc-options: -Wall
|
2015-04-08 16:27:38 +02:00
|
|
|
build-depends:
|
|
|
|
base
|
|
|
|
, aeson
|
|
|
|
, lens
|
|
|
|
, servant
|
|
|
|
, servant-docs
|
|
|
|
, string-conversions
|
|
|
|
, text
|
2014-11-27 18:28:01 +01:00
|
|
|
default-language: Haskell2010
|
2015-04-08 16:27:38 +02:00
|
|
|
|
|
|
|
test-suite spec
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Spec.hs
|
2015-09-23 18:26:05 +02:00
|
|
|
other-modules: Servant.DocsSpec
|
2017-10-22 13:13:18 +02:00
|
|
|
build-tool-depends:
|
|
|
|
hspec-discover:hspec-discover
|
2015-04-08 16:27:38 +02:00
|
|
|
hs-source-dirs: test
|
|
|
|
ghc-options: -Wall
|
|
|
|
build-depends:
|
|
|
|
base
|
|
|
|
, aeson
|
|
|
|
, hspec
|
2015-06-16 22:38:14 +02:00
|
|
|
, lens
|
2015-04-08 16:27:38 +02:00
|
|
|
, servant
|
|
|
|
, servant-docs
|
|
|
|
, string-conversions
|
|
|
|
default-language: Haskell2010
|