build cookbook projects in CI
This commit is contained in:
parent
b8c6c0b7c7
commit
6dc9d04e60
6 changed files with 18 additions and 5 deletions
|
@ -5,6 +5,10 @@ packages: servant/
|
||||||
servant-foreign/
|
servant-foreign/
|
||||||
servant-server/
|
servant-server/
|
||||||
doc/tutorial/
|
doc/tutorial/
|
||||||
|
doc/cookbook/basic-auth/
|
||||||
|
doc/cookbook/db-postgres-pool/
|
||||||
|
doc/cookbook/db-sqlite-simple/
|
||||||
|
doc/cookbook/jwt-and-basic-auth/
|
||||||
|
|
||||||
allow-newer: servant-js:servant-foreign
|
allow-newer: servant-js:servant-foreign
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@ build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
|
||||||
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
|
, text
|
||||||
|
@ -20,7 +22,7 @@ executable cookbook-basic-auth
|
||||||
, servant-server
|
, servant-server
|
||||||
, warp
|
, warp
|
||||||
, wai
|
, wai
|
||||||
, http-types
|
, http-types < 0.11
|
||||||
, markdown-unlit >= 0.4
|
, markdown-unlit >= 0.4
|
||||||
, http-client
|
, http-client
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
|
@ -10,6 +10,8 @@ build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
|
||||||
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
|
, bytestring
|
||||||
|
@ -20,7 +22,7 @@ executable cookbook-db-postgres-pool
|
||||||
, servant-server
|
, servant-server
|
||||||
, warp
|
, warp
|
||||||
, wai
|
, wai
|
||||||
, http-types
|
, http-types < 0.11
|
||||||
, markdown-unlit >= 0.4
|
, markdown-unlit >= 0.4
|
||||||
, http-client
|
, http-client
|
||||||
, postgresql-simple
|
, postgresql-simple
|
||||||
|
|
|
@ -10,6 +10,8 @@ build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
|
||||||
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
|
, text
|
||||||
|
@ -19,7 +21,7 @@ executable cookbook-db-sqlite-simple
|
||||||
, servant-server
|
, servant-server
|
||||||
, warp
|
, warp
|
||||||
, wai
|
, wai
|
||||||
, http-types
|
, http-types < 0.11
|
||||||
, markdown-unlit >= 0.4
|
, markdown-unlit >= 0.4
|
||||||
, http-client
|
, http-client
|
||||||
, sqlite-simple
|
, sqlite-simple
|
||||||
|
|
|
@ -17,6 +17,7 @@ you name it!
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
basic-auth/BasicAuth.lhs
|
|
||||||
db-sqlite-simple/DBConnection.lhs
|
db-sqlite-simple/DBConnection.lhs
|
||||||
db-postgres-pool/PostgresPool.lhs
|
db-postgres-pool/PostgresPool.lhs
|
||||||
|
basic-auth/BasicAuth.lhs
|
||||||
|
jwt-and-basic-auth/JWTAndBasicAuth.lhs
|
||||||
|
|
|
@ -13,6 +13,8 @@ build-type: Simple
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
|
|
||||||
executable cookbook-jwt-and-basic-auth
|
executable cookbook-jwt-and-basic-auth
|
||||||
|
if impl(ghc < 7.10.1)
|
||||||
|
buildable: False
|
||||||
main-is: JWTAndBasicAuth.lhs
|
main-is: JWTAndBasicAuth.lhs
|
||||||
build-depends: base == 4.*
|
build-depends: base == 4.*
|
||||||
, text
|
, text
|
||||||
|
@ -25,7 +27,7 @@ executable cookbook-jwt-and-basic-auth
|
||||||
, servant-auth-server
|
, servant-auth-server
|
||||||
, warp
|
, warp
|
||||||
, wai
|
, wai
|
||||||
, http-types
|
, http-types < 0.11
|
||||||
, markdown-unlit >= 0.4
|
, markdown-unlit >= 0.4
|
||||||
, http-client
|
, http-client
|
||||||
, bytestring
|
, bytestring
|
||||||
|
|
Loading…
Add table
Reference in a new issue