73 lines
1.9 KiB
Text
73 lines
1.9 KiB
Text
name: servant-mock
|
|
version: 0.8
|
|
synopsis: Derive a mock server for free from your servant API types
|
|
description:
|
|
Derive a mock server for free from your servant API types
|
|
.
|
|
See the @Servant.Mock@ module for the documentation and an example.
|
|
homepage: http://github.com/haskell-servant/servant
|
|
license: BSD3
|
|
license-file: LICENSE
|
|
author: Servant Contributors
|
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
|
copyright: 2015-2016 Servant Contributors
|
|
category: Web
|
|
build-type: Simple
|
|
extra-source-files: include/*.h
|
|
cabal-version: >=1.10
|
|
bug-reports: http://github.com/haskell-servant/servant/issues
|
|
source-repository head
|
|
type: git
|
|
location: http://github.com/haskell-servant/servant.git
|
|
|
|
flag example
|
|
description: Build the example too
|
|
default: True
|
|
|
|
library
|
|
exposed-modules:
|
|
Servant.Mock
|
|
build-depends:
|
|
base >=4.7 && <5,
|
|
bytestring >= 0.10 && <0.11,
|
|
http-types >= 0.8 && <0.10,
|
|
servant == 0.8.*,
|
|
servant-server == 0.8.*,
|
|
transformers >= 0.3 && <0.6,
|
|
QuickCheck >= 2.7 && <2.9,
|
|
wai >= 3.0 && <3.3
|
|
hs-source-dirs: src
|
|
default-language: Haskell2010
|
|
include-dirs: include
|
|
ghc-options: -Wall
|
|
|
|
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
|
|
ghc-options: -Wall
|
|
|
|
test-suite spec
|
|
type: exitcode-stdio-1.0
|
|
ghc-options: -Wall
|
|
default-language: Haskell2010
|
|
hs-source-dirs: test
|
|
main-is: Spec.hs
|
|
other-modules:
|
|
Servant.MockSpec
|
|
build-depends:
|
|
base,
|
|
hspec,
|
|
hspec-wai,
|
|
QuickCheck,
|
|
servant,
|
|
servant-server,
|
|
servant-mock,
|
|
aeson,
|
|
bytestring-conversion,
|
|
wai
|