summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-07-26 21:48:00 +0200
committerTom Smeding <tom@tomsmeding.com>2026-07-26 21:48:00 +0200
commit822ada35ab5ffc33f9a34f2ff13fed5fb649b5b7 (patch)
treebe112dcfae3c811e814f75cc6ef8938feddbde96 /src
parent7b68c67f543a1df75e95210cb741c54dad481d81 (diff)
Commented-out debugging code
I'll leave the sort in, it's hardly the bottleneck and it makes debugging issues easier and benchmarks more predictable.
Diffstat (limited to 'src')
-rw-r--r--src/Index.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Index.hs b/src/Index.hs
index d9a1379..b82d095 100644
--- a/src/Index.hs
+++ b/src/Index.hs
@@ -151,7 +151,8 @@ initIndex basedir toimport = do
let nw = T.unpack nwT
ch = T.unpack chT
files <- listDirectory (basedir </> nw </> ch)
- days <- fmap sort . forM files $ \fn -> do
+ days <- fmap sort . forM (sort files) $ \fn -> do
+ -- atomicPrintS $ " -> " ++ fn
let path = basedir </> nw </> ch </> fn
date = case parseFileName fn of
Just ymd -> ymdToGregorian ymd