From 33dba1945d7f21d410c442bebdeab2e7343b71b5 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 1 Oct 2022 18:29:26 -1000 Subject: [PATCH] dev: lib: Text.Megaparsec.Custom notes --- hledger-lib/Text/Megaparsec/Custom.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hledger-lib/Text/Megaparsec/Custom.hs b/hledger-lib/Text/Megaparsec/Custom.hs index c9e34276c..8efbaa30f 100644 --- a/hledger-lib/Text/Megaparsec/Custom.hs +++ b/hledger-lib/Text/Megaparsec/Custom.hs @@ -1,3 +1,6 @@ +-- A bunch of megaparsec helpers for re-parsing etc. +-- I think these are generic apart from the HledgerParseError name. + {-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-} @@ -59,6 +62,7 @@ import Text.Megaparsec --- * Custom parse error types -- | Custom error data for hledger parsers. Specialised for a 'Text' parse stream. +-- ReparseableTextParseErrorData ? data HledgerParseErrorData -- | Fail with a message at a specific source position interval. The -- interval must be contained within a single line.