From 536acec82084d426db338d304cef28e4d35adef8 Mon Sep 17 00:00:00 2001 From: Joe Nelson Date: Wed, 27 Jan 2016 17:31:57 -0800 Subject: [PATCH] Turn down warning level a little --- src/PostgREST/App.hs | 2 +- stack.yaml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/PostgREST/App.hs b/src/PostgREST/App.hs index 623a5890f..dd589c730 100644 --- a/src/PostgREST/App.hs +++ b/src/PostgREST/App.hs @@ -85,7 +85,7 @@ app dbStructure conf reqBody req = then responseLBS status404 [] "" else responseLBS status200 [contentTypeH] (cs body) else do - let frm = toInteger $ rangeOffset range + let frm = rangeOffset range to = frm + toInteger queryTotal - 1 contentRange = contentRangeH frm to (toInteger <$> tableTotal) status = rangeStatus frm to (toInteger <$> tableTotal) diff --git a/stack.yaml b/stack.yaml index 846ff18cf..010ef7e76 100644 --- a/stack.yaml +++ b/stack.yaml @@ -3,9 +3,8 @@ extra-deps: - hasql-0.19.3.3 - Ranged-sets-0.3.0 - packdeps-0.4.2.1 -# Almost all warnings, plus minimal-imports for packunused ghc-options: - postgrest: -ddump-minimal-imports -Werror -Wall -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -fwarn-monomorphism-restriction -fwarn-auto-orphans -fwarn-missing-local-sigs -fwarn-missing-exported-sigs -fwarn-missing-import-lists -fwarn-identities + postgrest: -Werror -Wall -fwarn-monomorphism-restriction -fwarn-missing-exported-sigs -fwarn-identities packages: - '.'