From 978d95dd190618433293e404e964e83fdba942a2 Mon Sep 17 00:00:00 2001
From: hololeap <hololeap@protonmail.com>
Date: Fri, 9 Jan 2026 21:17:57 -0700
Subject: [PATCH 1/1] Modify Setup.hs so that cabal-doctest is optional

Signed-off-by: hololeap <hololeap@protonmail.com>
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,6 +1,23 @@
+{-# LANGUAGE CPP #-}
+
 module Main where
 
+#ifndef MIN_VERSION_cabal_doctest
+#define MIN_VERSION_cabal_doctest(x,y,z) 0
+#endif
+
+#if MIN_VERSION_cabal_doctest(1,0,0)
+
 import Distribution.Extra.Doctest (defaultMainWithDoctests)
 
 main :: IO ()
 main = defaultMainWithDoctests "doctests"
+
+#else
+
+import Distribution.Simple
+
+main :: IO ()
+main = defaultMain
+
+#endif
-- 
2.52.0

