From dbd7bb515e4cdcc4fe0830e4319d85f3615aaa09 Mon Sep 17 00:00:00 2001 From: Varun Rajput Date: Sat, 14 Dec 2024 21:25:10 +0530 Subject: [PATCH] docs: Fix pagination examples to use empty list instead of unit Changes examples to use [] to match the expected [Action] parameter type. --- IHP/Pagination/ControllerFunctions.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IHP/Pagination/ControllerFunctions.hs b/IHP/Pagination/ControllerFunctions.hs index 49baf275b..a1299b164 100644 --- a/IHP/Pagination/ControllerFunctions.hs +++ b/IHP/Pagination/ControllerFunctions.hs @@ -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. -- @@ -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. --