Skip to content

Commit 53e943b

Browse files
author
Gaël Deest
authored
Merge pull request #1397 from akhesaCaro/compiling_sqlite_simple_cookbook
Fixing Servant cookbooks part 1 (-testing + sqlite-simple)
2 parents a74d9d9 + 269e546 commit 53e943b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cabal.project

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ packages:
2626
doc/cookbook/custom-errors
2727
doc/cookbook/basic-streaming
2828
doc/cookbook/db-postgres-pool
29-
-- doc/cookbook/db-sqlite-simple
29+
doc/cookbook/db-sqlite-simple
3030
doc/cookbook/file-upload
3131
doc/cookbook/generic
3232
-- doc/cookbook/hoist-server-with-context
@@ -54,9 +54,6 @@ constraints:
5454
constraints: base-compat ^>=0.11
5555
constraints: semigroups ^>=0.19
5656

57-
-- MonadFail
58-
-- https://github.com/nurpax/sqlite-simple/issues/74
59-
constraints: sqlite-simple < 0
6057
-- allow-newer: sqlite-simple-0.4.16.0:semigroups
6158
-- allow-newer: direct-sqlite-2.3.24:semigroups
6259

doc/cookbook/db-sqlite-simple/db-sqlite-simple.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ executable cookbook-db-sqlite-simple
2323
, http-types >= 0.12
2424
, markdown-unlit >= 0.4
2525
, http-client >= 0.5
26-
, sqlite-simple >= 0.4
26+
, sqlite-simple >= 0.4.5.0
2727
, transformers
2828
default-language: Haskell2010
2929
ghc-options: -Wall -pgmL markdown-unlit

servant-docs/test/Servant/DocsSpec.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,11 @@ spec = describe "Servant.Docs" $ do
126126
it "mentions headers" $ do
127127
md `shouldContain` "- This endpoint is sensitive to the value of the **X-Test** HTTP header."
128128

129-
it "contains response samples" $
130-
md `shouldContain` "{\"dt1field1\":\"field 1\",\"dt1field2\":13}"
129+
it "contains response samples - dt1field1" $
130+
md `shouldContain` "\"dt1field1\":\"field 1\""
131+
it "contains response samples - dt1field2" $
132+
md `shouldContain` "\"dt1field2\":13"
133+
131134
it "contains request body samples" $
132135
md `shouldContain` "17"
133136

0 commit comments

Comments
 (0)