Commit 2a559808 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski Committed by Alexandre Delanoë

[table] filterRows is generic

parent e5822081
......@@ -168,7 +168,7 @@ type FilterRowsParams =
params :: Params
)
filterRows :: Record FilterRowsParams -> Rows -> Rows
filterRows :: forall a. Record FilterRowsParams -> L.List a -> L.List a
filterRows { params: { limit, offset, orderBy } } rs = newRs
where
newRs = L.take limit $ L.drop offset $ rs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment