Skip to content

Commit

Permalink
Fix the order of offset and limit in range, limit needs to be after…
Browse files Browse the repository at this point in the history
… offset.
  • Loading branch information
bergmark committed Oct 15, 2015
1 parent 130afb7 commit 2b607c8
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 @@ -44,7 +44,7 @@ mrange :: Maybe Range -> Query a -> Query a
mrange = maybe id range

range :: Range -> Query a -> Query a
range (Offset o, Limit l) = O.offset o . O.limit l
range (Offset o, Limit l) = O.limit l . O.offset o


newtype Offset = Offset { unOffset :: Int }
Expand Down

0 comments on commit 2b607c8

Please sign in to comment.