From d68d58192065c60be420a9d8cabd731e5cc7e105 Mon Sep 17 00:00:00 2001
From: Tom Smeding <tom@tomsmeding.com>
Date: Mon, 27 May 2024 19:15:07 +0200
Subject: Record the dependency on arith_lists.h for recompilation checking

---
 src/Data/Array/Nested/Internal/Arith/Lists/TH.hs | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src')

diff --git a/src/Data/Array/Nested/Internal/Arith/Lists/TH.hs b/src/Data/Array/Nested/Internal/Arith/Lists/TH.hs
index b40a066..7142dfa 100644
--- a/src/Data/Array/Nested/Internal/Arith/Lists/TH.hs
+++ b/src/Data/Array/Nested/Internal/Arith/Lists/TH.hs
@@ -6,6 +6,7 @@ import Control.Monad.IO.Class
 import Data.Maybe
 import Foreign.C.Types
 import Language.Haskell.TH
+import Language.Haskell.TH.Syntax
 import Text.Read
 
 
@@ -17,6 +18,7 @@ readArithLists :: OpKind
                -> ([a] -> Q r)
                -> Q r
 readArithLists targetkind fop fcombine = do
+  addDependentFile "cbits/arith_lists.h"
   lns <- liftIO $ lines <$> readFile "cbits/arith_lists.h"
 
   mvals <- forM lns $ \line -> do
-- 
cgit v1.2.3-70-g09d2