mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-25 19:31:44 +03:00
lib: Add explicit export list to Common.hs
This commit is contained in:
parent
aaf818e9da
commit
c2199b1125
@ -16,7 +16,66 @@ Some of these might belong in Hledger.Read.JournalReader or Hledger.Read.
|
||||
{-# LANGUAGE CPP, BangPatterns, DeriveDataTypeable, RecordWildCards, NamedFieldPuns, NoMonoLocalBinds, ScopedTypeVariables, FlexibleContexts, TupleSections, OverloadedStrings #-}
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
|
||||
module Hledger.Read.Common
|
||||
module Hledger.Read.Common (
|
||||
Reader (..),
|
||||
InputOpts (..),
|
||||
rawOptsToInputOpts,
|
||||
|
||||
-- * parsing utilities
|
||||
runTextParser,
|
||||
runJournalParser,
|
||||
rjp,
|
||||
runErroringJournalParser,
|
||||
rejp,
|
||||
genericSourcePos,
|
||||
journalSourcePos,
|
||||
generateAutomaticPostings,
|
||||
parseAndFinaliseJournal,
|
||||
setYear,
|
||||
setDefaultCommodityAndStyle,
|
||||
getDefaultCommodityAndStyle,
|
||||
pushParentAccount,
|
||||
popParentAccount,
|
||||
getParentAccount,
|
||||
addAccountAlias,
|
||||
clearAccountAliases,
|
||||
journalAddFile,
|
||||
parserErrorAt,
|
||||
|
||||
-- * parsers
|
||||
-- ** transaction bits
|
||||
statusp,
|
||||
codep,
|
||||
descriptionp,
|
||||
|
||||
-- ** dates
|
||||
datep,
|
||||
datetimep,
|
||||
secondarydatep,
|
||||
|
||||
-- ** account names
|
||||
modifiedaccountnamep,
|
||||
accountnamep,
|
||||
|
||||
-- ** amounts
|
||||
spaceandamountormissingp,
|
||||
amountp,
|
||||
mamountp',
|
||||
commoditysymbolp,
|
||||
partialbalanceassertionp,
|
||||
fixedlotpricep,
|
||||
numberp,
|
||||
|
||||
-- ** comments
|
||||
multilinecommentp,
|
||||
emptyorcommentlinep,
|
||||
followingcommentp,
|
||||
followingcommentandtagsp,
|
||||
|
||||
-- ** tags
|
||||
commentTags,
|
||||
tagsp
|
||||
)
|
||||
where
|
||||
--- * imports
|
||||
import Prelude ()
|
||||
@ -107,7 +166,7 @@ rawOptsToInputOpts rawopts = InputOpts{
|
||||
,auto_ = boolopt "auto" rawopts
|
||||
}
|
||||
|
||||
--- * parsing utils
|
||||
--- * parsing utilities
|
||||
|
||||
-- | Run a string parser with no state in the identity monad.
|
||||
runTextParser, rtp :: TextParser Identity a -> Text -> Either (ParseError Char MPErr) a
|
||||
|
Loading…
Reference in New Issue
Block a user