Skip to content

Commit

Permalink
docs: Update 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 14, 2024
1 parent ad90fc2 commit 282a457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 "SELECT id, firstname, lastname FROM users" []
--
-- Take a look at "IHP.QueryBuilder" for a typesafe approach on building simple queries.
--
Expand All @@ -196,7 +196,7 @@ paginatedSqlQuery = paginatedSqlQueryWithOptions defaultPaginationOptions
-- > (users, pagination) <- paginatedSqlQueryWithOptions
-- > (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 282a457

Please sign in to comment.