@@ -45,7 +45,12 @@ import Control.Monad.Trans
4545import Data.Aeson.Encode.Pretty (encodePretty', Config(..), keyOrder,
4646 defConfig, Indent(..), NumberFormat(..))
4747import Data.Char (toLower, toUpper)
48−import Data.List (intercalate, sort, isPrefixOf)
48+import Data.List (intercalate, sort)
49+#ifdef _WINDOWS
50+#if MIN_VERSION_base(4,12,0)
51+import Data.List (isPrefixOf)
52+#endif
53+#endif
4954import Data.Maybe (fromMaybe)
5055import Skylighting (Style, Syntax (..), defaultSyntaxMap, parseTheme,
5156 pygments)