Skip to content

Commit 2937c73

Browse files
committed
Satisfy pattern-match coverage checker in GHC 8.10
1 parent cfa2c8b commit 2937c73

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Text/Pandoc/Writers/HTML.hs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{-# LANGUAGE ScopedTypeVariables #-}
77
{-# LANGUAGE TypeApplications #-}
88
{-# LANGUAGE ViewPatterns #-}
9+
{-# LANGUAGE CPP #-}
910
{- |
1011
Module : Text.Pandoc.Writers.HTML
1112
Copyright : Copyright (C) 2006-2024 John MacFarlane
@@ -367,7 +368,13 @@ pandocToHtml opts (Pandoc meta blocks) = do
367368
("extends", (camelCaseToHyphenated $ tshow num)),
368369
("prefix", case del of
369370
OneParen -> ""
370-
TwoParens -> "("),
371+
TwoParens -> "("
372+
#if !MIN_VERSION_GLASGOW_HASKELL(9,0,0,0)
373+
-- Older versions of GHC don't know this match is redundant. Drop this
374+
-- when Pandoc drops GHC 8.10 testing.
375+
_ -> ""
376+
#endif
377+
),
371378
("suffix", ")") ]
372379
let context :: Context Text
373380
context = (if stHighlighting st

0 commit comments

Comments
 (0)