dev: lib: Text.Megaparsec.Custom notes

This commit is contained in:
Simon Michael 2022-10-01 18:29:26 -10:00
parent de7d0a38a2
commit 33dba1945d

View File

@ -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 BangPatterns #-}
{-# LANGUAGE CPP #-} {-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleContexts #-}
@ -59,6 +62,7 @@ import Text.Megaparsec
--- * Custom parse error types --- * Custom parse error types
-- | Custom error data for hledger parsers. Specialised for a 'Text' parse stream. -- | Custom error data for hledger parsers. Specialised for a 'Text' parse stream.
-- ReparseableTextParseErrorData ?
data HledgerParseErrorData data HledgerParseErrorData
-- | Fail with a message at a specific source position interval. The -- | Fail with a message at a specific source position interval. The
-- interval must be contained within a single line. -- interval must be contained within a single line.