mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 04:46:31 +03:00
dev: lib: Text.Megaparsec.Custom notes
This commit is contained in:
parent
de7d0a38a2
commit
33dba1945d
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user