2015-07-22 21:22:42 +02:00
|
|
|
name: servant-mock
|
2016-07-10 14:10:27 +02:00
|
|
|
version: 0.8
|
2015-07-22 21:22:42 +02:00
|
|
|
synopsis: Derive a mock server for free from your servant API types
|
2015-07-23 13:00:37 +02:00
|
|
|
description:
|
|
|
|
Derive a mock server for free from your servant API types
|
|
|
|
.
|
|
|
|
See the @Servant.Mock@ module for the documentation and an example.
|
2015-07-22 21:22:42 +02:00
|
|
|
homepage: http://github.com/haskell-servant/servant
|
|
|
|
license: BSD3
|
|
|
|
license-file: LICENSE
|
2016-01-20 16:58:29 +01:00
|
|
|
author: Servant Contributors
|
|
|
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
|
|
|
copyright: 2015-2016 Servant Contributors
|
2015-07-22 21:22:42 +02:00
|
|
|
category: Web
|
|
|
|
build-type: Simple
|
2016-01-05 05:05:05 +01:00
|
|
|
extra-source-files: include/*.h
|
2015-07-22 21:22:42 +02:00
|
|
|
cabal-version: >=1.10
|
2016-05-13 12:45:30 +02:00
|
|
|
bug-reports: http://github.com/haskell-servant/servant/issues
|
|
|
|
source-repository head
|
|
|
|
type: git
|
|
|
|
location: http://github.com/haskell-servant/servant.git
|
2015-07-22 21:22:42 +02:00
|
|
|
|
|
|
|
flag example
|
|
|
|
description: Build the example too
|
2016-01-13 17:06:20 +01:00
|
|
|
default: True
|
2015-07-22 21:22:42 +02:00
|
|
|
|
|
|
|
library
|
|
|
|
exposed-modules:
|
|
|
|
Servant.Mock
|
|
|
|
build-depends:
|
|
|
|
base >=4.7 && <5,
|
|
|
|
bytestring >= 0.10 && <0.11,
|
2015-10-13 20:40:35 +02:00
|
|
|
http-types >= 0.8 && <0.10,
|
2016-07-10 14:10:27 +02:00
|
|
|
servant == 0.8.*,
|
|
|
|
servant-server == 0.8.*,
|
2016-04-15 15:32:35 +02:00
|
|
|
transformers >= 0.3 && <0.6,
|
2016-08-10 16:49:56 +02:00
|
|
|
QuickCheck >= 2.7 && <2.10,
|
2016-01-04 17:21:14 +01:00
|
|
|
wai >= 3.0 && <3.3
|
2015-07-22 21:22:42 +02:00
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
2015-12-27 17:54:29 +01:00
|
|
|
include-dirs: include
|
2016-04-18 12:07:23 +02:00
|
|
|
ghc-options: -Wall
|
2015-07-22 21:22:42 +02:00
|
|
|
|
|
|
|
executable mock-app
|
|
|
|
main-is: main.hs
|
|
|
|
hs-source-dirs: example
|
|
|
|
default-language: Haskell2010
|
|
|
|
build-depends: aeson, base, servant-mock, servant-server, QuickCheck, warp
|
|
|
|
if flag(example)
|
|
|
|
buildable: True
|
|
|
|
else
|
|
|
|
buildable: False
|
2016-04-18 12:07:23 +02:00
|
|
|
ghc-options: -Wall
|
2016-01-16 19:17:46 +01:00
|
|
|
|
|
|
|
test-suite spec
|
|
|
|
type: exitcode-stdio-1.0
|
2016-04-18 12:07:23 +02:00
|
|
|
ghc-options: -Wall
|
2016-01-16 19:17:46 +01:00
|
|
|
default-language: Haskell2010
|
|
|
|
hs-source-dirs: test
|
|
|
|
main-is: Spec.hs
|
|
|
|
other-modules:
|
|
|
|
Servant.MockSpec
|
|
|
|
build-depends:
|
|
|
|
base,
|
|
|
|
hspec,
|
2016-01-18 12:29:33 +01:00
|
|
|
hspec-wai,
|
|
|
|
QuickCheck,
|
2016-01-16 19:17:46 +01:00
|
|
|
servant,
|
2016-01-18 12:29:33 +01:00
|
|
|
servant-server,
|
|
|
|
servant-mock,
|
2016-01-18 13:22:58 +01:00
|
|
|
aeson,
|
|
|
|
bytestring-conversion,
|
|
|
|
wai
|