Skip to content

Commit

Permalink
Fix `offset' accidentally adding a limit
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmark committed Oct 15, 2015
1 parent 2efb7f3 commit 130afb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Silk/Opaleye/Range.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 130afb7

Please sign in to comment.