diff options
| author | Tom Smeding <tom@tomsmeding.com> | 2026-07-26 21:48:00 +0200 |
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2026-07-26 21:48:00 +0200 |
| commit | 822ada35ab5ffc33f9a34f2ff13fed5fb649b5b7 (patch) | |
| tree | be112dcfae3c811e814f75cc6ef8938feddbde96 | |
| parent | 7b68c67f543a1df75e95210cb741c54dad481d81 (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.
| -rw-r--r-- | src/Index.hs | 3 |
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 |
