cookbook projects: add (lower) bounds for non servant deps

This commit is contained in:
Alp Mestanogullari 2017-12-27 01:33:12 +01:00
parent 40c1315097
commit 8e0cb615ad
8 changed files with 44 additions and 44 deletions

View file

@ -14,17 +14,17 @@ executable cookbook-basic-auth
buildable: False buildable: False
main-is: BasicAuth.lhs main-is: BasicAuth.lhs
build-depends: base == 4.* build-depends: base == 4.*
, text , text >= 1.2
, aeson , aeson >= 1.2
, containers , containers >= 0.5
, servant , servant
, servant-client , servant-client
, servant-server , servant-server
, warp , warp >= 3.2
, wai , wai >= 3.2
, http-types < 0.11 , http-types >= 0.10
, markdown-unlit >= 0.4 , markdown-unlit >= 0.4
, http-client , http-client >= 0.5
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

View file

@ -14,19 +14,19 @@ executable cookbook-db-postgres-pool
buildable: False buildable: False
main-is: PostgresPool.lhs main-is: PostgresPool.lhs
build-depends: base == 4.* build-depends: base == 4.*
, bytestring , bytestring >= 0.10
, text , text >= 1.2
, aeson , aeson >= 1.2
, servant , servant
, servant-client , servant-client
, servant-server , servant-server
, warp , warp >= 3.2
, wai , wai >= 3.2
, http-types < 0.11 , http-types >= 0.10
, markdown-unlit >= 0.4 , markdown-unlit >= 0.4
, http-client , http-client >= 0.5
, postgresql-simple , postgresql-simple >= 0.5
, resource-pool , resource-pool >= 0.2
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

View file

@ -14,17 +14,17 @@ executable cookbook-db-sqlite-simple
buildable: False buildable: False
main-is: DBConnection.lhs main-is: DBConnection.lhs
build-depends: base == 4.* build-depends: base == 4.*
, text , text >= 1.2
, aeson , aeson >= 1.2
, servant , servant
, servant-client , servant-client
, servant-server , servant-server
, warp , warp >= 3.2
, wai , wai >= 3.2
, http-types < 0.11 , http-types >= 0.10
, markdown-unlit >= 0.4 , markdown-unlit >= 0.4
, http-client , http-client >= 0.5
, sqlite-simple , sqlite-simple >= 0.4
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

View file

@ -14,17 +14,17 @@ executable cookbook-file-upload
buildable: False buildable: False
main-is: FileUpload.lhs main-is: FileUpload.lhs
build-depends: base == 4.* build-depends: base == 4.*
, text , text >= 1.2
, mtl , mtl >= 2.2
, network , network >= 2.6
, bytestring , bytestring >= 0.10
, servant , servant
, servant-server , servant-server
, servant-multipart , servant-multipart
, warp , warp >= 3.2
, wai , wai >= 3.2
, markdown-unlit >= 0.4 , markdown-unlit >= 0.4
, http-client , http-client >= 0.5
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

View file

@ -16,9 +16,9 @@ executable cookbook-https
build-depends: base == 4.* build-depends: base == 4.*
, servant , servant
, servant-server , servant-server
, wai , wai >= 3.2
, warp , warp >= 3.2
, warp-tls , warp-tls >= 3.2
, markdown-unlit >= 0.4 , markdown-unlit >= 0.4
default-language: Haskell2010 default-language: Haskell2010
ghc-options: -Wall -pgmL markdown-unlit ghc-options: -Wall -pgmL markdown-unlit

View file

@ -17,20 +17,20 @@ executable cookbook-jwt-and-basic-auth
buildable: False buildable: False
main-is: JWTAndBasicAuth.lhs main-is: JWTAndBasicAuth.lhs
build-depends: base == 4.* build-depends: base == 4.*
, text , text >= 1.2
, aeson , aeson >= 1.2
, containers , containers >= 0.5
, servant , servant
, servant-client , servant-client
, servant-server , servant-server
, servant-auth , servant-auth
, servant-auth-server , servant-auth-server
, warp , warp >= 3.2
, wai , wai >= 3.2
, http-types < 0.11 , http-types >= 0.10
, markdown-unlit >= 0.4 , markdown-unlit >= 0.4
, http-client , http-client >= 0.5
, bytestring , bytestring >= 0.10
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

View file

@ -14,10 +14,10 @@ executable cookbook-structuring-apis
buildable: False buildable: False
main-is: StructuringApis.lhs main-is: StructuringApis.lhs
build-depends: base == 4.* build-depends: base == 4.*
, aeson , aeson >= 1.2
, servant , servant
, servant-server , servant-server
, warp , warp >= 3.2
, markdown-unlit >= 0.4 , markdown-unlit >= 0.4
default-language: Haskell2010 default-language: Haskell2010
ghc-options: -Wall -pgmL markdown-unlit ghc-options: -Wall -pgmL markdown-unlit

View file

@ -12,7 +12,7 @@ in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "servant-dev"; name = "servant-dev";
buildInputs = [ ghc zlib ] buildInputs = [ ghc zlib python3 wget ]
++ (if tutorial then [docstuffs postgresql] else []); ++ (if tutorial then [docstuffs postgresql] else []);
shellHook = '' shellHook = ''
eval $(grep export ${ghc}/bin/ghc) eval $(grep export ${ghc}/bin/ghc)