aboutsummaryrefslogtreecommitdiffstats
path: root/src/Store/Query/Printer.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-13 07:50:30 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-13 07:50:30 +0100
commit748f82632e5ab6fc2c2f7a6eedb1ac4c467ccb3e (patch)
tree17467887fd046caf8ca68593a02156489264d39d /src/Store/Query/Printer.hs
parent7bb206831b37dde7a0f3208f445c8e645cc36a18 (diff)
explicitly construct objects in SELECT
Diffstat (limited to 'src/Store/Query/Printer.hs')
-rw-r--r--src/Store/Query/Printer.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Store/Query/Printer.hs b/src/Store/Query/Printer.hs
index 5692ba8..7861bc9 100644
--- a/src/Store/Query/Printer.hs
+++ b/src/Store/Query/Printer.hs
@@ -3,7 +3,6 @@
module Store.Query.Printer () where
import Data.List (intercalate)
-import Data.List.NonEmpty qualified as N
import Data.Maybe (catMaybes, mapMaybe)
import Store.Query.Field
import Store.Query.Type
@@ -21,9 +20,7 @@ instance Show Query where
showWhereClause w
]
where
- showFieldSelector All = "*"
- showFieldSelector (Only (N.toList -> fs)) =
- intercalate ", " (map showField fs)
+ showFieldSelector = error "showFieldSelector"
showField = Store.Query.Field.toString
showCollection c = c
showJoinClauses js = case map showJoinClause js of