Skip to content

Commit

Permalink
docs: Fix pagination examples to use empty list instead of unit
Browse files Browse the repository at this point in the history
Changes examples to use [] to match the expected [Action] parameter type.
  • Loading branch information
rvarun11 committed Dec 15, 2024
1 parent ad90fc2 commit dbd7bb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IHP/Pagination/ControllerFunctions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ defaultPaginationOptions =
--
-- __Example:__
--
-- > (users, pagination) <- paginatedSqlQuery "SELECT id, firstname, lastname FROM users" ()
-- > (users, pagination) <- paginatedSqlQuery @User "SELECT id, firstname, lastname FROM users" []
--
-- Take a look at "IHP.QueryBuilder" for a typesafe approach on building simple queries.
--
Expand All @@ -193,10 +193,10 @@ paginatedSqlQuery = paginatedSqlQueryWithOptions defaultPaginationOptions
--
-- __Example:__
--
-- > (users, pagination) <- paginatedSqlQueryWithOptions
-- > (users, pagination) <- paginatedSqlQueryWithOptions @User
-- > (defaultPaginationOptions |> set #maxItems 10)
-- > "SELECT id, firstname, lastname FROM users"
-- > ()
-- > []
--
-- Take a look at "IHP.QueryBuilder" for a typesafe approach on building simple queries.
--
Expand Down

0 comments on commit dbd7bb5

Please sign in to comment.