diff --git a/cabal.project b/cabal.project index db9c3578..1a2b1085 100644 --- a/cabal.project +++ b/cabal.project @@ -5,6 +5,10 @@ packages: servant/ servant-foreign/ servant-server/ 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 diff --git a/doc/cookbook/basic-auth/basic-auth.cabal b/doc/cookbook/basic-auth/basic-auth.cabal index 7fde791c..8254bee2 100644 --- a/doc/cookbook/basic-auth/basic-auth.cabal +++ b/doc/cookbook/basic-auth/basic-auth.cabal @@ -10,6 +10,8 @@ build-type: Simple cabal-version: >=1.10 executable cookbook-basic-auth + if impl(ghc < 7.10.1) + buildable: False main-is: BasicAuth.lhs build-depends: base == 4.* , text @@ -20,7 +22,7 @@ executable cookbook-basic-auth , servant-server , warp , wai - , http-types + , http-types < 0.11 , markdown-unlit >= 0.4 , http-client default-language: Haskell2010 diff --git a/doc/cookbook/db-postgres-pool/db-postgres-pool.cabal b/doc/cookbook/db-postgres-pool/db-postgres-pool.cabal index f247f31c..b2faa09d 100644 --- a/doc/cookbook/db-postgres-pool/db-postgres-pool.cabal +++ b/doc/cookbook/db-postgres-pool/db-postgres-pool.cabal @@ -10,6 +10,8 @@ build-type: Simple cabal-version: >=1.10 executable cookbook-db-postgres-pool + if impl(ghc < 7.10.1) + buildable: False main-is: PostgresPool.lhs build-depends: base == 4.* , bytestring @@ -20,7 +22,7 @@ executable cookbook-db-postgres-pool , servant-server , warp , wai - , http-types + , http-types < 0.11 , markdown-unlit >= 0.4 , http-client , postgresql-simple diff --git a/doc/cookbook/db-sqlite-simple/db-sqlite-simple.cabal b/doc/cookbook/db-sqlite-simple/db-sqlite-simple.cabal index 7df6a159..13d37644 100644 --- a/doc/cookbook/db-sqlite-simple/db-sqlite-simple.cabal +++ b/doc/cookbook/db-sqlite-simple/db-sqlite-simple.cabal @@ -10,6 +10,8 @@ build-type: Simple cabal-version: >=1.10 executable cookbook-db-sqlite-simple + if impl(ghc < 7.10.1) + buildable: False main-is: DBConnection.lhs build-depends: base == 4.* , text @@ -19,7 +21,7 @@ executable cookbook-db-sqlite-simple , servant-server , warp , wai - , http-types + , http-types < 0.11 , markdown-unlit >= 0.4 , http-client , sqlite-simple diff --git a/doc/cookbook/index.rst b/doc/cookbook/index.rst index 906041b7..0472d768 100644 --- a/doc/cookbook/index.rst +++ b/doc/cookbook/index.rst @@ -17,6 +17,7 @@ you name it! .. toctree:: :maxdepth: 1 - basic-auth/BasicAuth.lhs db-sqlite-simple/DBConnection.lhs db-postgres-pool/PostgresPool.lhs + basic-auth/BasicAuth.lhs + jwt-and-basic-auth/JWTAndBasicAuth.lhs diff --git a/doc/cookbook/jwt-and-basic-auth/jwt-and-basic-auth.cabal b/doc/cookbook/jwt-and-basic-auth/jwt-and-basic-auth.cabal index 3c530f01..91965d91 100644 --- a/doc/cookbook/jwt-and-basic-auth/jwt-and-basic-auth.cabal +++ b/doc/cookbook/jwt-and-basic-auth/jwt-and-basic-auth.cabal @@ -13,6 +13,8 @@ build-type: Simple cabal-version: >=1.10 executable cookbook-jwt-and-basic-auth + if impl(ghc < 7.10.1) + buildable: False main-is: JWTAndBasicAuth.lhs build-depends: base == 4.* , text @@ -25,7 +27,7 @@ executable cookbook-jwt-and-basic-auth , servant-auth-server , warp , wai - , http-types + , http-types < 0.11 , markdown-unlit >= 0.4 , http-client , bytestring