summaryrefslogtreecommitdiff
path: root/src/ZNC.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-04-06 23:35:05 +0200
committerTom Smeding <tom@tomsmeding.com>2026-04-06 23:36:28 +0200
commit287d9e5c4fc50bcca2474b9783148181d7ede872 (patch)
tree81a80cc5f5aabb2d3cffd3874438782d32096cff /src/ZNC.hs
parent875da72c83b20260ac5af2bdcc8b992d657fd97e (diff)
Log watching
Diffstat (limited to 'src/ZNC.hs')
-rw-r--r--src/ZNC.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ZNC.hs b/src/ZNC.hs
index c23ffe2..df57541 100644
--- a/src/ZNC.hs
+++ b/src/ZNC.hs
@@ -40,6 +40,8 @@ data Event
| ParseError
deriving (Show)
+-- | Returned vector has one entry for each line in the file, excepting the
+-- empty "line" after the final newline, if any.
preparseLog :: ByteString -> VS.Vector Word32
preparseLog = VS.fromList . findLineStarts 0
where