From 88d0202000ebb5eaebbaac278ff798e5fbdb6828 Mon Sep 17 00:00:00 2001 From: Felipe Lessa Date: Tue, 12 May 2015 12:51:47 -0300 Subject: [PATCH] Improve groupBy doc. --- src/Database/Esqueleto/Internal/Language.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Database/Esqueleto/Internal/Language.hs b/src/Database/Esqueleto/Internal/Language.hs index 439113b..9448df4 100644 --- a/src/Database/Esqueleto/Internal/Language.hs +++ b/src/Database/Esqueleto/Internal/Language.hs @@ -146,9 +146,10 @@ class (Functor query, Applicative query, Monad query) => -- return (bar ^. BarId, bar ^. BarName, countRows) -- @ -- - -- With groupBy you can sort by aggregate functions, like so (we - -- used @let@ to restrict the more general `countRows` to - -- @SqlExpr (Value Int)@ to avoid ambiguity): + -- With groupBy you can sort by aggregate functions, like so + -- (we used @let@ to restrict the more general 'countRows' to + -- @SqlExpr (Value Int)@ to avoid ambiguity---the second use of + -- 'countRows' has its type restricted by the @:: Int@ below): -- -- @ -- r \<- select $ from \\(foo `'InnerJoin`` bar) -> do