From 6150d53592a3de33a9b74764b452a8edc64f15d8 Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Tue, 28 Oct 2025 11:41:29 +0500 Subject: [PATCH] refactor: sort exports of Identifiers.hs and SqlFragments.hs Signed-off-by: Taimoor Zaeem (cherry picked from commit 5d9b16938055d191c8e5ff3237d5993db40774b9) --- src/PostgREST/Query/SqlFragment.hs | 34 ++++++++++++------------ src/PostgREST/SchemaCache/Identifiers.hs | 6 ++--- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/PostgREST/Query/SqlFragment.hs b/src/PostgREST/Query/SqlFragment.hs index 0841058a7..0f42b6778 100644 --- a/src/PostgREST/Query/SqlFragment.hs +++ b/src/PostgREST/Query/SqlFragment.hs @@ -6,13 +6,22 @@ Module : PostgREST.Query.SqlFragment Description : Helper functions for PostgREST.QueryBuilder. -} module PostgREST.Query.SqlFragment - ( noLocationF - , handlerF + ( accessibleFuncs + , accessibleTables + , addConfigPgrstInserted , countF - , groupF + , currentSettingF + , escapeIdent + , escapeIdentList + , explainF + , fromJsonBodyF , fromQi + , groupF + , handlerF + , intercalateSnippet , limitOffsetF , locationF + , noLocationF , orderF , pgFmtColumn , pgFmtFilter @@ -21,28 +30,19 @@ module PostgREST.Query.SqlFragment , pgFmtLogicTree , pgFmtOrderTerm , pgFmtSelectItem - , pgFmtSpreadSelectItem , pgFmtSpreadJoinSelectItem - , fromJsonBodyF + , pgFmtSpreadSelectItem , responseHeadersF , responseStatusF - , addConfigPgrstInserted - , currentSettingF , returningF + , schemaDescription + , setConfigWithConstantName + , setConfigWithConstantNameJSON + , setConfigWithDynamicName , singleParameter , sourceCTE , sourceCTEName , unknownEncoder - , intercalateSnippet - , explainF - , setConfigWithConstantName - , setConfigWithDynamicName - , setConfigWithConstantNameJSON - , escapeIdent - , escapeIdentList - , schemaDescription - , accessibleTables - , accessibleFuncs ) where import qualified Data.Aeson as JSON diff --git a/src/PostgREST/SchemaCache/Identifiers.hs b/src/PostgREST/SchemaCache/Identifiers.hs index 2eaf42b3f..ac1bb2a3b 100644 --- a/src/PostgREST/SchemaCache/Identifiers.hs +++ b/src/PostgREST/SchemaCache/Identifiers.hs @@ -2,13 +2,13 @@ {-# LANGUAGE DeriveGeneric #-} module PostgREST.SchemaCache.Identifiers - ( QualifiedIdentifier(..) + ( FieldName + , QualifiedIdentifier(..) , RelIdentifier(..) - , isAnyElement , Schema , TableName - , FieldName , dumpQi + , isAnyElement , toQi ) where