summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-07-20 11:10:57 +0200
committerTom Smeding <tom@tomsmeding.com>2026-07-20 11:10:57 +0200
commita3588a15c8dc8b4c96f0986a4e0344a5f6a3120e (patch)
tree7d3a3d37e3b4a5da069ee2ff4234b6600f7eb615 /src
parent9f52bec00561d7d481b79a38fa02586626b4b5cd (diff)
Silence unused-variable warning in TH-generated code
Diffstat (limited to 'src')
-rw-r--r--src/Pages/TH.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Pages/TH.hs b/src/Pages/TH.hs
index 2061c9a..2967761 100644
--- a/src/Pages/TH.hs
+++ b/src/Pages/TH.hs
@@ -156,7 +156,7 @@ renderNodes dats buf (node : nodes) = do
`appE` pure (expensive buf)
`appE` pure e
Just (VQMaybe dm, e) -> do
- xvar <- newName "x"
+ xvar <- newName "_x" -- tends to be unused in {{#sec}} {{.}} {{/sec}} situations, so suppress the warning
makeDuplicable buf $ \buf' ->
caseE (pure e)
[match (conP 'Nothing []) (normalB (pure buf')) []