Reinstate cookbook testing to CI
This commit is contained in:
parent
3c7e7775fe
commit
98a12c328b
11 changed files with 66 additions and 54 deletions
61
.travis.yml
61
.travis.yml
|
@ -69,7 +69,7 @@ install:
|
||||||
- rm -fv cabal.project cabal.project.local
|
- rm -fv cabal.project cabal.project.local
|
||||||
- "if [ $HCNUMVER -ge 70800 ]; then sed -i.bak 's/-- ghc-options:.*/ghc-options: -j2/' ${HOME}/.cabal/config; fi"
|
- "if [ $HCNUMVER -ge 70800 ]; then sed -i.bak 's/-- ghc-options:.*/ghc-options: -j2/' ${HOME}/.cabal/config; fi"
|
||||||
- grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
|
- grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
|
||||||
- "printf 'packages: \"servant\" \"servant-client\" \"servant-client-core\" \"servant-docs\" \"servant-foreign\" \"servant-server\" \"doc/tutorial\"\\n' > cabal.project"
|
- "printf 'packages: \"servant\" \"servant-client\" \"servant-client-core\" \"servant-docs\" \"servant-foreign\" \"servant-server\" \"doc/tutorial\" \"doc/cookbook/db-postgres-pool\" \"doc/cookbook/jwt-and-basic-auth\" \"doc/cookbook/db-sqlite-simple\" \"doc/cookbook/basic-auth\" \"doc/cookbook/https\" \"doc/cookbook/structuring-apis\" \"doc/cookbook/using-custom-monad\" \"doc/cookbook/file-upload\"\\n' > cabal.project"
|
||||||
- "echo 'constraints: foundation >=0.0.14,memory <0.14.12 || >0.14.12' >> cabal.project"
|
- "echo 'constraints: foundation >=0.0.14,memory <0.14.12 || >0.14.12' >> cabal.project"
|
||||||
- "echo 'allow-newer: servant-js:servant-foreign' >> cabal.project"
|
- "echo 'allow-newer: servant-js:servant-foreign' >> cabal.project"
|
||||||
- cat cabal.project
|
- cat cabal.project
|
||||||
|
@ -94,8 +94,32 @@ install:
|
||||||
- if [ -f "doc/tutorial/configure.ac" ]; then
|
- if [ -f "doc/tutorial/configure.ac" ]; then
|
||||||
(cd "doc/tutorial" && autoreconf -i);
|
(cd "doc/tutorial" && autoreconf -i);
|
||||||
fi
|
fi
|
||||||
|
- if [ -f "doc/cookbook/db-postgres-pool/configure.ac" ]; then
|
||||||
|
(cd "doc/cookbook/db-postgres-pool" && autoreconf -i);
|
||||||
|
fi
|
||||||
|
- if [ -f "doc/cookbook/jwt-and-basic-auth/configure.ac" ]; then
|
||||||
|
(cd "doc/cookbook/jwt-and-basic-auth" && autoreconf -i);
|
||||||
|
fi
|
||||||
|
- if [ -f "doc/cookbook/db-sqlite-simple/configure.ac" ]; then
|
||||||
|
(cd "doc/cookbook/db-sqlite-simple" && autoreconf -i);
|
||||||
|
fi
|
||||||
|
- if [ -f "doc/cookbook/basic-auth/configure.ac" ]; then
|
||||||
|
(cd "doc/cookbook/basic-auth" && autoreconf -i);
|
||||||
|
fi
|
||||||
|
- if [ -f "doc/cookbook/https/configure.ac" ]; then
|
||||||
|
(cd "doc/cookbook/https" && autoreconf -i);
|
||||||
|
fi
|
||||||
|
- if [ -f "doc/cookbook/structuring-apis/configure.ac" ]; then
|
||||||
|
(cd "doc/cookbook/structuring-apis" && autoreconf -i);
|
||||||
|
fi
|
||||||
|
- if [ -f "doc/cookbook/using-custom-monad/configure.ac" ]; then
|
||||||
|
(cd "doc/cookbook/using-custom-monad" && autoreconf -i);
|
||||||
|
fi
|
||||||
|
- if [ -f "doc/cookbook/file-upload/configure.ac" ]; then
|
||||||
|
(cd "doc/cookbook/file-upload" && autoreconf -i);
|
||||||
|
fi
|
||||||
- rm -f cabal.project.freeze
|
- rm -f cabal.project.freeze
|
||||||
- rm -rf "servant"/.ghc.environment.* "servant-client"/.ghc.environment.* "servant-client-core"/.ghc.environment.* "servant-docs"/.ghc.environment.* "servant-foreign"/.ghc.environment.* "servant-server"/.ghc.environment.* "doc/tutorial"/.ghc.environment.* "servant"/dist "servant-client"/dist "servant-client-core"/dist "servant-docs"/dist "servant-foreign"/dist "servant-server"/dist "doc/tutorial"/dist
|
- rm -rf "servant"/.ghc.environment.* "servant-client"/.ghc.environment.* "servant-client-core"/.ghc.environment.* "servant-docs"/.ghc.environment.* "servant-foreign"/.ghc.environment.* "servant-server"/.ghc.environment.* "doc/tutorial"/.ghc.environment.* "doc/cookbook/db-postgres-pool"/.ghc.environment.* "doc/cookbook/jwt-and-basic-auth"/.ghc.environment.* "doc/cookbook/db-sqlite-simple"/.ghc.environment.* "doc/cookbook/basic-auth"/.ghc.environment.* "doc/cookbook/https"/.ghc.environment.* "doc/cookbook/structuring-apis"/.ghc.environment.* "doc/cookbook/using-custom-monad"/.ghc.environment.* "doc/cookbook/file-upload"/.ghc.environment.* "servant"/dist "servant-client"/dist "servant-client-core"/dist "servant-docs"/dist "servant-foreign"/dist "servant-server"/dist "doc/tutorial"/dist "doc/cookbook/db-postgres-pool"/dist "doc/cookbook/jwt-and-basic-auth"/dist "doc/cookbook/db-sqlite-simple"/dist "doc/cookbook/basic-auth"/dist "doc/cookbook/https"/dist "doc/cookbook/structuring-apis"/dist "doc/cookbook/using-custom-monad"/dist "doc/cookbook/file-upload"/dist
|
||||||
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
|
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
|
||||||
|
|
||||||
# Here starts the actual work to be performed for the package under test;
|
# Here starts the actual work to be performed for the package under test;
|
||||||
|
@ -110,43 +134,32 @@ script:
|
||||||
- (cd "servant-foreign" && cabal sdist)
|
- (cd "servant-foreign" && cabal sdist)
|
||||||
- (cd "servant-server" && cabal sdist)
|
- (cd "servant-server" && cabal sdist)
|
||||||
- (cd "doc/tutorial" && cabal sdist)
|
- (cd "doc/tutorial" && cabal sdist)
|
||||||
|
- (cd "doc/cookbook/db-postgres-pool" && cabal sdist)
|
||||||
|
- (cd "doc/cookbook/jwt-and-basic-auth" && cabal sdist)
|
||||||
|
- (cd "doc/cookbook/db-sqlite-simple" && cabal sdist)
|
||||||
|
- (cd "doc/cookbook/basic-auth" && cabal sdist)
|
||||||
|
- (cd "doc/cookbook/https" && cabal sdist)
|
||||||
|
- (cd "doc/cookbook/structuring-apis" && cabal sdist)
|
||||||
|
- (cd "doc/cookbook/using-custom-monad" && cabal sdist)
|
||||||
|
- (cd "doc/cookbook/file-upload" && cabal sdist)
|
||||||
- echo -en 'travis_fold:end:sdist\\r'
|
- echo -en 'travis_fold:end:sdist\\r'
|
||||||
- echo Unpacking... && echo -en 'travis_fold:start:unpack\\r'
|
- echo Unpacking... && echo -en 'travis_fold:start:unpack\\r'
|
||||||
- mv "servant"/dist/servant-*.tar.gz "servant-client"/dist/servant-client-*.tar.gz "servant-client-core"/dist/servant-client-core-*.tar.gz "servant-docs"/dist/servant-docs-*.tar.gz "servant-foreign"/dist/servant-foreign-*.tar.gz "servant-server"/dist/servant-server-*.tar.gz "doc/tutorial"/dist/tutorial-*.tar.gz ${DISTDIR}/
|
- mv "servant"/dist/servant-*.tar.gz "servant-client"/dist/servant-client-*.tar.gz "servant-client-core"/dist/servant-client-core-*.tar.gz "servant-docs"/dist/servant-docs-*.tar.gz "servant-foreign"/dist/servant-foreign-*.tar.gz "servant-server"/dist/servant-server-*.tar.gz "doc/tutorial"/dist/tutorial-*.tar.gz "doc/cookbook/db-postgres-pool"/dist/cookbook-db-postgres-pool-*.tar.gz "doc/cookbook/jwt-and-basic-auth"/dist/cookbook-jwt-and-basic-auth-*.tar.gz "doc/cookbook/db-sqlite-simple"/dist/cookbook-db-sqlite-simple-*.tar.gz "doc/cookbook/basic-auth"/dist/cookbook-basic-auth-*.tar.gz "doc/cookbook/https"/dist/cookbook-https-*.tar.gz "doc/cookbook/structuring-apis"/dist/cookbook-structuring-apis-*.tar.gz "doc/cookbook/using-custom-monad"/dist/cookbook-using-custom-monad-*.tar.gz "doc/cookbook/file-upload"/dist/cookbook-file-upload-*.tar.gz ${DISTDIR}/
|
||||||
- cd ${DISTDIR} || false
|
- cd ${DISTDIR} || false
|
||||||
- find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
|
- find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
|
||||||
- "printf 'packages: servant-*/*.cabal servant-client-*/*.cabal servant-client-core-*/*.cabal servant-docs-*/*.cabal servant-foreign-*/*.cabal servant-server-*/*.cabal tutorial-*/*.cabal\\n' > cabal.project"
|
- "printf 'packages: servant-*/*.cabal servant-client-*/*.cabal servant-client-core-*/*.cabal servant-docs-*/*.cabal servant-foreign-*/*.cabal servant-server-*/*.cabal tutorial-*/*.cabal cookbook-db-postgres-pool-*/*.cabal cookbook-jwt-and-basic-auth-*/*.cabal cookbook-db-sqlite-simple-*/*.cabal cookbook-basic-auth-*/*.cabal cookbook-https-*/*.cabal cookbook-structuring-apis-*/*.cabal cookbook-using-custom-monad-*/*.cabal cookbook-file-upload-*/*.cabal\\n' > cabal.project"
|
||||||
- "echo 'constraints: foundation >=0.0.14,memory <0.14.12 || >0.14.12' >> cabal.project"
|
- "echo 'constraints: foundation >=0.0.14,memory <0.14.12 || >0.14.12' >> cabal.project"
|
||||||
- "echo 'allow-newer: servant-js:servant-foreign' >> cabal.project"
|
- "echo 'allow-newer: servant-js:servant-foreign' >> cabal.project"
|
||||||
- cat cabal.project
|
- cat cabal.project
|
||||||
- echo -en 'travis_fold:end:unpack\\r'
|
- echo -en 'travis_fold:end:unpack\\r'
|
||||||
- echo Building... && echo -en 'travis_fold:start:build\\r'
|
|
||||||
# this builds all libraries and executables (without tests/benchmarks)
|
|
||||||
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
|
|
||||||
- echo -en 'travis_fold:end:build\\r'
|
|
||||||
|
|
||||||
- echo Building with installed constraints for package in global-db... && echo -en 'travis_fold:start:build-installed\\r'
|
|
||||||
# Build with installed constraints for packages in global-db
|
|
||||||
- if $INSTALLED; then echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks $(${HCPKG} list --global --simple-output --names-only | sed 's/\([a-zA-Z0-9-]\{1,\}\) */--constraint="\1 installed" /g') all | sh; else echo "Not building with installed constraints"; fi
|
|
||||||
- echo -en 'travis_fold:end:build-installed\\r'
|
|
||||||
|
|
||||||
- echo Building with tests and benchmarks... && echo -en 'travis_fold:start:build-everything\\r'
|
- echo Building with tests and benchmarks... && echo -en 'travis_fold:start:build-everything\\r'
|
||||||
# build & run tests, build benchmarks
|
# build & run tests, build benchmarks
|
||||||
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
|
- cabal new-build -w ${HC} ${TEST} ${BENCH} all --max-backjumps=20000
|
||||||
- echo -en 'travis_fold:end:build-everything\\r'
|
- echo -en 'travis_fold:end:build-everything\\r'
|
||||||
- if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} ${BENCH} all; fi
|
- if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} ${BENCH} all; fi
|
||||||
|
|
||||||
- echo cabal check... && echo -en 'travis_fold:start:check\\r'
|
|
||||||
# cabal check
|
|
||||||
- (cd servant-* && cabal check)
|
|
||||||
- (cd servant-client-* && cabal check)
|
|
||||||
- (cd servant-client-core-* && cabal check)
|
|
||||||
- (cd servant-docs-* && cabal check)
|
|
||||||
- (cd servant-foreign-* && cabal check)
|
|
||||||
- (cd servant-server-* && cabal check)
|
|
||||||
- (cd tutorial-* && cabal check)
|
|
||||||
|
|
||||||
- echo -en 'travis_fold:end:check\\r'
|
|
||||||
- echo Haddock... && echo -en 'travis_fold:start:haddock\\r'
|
- echo Haddock... && echo -en 'travis_fold:start:haddock\\r'
|
||||||
# haddock
|
# haddock
|
||||||
- rm -rf ./dist-newstyle
|
- rm -rf ./dist-newstyle
|
||||||
|
|
|
@ -4,5 +4,12 @@ branches: master release-0.12
|
||||||
-- We have inplace packages (servant-js) so we skip installing dependencies in a separate step
|
-- We have inplace packages (servant-js) so we skip installing dependencies in a separate step
|
||||||
install-dependencies-step: False
|
install-dependencies-step: False
|
||||||
|
|
||||||
|
-- this speed-ups the build a little, but we have to check these for release
|
||||||
|
no-tests-no-benchmarks: False
|
||||||
|
build-with-installed-step: False
|
||||||
|
|
||||||
|
-- Don't run cabal check, as cookbook examples won't pass it
|
||||||
|
cabal-check: False
|
||||||
|
|
||||||
-- ghc-options: -j2
|
-- ghc-options: -j2
|
||||||
jobs: :2
|
jobs: :2
|
||||||
|
|
|
@ -5,18 +5,11 @@ packages: servant/
|
||||||
servant-foreign/
|
servant-foreign/
|
||||||
servant-server/
|
servant-server/
|
||||||
doc/tutorial/
|
doc/tutorial/
|
||||||
doc/cookbook/basic-auth/
|
doc/cookbook/*/*.cabal
|
||||||
doc/cookbook/db-postgres-pool/
|
|
||||||
doc/cookbook/using-custom-monad/
|
|
||||||
doc/cookbook/db-sqlite-simple/
|
|
||||||
doc/cookbook/jwt-and-basic-auth/
|
|
||||||
doc/cookbook/file-upload/
|
|
||||||
doc/cookbook/structuring-apis/
|
|
||||||
doc/cookbook/https/
|
|
||||||
|
|
||||||
allow-newer: servant-js:servant-foreign
|
allow-newer: servant-js:servant-foreign
|
||||||
|
|
||||||
constraints:
|
constraints:
|
||||||
-- see https://github.com/haskell-infra/hackage-trustees/issues/119
|
-- see https://github.com/haskell-infra/hackage-trustees/issues/119
|
||||||
foundation >=0.0.14,
|
foundation >=0.0.14,
|
||||||
memory <0.14.2 && >0.14.2
|
memory <0.14.12 || >0.14.12
|
||||||
|
|
|
@ -8,10 +8,9 @@ author: Servant Contributors
|
||||||
maintainer: haskell-servant-maintainers@googlegroups.com
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
|
||||||
|
|
||||||
executable cookbook-basic-auth
|
executable cookbook-basic-auth
|
||||||
if impl(ghc < 7.10.1)
|
|
||||||
buildable: False
|
|
||||||
main-is: BasicAuth.lhs
|
main-is: BasicAuth.lhs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, text >= 1.2
|
, text >= 1.2
|
||||||
|
|
|
@ -8,10 +8,9 @@ author: Servant Contributors
|
||||||
maintainer: haskell-servant-maintainers@googlegroups.com
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
|
||||||
|
|
||||||
executable cookbook-db-postgres-pool
|
executable cookbook-db-postgres-pool
|
||||||
if impl(ghc < 7.10.1)
|
|
||||||
buildable: False
|
|
||||||
main-is: PostgresPool.lhs
|
main-is: PostgresPool.lhs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, bytestring >= 0.10
|
, bytestring >= 0.10
|
||||||
|
@ -27,6 +26,7 @@ executable cookbook-db-postgres-pool
|
||||||
, http-client >= 0.5
|
, http-client >= 0.5
|
||||||
, postgresql-simple >= 0.5
|
, postgresql-simple >= 0.5
|
||||||
, resource-pool >= 0.2
|
, resource-pool >= 0.2
|
||||||
|
, transformers
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
ghc-options: -Wall -pgmL markdown-unlit
|
ghc-options: -Wall -pgmL markdown-unlit
|
||||||
build-tool-depends: markdown-unlit:markdown-unlit
|
build-tool-depends: markdown-unlit:markdown-unlit
|
||||||
|
|
|
@ -8,10 +8,9 @@ author: Servant Contributors
|
||||||
maintainer: haskell-servant-maintainers@googlegroups.com
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
|
||||||
|
|
||||||
executable cookbook-db-sqlite-simple
|
executable cookbook-db-sqlite-simple
|
||||||
if impl(ghc < 7.10.1)
|
|
||||||
buildable: False
|
|
||||||
main-is: DBConnection.lhs
|
main-is: DBConnection.lhs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, text >= 1.2
|
, text >= 1.2
|
||||||
|
@ -25,6 +24,7 @@ executable cookbook-db-sqlite-simple
|
||||||
, markdown-unlit >= 0.4
|
, markdown-unlit >= 0.4
|
||||||
, http-client >= 0.5
|
, http-client >= 0.5
|
||||||
, sqlite-simple >= 0.4
|
, sqlite-simple >= 0.4
|
||||||
|
, transformers
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
ghc-options: -Wall -pgmL markdown-unlit
|
ghc-options: -Wall -pgmL markdown-unlit
|
||||||
build-tool-depends: markdown-unlit:markdown-unlit
|
build-tool-depends: markdown-unlit:markdown-unlit
|
||||||
|
|
|
@ -8,19 +8,19 @@ author: Servant Contributors
|
||||||
maintainer: haskell-servant-maintainers@googlegroups.com
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
|
||||||
|
|
||||||
executable cookbook-file-upload
|
executable cookbook-file-upload
|
||||||
if impl(ghc < 7.10.1)
|
|
||||||
buildable: False
|
|
||||||
main-is: FileUpload.lhs
|
main-is: FileUpload.lhs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, text >= 1.2
|
, text >= 1.2
|
||||||
, mtl >= 2.2
|
, mtl >= 2.1
|
||||||
, network >= 2.6
|
, network >= 2.6
|
||||||
, bytestring >= 0.10
|
, bytestring >= 0.10
|
||||||
, servant
|
, servant
|
||||||
, servant-server
|
, servant-server
|
||||||
, servant-multipart
|
, servant-multipart
|
||||||
|
, transformers
|
||||||
, warp >= 3.2
|
, warp >= 3.2
|
||||||
, wai >= 3.2
|
, wai >= 3.2
|
||||||
, markdown-unlit >= 0.4
|
, markdown-unlit >= 0.4
|
||||||
|
|
|
@ -8,10 +8,9 @@ author: Servant Contributors
|
||||||
maintainer: haskell-servant-maintainers@googlegroups.com
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
|
||||||
|
|
||||||
executable cookbook-https
|
executable cookbook-https
|
||||||
if impl(ghc < 7.10.1)
|
|
||||||
buildable: False
|
|
||||||
main-is: Https.lhs
|
main-is: Https.lhs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, servant
|
, servant
|
||||||
|
|
|
@ -11,10 +11,12 @@ maintainer: haskell-servant-maintainers@googlegroups.com
|
||||||
category: Servant
|
category: Servant
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
|
||||||
|
|
||||||
executable cookbook-jwt-and-basic-auth
|
executable cookbook-jwt-and-basic-auth
|
||||||
if impl(ghc < 7.10.1)
|
if !impl(ghc >= 7.10)
|
||||||
buildable: False
|
buildable: False
|
||||||
|
|
||||||
main-is: JWTAndBasicAuth.lhs
|
main-is: JWTAndBasicAuth.lhs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, text >= 1.2
|
, text >= 1.2
|
||||||
|
@ -23,14 +25,15 @@ executable cookbook-jwt-and-basic-auth
|
||||||
, servant
|
, servant
|
||||||
, servant-client
|
, servant-client
|
||||||
, servant-server
|
, servant-server
|
||||||
, servant-auth
|
, servant-auth ==0.3.*
|
||||||
, servant-auth-server
|
, servant-auth-server >= 0.3.1.0
|
||||||
, warp >= 3.2
|
, warp >= 3.2
|
||||||
, wai >= 3.2
|
, wai >= 3.2
|
||||||
, http-types >= 0.10
|
, http-types >= 0.10
|
||||||
, markdown-unlit >= 0.4
|
, markdown-unlit >= 0.4
|
||||||
, http-client >= 0.5
|
, http-client >= 0.5
|
||||||
, bytestring >= 0.10
|
, bytestring >= 0.10.4
|
||||||
|
, transformers
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
ghc-options: -Wall -pgmL markdown-unlit
|
ghc-options: -Wall -pgmL markdown-unlit
|
||||||
build-tool-depends: markdown-unlit:markdown-unlit
|
build-tool-depends: markdown-unlit:markdown-unlit
|
||||||
|
|
|
@ -8,10 +8,9 @@ author: Servant Contributors
|
||||||
maintainer: haskell-servant-maintainers@googlegroups.com
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
|
||||||
|
|
||||||
executable cookbook-structuring-apis
|
executable cookbook-structuring-apis
|
||||||
if impl(ghc < 7.10.1)
|
|
||||||
buildable: False
|
|
||||||
main-is: StructuringApis.lhs
|
main-is: StructuringApis.lhs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, aeson >= 1.2
|
, aeson >= 1.2
|
||||||
|
|
|
@ -8,10 +8,9 @@ author: Servant Contributors
|
||||||
maintainer: haskell-servant-maintainers@googlegroups.com
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
|
||||||
|
|
||||||
executable cookbook-using-custom-monad
|
executable cookbook-using-custom-monad
|
||||||
if impl(ghc < 7.10.1)
|
|
||||||
buildable: False
|
|
||||||
main-is: UsingCustomMonad.lhs
|
main-is: UsingCustomMonad.lhs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, aeson >= 1.2
|
, aeson >= 1.2
|
||||||
|
@ -23,7 +22,7 @@ executable cookbook-using-custom-monad
|
||||||
, http-client >= 0.5
|
, http-client >= 0.5
|
||||||
, markdown-unlit >= 0.4
|
, markdown-unlit >= 0.4
|
||||||
, stm >= 2.4
|
, stm >= 2.4
|
||||||
, transformers >= 0.4
|
, transformers >= 0.3
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
ghc-options: -Wall -pgmL markdown-unlit
|
ghc-options: -Wall -pgmL markdown-unlit
|
||||||
build-tool-depends: markdown-unlit:markdown-unlit
|
build-tool-depends: markdown-unlit:markdown-unlit
|
||||||
|
|
Loading…
Reference in a new issue