From 130afb72968bf17b2aa22c3c7fa6a4bfbe89d428 Mon Sep 17 00:00:00 2001 From: Adam Bergmark Date: Thu, 15 Oct 2015 18:00:43 +0200 Subject: [PATCH] Fix `offset' accidentally adding a limit --- src/Silk/Opaleye/Range.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Silk/Opaleye/Range.hs b/src/Silk/Opaleye/Range.hs index 5aff5cc..35fb37c 100644 --- a/src/Silk/Opaleye/Range.hs +++ b/src/Silk/Opaleye/Range.hs @@ -54,7 +54,7 @@ moffset :: Maybe Offset -> Query a -> Query a moffset = maybe id offset offset :: Offset -> Query a -> Query a -offset = O.limit . unOffset +offset = O.offset . unOffset getOffset :: Range -> Int getOffset = unOffset . fst