| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Hledger.Cli
Description
This is the root module of the hledger package,
providing hledger's command-line interface.
The main function,
commands,
command-line options,
and utilities useful to other hledger command-line programs
are exported.
It also re-exports hledger-lib:Hledger
and cmdargs:System.Concole.CmdArgs.Explicit
See also:
- hledger-lib:Hledger
- The README files
- The high-level developer docs
hledger is a Haskell rewrite of John Wiegley's "ledger". It generates financial reports from a plain text general journal. You can use the command line:
$ hledger
or ghci:
$ make ghci
ghci> Right j <- runExceptT $ readJournalFile definputopts "examples/sample.journal" -- or: j <- defaultJournal
ghci> :t j
j :: Journal
ghci> stats defcliopts j
Main file : examples/sample.journal
Included files :
Transactions span : 2008-01-01 to 2009-01-01 (366 days)
Last transaction : 2008-12-31 (733772 days from now)
Transactions : 5 (0.0 per day)
Transactions last 30 days: 0 (0.0 per day)
Transactions last 7 days : 0 (0.0 per day)
Payees/descriptions : 5
Accounts : 8 (depth 3)
Commodities : 1 ($)
Market prices : 0 ()
Run time (throughput) : 1695276900.00s (0 txns/s)
ghci> balance defcliopts j
$1 assets:bank:saving
$-2 assets:cash
$1 expenses:food
$1 expenses:supplies
$-1 income:gifts
$-1 income:salary
$1 liabilities:debts
--------------------
0
ghci> etc.
SPDX-License-Identifier: GPL-3.0-or-later Copyright (c) 2007-2025 (each year in this range) Simon Michael simon@joyful.com and contributors.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Synopsis
- main :: IO ()
- argsToCliOpts :: [String] -> [String] -> IO CliOpts
- module Hledger.Cli.CliOptions
- module Hledger.Cli.Conf
- module Hledger.Cli.Commands
- module Hledger.Cli.DocFiles
- module Hledger.Cli.Utils
- module Hledger.Cli.Version
- charWidth :: Char -> Int
- trace :: String -> a -> a
- traceIO :: String -> IO ()
- traceShowId :: Show a => a -> a
- tests_Hledger :: TestTree
- tests_Data :: TestTree
- accountFromBalances :: AccountName -> PeriodData a -> Account a
- accountFromPostings :: (Posting -> Maybe Day) -> [Posting] -> Account BalanceData
- accountSetDeclarationInfo :: Journal -> Account a -> Account a
- accountTree :: Monoid a => AccountName -> [AccountName] -> Account a
- accountTreeFromBalanceAndNames :: AccountName -> PeriodData a -> [AccountName] -> Account a
- accountsFromPostings :: (Posting -> Maybe Day) -> [Posting] -> [Account BalanceData]
- accountsLevels :: Account a -> [[Account a]]
- anyAccounts :: (Account a -> Bool) -> Account a -> Bool
- clipAccounts :: Int -> Account a -> Account a
- clipAccountsAndAggregate :: Monoid a => DepthSpec -> [Account a] -> [Account a]
- filterAccounts :: (Account a -> Bool) -> Account a -> [Account a]
- flattenAccounts :: Account a -> [Account a]
- lookupAccount :: AccountName -> [Account a] -> Maybe (Account a)
- mapAccounts :: (Account a -> Account a) -> Account a -> Account a
- mapPeriodData :: (PeriodData a -> PeriodData a) -> Account a -> Account a
- mergeAccounts :: Account a -> Account b -> Account (These a b)
- nullacct :: Account BalanceData
- parentAccounts :: Account a -> [Account a]
- printAccounts :: Show a => Account a -> IO ()
- pruneAccounts :: (Account a -> Bool) -> Account a -> Maybe (Account a)
- showAccounts :: Show a => Account a -> String
- showAccountsBoringFlag :: Account a -> String
- sortAccountNamesByDeclaration :: Journal -> Bool -> [AccountName] -> [AccountName]
- sortAccountTreeByDeclaration :: Account a -> Account a
- sortAccountTreeOn :: Ord b => (Account a -> b) -> Account a -> Account a
- sumAccounts :: Account BalanceData -> Account BalanceData
- tests_Account :: TestTree
- accountLeafName :: AccountName -> Text
- accountNameApplyAliases :: [AccountAlias] -> AccountName -> Either RegexError AccountName
- accountNameApplyAliasesMemo :: [AccountAlias] -> AccountName -> Either RegexError AccountName
- accountNameComponents :: AccountName -> [Text]
- accountNameDrop :: Int -> AccountName -> AccountName
- accountNameFromComponents :: [Text] -> AccountName
- accountNameHasEmptyPart :: AccountName -> Bool
- accountNameInferType :: AccountName -> Maybe AccountType
- accountNameInferTypeExcept :: [AccountType] -> AccountName -> Maybe AccountType
- accountNameLevel :: AccountName -> Int
- accountNamePostingType :: AccountName -> PostingRealness
- accountNameToAccountOnlyRegex :: AccountName -> Regexp
- accountNameToAccountOnlyRegexCI :: AccountName -> Regexp
- accountNameToAccountRegex :: AccountName -> Regexp
- accountNameToAccountRegexCI :: AccountName -> Regexp
- accountNameTreeFrom :: [AccountName] -> Tree AccountName
- accountNameType :: Map AccountName AccountType -> AccountName -> Maybe AccountType
- accountNameWithPostingType :: PostingRealness -> AccountName -> AccountName
- accountNameWithoutPostingType :: AccountName -> AccountName
- accountSummarisedName :: AccountName -> Text
- acctsep :: Text
- acctsepchar :: Char
- assetAccountRegex :: Regexp
- cashAccountRegex :: Regexp
- clipAccountName :: DepthSpec -> AccountName -> AccountName
- clipOrEllipsifyAccountName :: DepthSpec -> AccountName -> AccountName
- concatAccountNames :: [AccountName] -> AccountName
- conversionAccountRegex :: Regexp
- defaultBaseConversionAccount :: IsString a => a
- defaultGainAccount :: IsString a => a
- defaultImbalanceAccount :: IsString a => a
- elideAccountName :: Int -> AccountName -> AccountName
- equityAccountRegex :: Regexp
- escapeName :: AccountName -> Text
- expandAccountName :: AccountName -> [AccountName]
- expandAccountNames :: [AccountName] -> [AccountName]
- expenseAccountRegex :: Regexp
- gainAccountRegex :: Regexp
- getAccountNameClippedDepth :: DepthSpec -> AccountName -> Maybe Int
- imbalanceAccountRegex :: Regexp
- isAccountNamePrefixOf :: AccountName -> AccountName -> Bool
- isSubAccountNameOf :: AccountName -> AccountName -> Bool
- joinAccountNames :: AccountName -> AccountName -> AccountName
- liabilityAccountRegex :: Regexp
- parentAccountName :: AccountName -> AccountName
- parentAccountNames :: AccountName -> [AccountName]
- revenueAccountRegex :: Regexp
- subAccountNamesFrom :: [AccountName] -> AccountName -> [AccountName]
- tests_AccountName :: TestTree
- topAccountName :: AccountName -> AccountName
- topAccountNames :: [AccountName] -> [AccountName]
- unbudgetedAccountName :: Text
- unrealisedGainAccountRegex :: Regexp
- accountTypeChoices :: Bool -> String
- accountTypeLotDirection :: AccountType -> Maybe LotDirection
- accountTypeName :: AccountType -> Text
- isAccountSubtypeOf :: AccountType -> AccountType -> Bool
- isAssetType :: AccountType -> Bool
- isEquityType :: AccountType -> Bool
- isExpenseType :: AccountType -> Bool
- isLiabilityType :: AccountType -> Bool
- isRevenueType :: AccountType -> Bool
- lotDirectionSign :: LotDirection -> Quantity
- parseAccountType :: Bool -> Text -> Either String AccountType
- (@@) :: Amount -> Amount -> Amount
- addAmountStyle :: Amount -> Map CommoditySymbol AmountStyle -> Map CommoditySymbol AmountStyle
- amountCost :: Amount -> Amount
- amountCostBasis :: Amount -> Amount
- amountDisplayPrecision :: Amount -> Word8
- amountInternalPrecision :: Amount -> Word8
- amountIsZero :: Amount -> Bool
- amountLooksZero :: Amount -> Bool
- amountRoundedQuantity :: Amount -> Quantity
- amountSetCostToBasis :: Amount -> Amount
- amountSetFullPrecision :: Amount -> Amount
- amountSetFullPrecisionUpTo :: Maybe Word8 -> Amount -> Amount
- amountSetPrecision :: AmountPrecision -> Amount -> Amount
- amountSetPrecisionMax :: Word8 -> Amount -> Amount
- amountSetPrecisionMin :: Word8 -> Amount -> Amount
- amountSetQuantity :: Quantity -> Amount -> Amount
- amountSetStyles :: Map CommoditySymbol AmountStyle -> Amount -> Amount
- amountStripCost :: Amount -> Amount
- amountStyleSetRounding :: Rounding -> AmountStyle -> AmountStyle
- amountStylesSetRounding :: Rounding -> Map CommoditySymbol AmountStyle -> Map CommoditySymbol AmountStyle
- amountUnstyled :: Amount -> Amount
- amountWithCommodity :: CommoditySymbol -> Amount -> Amount
- amounts :: MixedAmount -> [Amount]
- amountsPreservingZeros :: MixedAmount -> [Amount]
- amountsRaw :: MixedAmount -> [Amount]
- amountstyle :: AmountStyle
- at :: Amount -> Amount -> Amount
- averageMixedAmounts :: Foldable f => f MixedAmount -> MixedAmount
- canonicaliseAmount :: Map CommoditySymbol AmountStyle -> Amount -> Amount
- canonicaliseMixedAmount :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmount
- commodityStylesFromAmounts :: [Amount] -> Either String (Map CommoditySymbol AmountStyle)
- cshowAmount :: Amount -> String
- defaultFmt :: AmountFormat
- defaultMaxDisplayPrecision :: Word8
- divideAmount :: Quantity -> Amount -> Amount
- divideAmountAndUpdatePrecision :: Quantity -> Amount -> Amount
- divideMixedAmount :: Quantity -> MixedAmount -> MixedAmount
- divideMixedAmountAndUpdatePrecision :: Quantity -> MixedAmount -> MixedAmount
- eur :: DecimalRaw Integer -> Amount
- filterMixedAmount :: (Amount -> Bool) -> MixedAmount -> MixedAmount
- filterMixedAmountByCommodity :: CommoditySymbol -> MixedAmount -> MixedAmount
- fullZeroFmt :: AmountFormat
- gbp :: DecimalRaw Integer -> Amount
- getAmounts :: Amount -> [Amount]
- hrs :: Quantity -> Amount
- invertAmount :: Amount -> Amount
- isMissingMixedAmount :: MixedAmount -> Bool
- isNegativeAmount :: Amount -> Bool
- isNegativeMixedAmount :: MixedAmount -> Maybe Bool
- isNonsimpleCommodityChar :: Char -> Bool
- maAddAmount :: MixedAmount -> Amount -> MixedAmount
- maAddAmounts :: Foldable t => MixedAmount -> t Amount -> MixedAmount
- maCommodities :: MixedAmount -> Set CommoditySymbol
- maIsNonZero :: MixedAmount -> Bool
- maIsZero :: MixedAmount -> Bool
- maMinus :: MixedAmount -> MixedAmount -> MixedAmount
- maNegate :: MixedAmount -> MixedAmount
- maPlus :: MixedAmount -> MixedAmount -> MixedAmount
- maSum :: Foldable t => t MixedAmount -> MixedAmount
- machineFmt :: AmountFormat
- mapMixedAmount :: (Amount -> Amount) -> MixedAmount -> MixedAmount
- missingamt :: Amount
- missingmixedamt :: MixedAmount
- mixed :: Foldable t => t Amount -> MixedAmount
- mixedAmount :: Amount -> MixedAmount
- mixedAmountCost :: MixedAmount -> MixedAmount
- mixedAmountCostBasis :: MixedAmount -> MixedAmount
- mixedAmountIsZero :: MixedAmount -> Bool
- mixedAmountLooksZero :: MixedAmount -> Bool
- mixedAmountSetFullPrecision :: MixedAmount -> MixedAmount
- mixedAmountSetFullPrecisionCapped :: MixedAmount -> MixedAmount
- mixedAmountSetFullPrecisionUpTo :: Maybe Word8 -> MixedAmount -> MixedAmount
- mixedAmountSetPrecision :: AmountPrecision -> MixedAmount -> MixedAmount
- mixedAmountSetPrecisionMax :: Word8 -> MixedAmount -> MixedAmount
- mixedAmountSetPrecisionMin :: Word8 -> MixedAmount -> MixedAmount
- mixedAmountSetStyles :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmount
- mixedAmountStripCosts :: MixedAmount -> MixedAmount
- mixedAmountUnstyled :: MixedAmount -> MixedAmount
- multiplyAmount :: Quantity -> Amount -> Amount
- multiplyMixedAmount :: Quantity -> MixedAmount -> MixedAmount
- multiplyQuantities :: Quantity -> Quantity -> Quantity
- noCostFmt :: AmountFormat
- nullamt :: Amount
- nullmixedamt :: MixedAmount
- num :: Quantity -> Amount
- oneLineFmt :: AmountFormat
- oneLineNoCostFmt :: AmountFormat
- per :: Quantity -> Amount
- quoteCommoditySymbolIfNeeded :: Text -> Text
- setAmountDecimalPoint :: Maybe Char -> Amount -> Amount
- setAmountInternalPrecision :: Word8 -> Amount -> Amount
- showAmount :: Amount -> String
- showAmountB :: AmountFormat -> Amount -> WideBuilder
- showAmountCost :: Amount -> String
- showAmountCostB :: AmountFormat -> Amount -> WideBuilder
- showAmountCostBasis :: Amount -> String
- showAmountCostBasisB :: AmountFormat -> Amount -> WideBuilder
- showAmountCostBasisLedger :: Amount -> String
- showAmountCostBasisLedgerB :: AmountFormat -> Amount -> WideBuilder
- showAmountDebug :: Amount -> String
- showAmountQuantity :: Bool -> Amount -> WideBuilder
- showAmountWith :: AmountFormat -> Amount -> String
- showAmountWithZeroCommodity :: Amount -> String
- showAmountWithoutCost :: Amount -> String
- showAmountsDistinctly :: AmountFormat -> Amount -> Amount -> (String, String)
- showCommoditySymbol :: Text -> Text
- showMixedAmount :: MixedAmount -> String
- showMixedAmountB :: AmountFormat -> MixedAmount -> WideBuilder
- showMixedAmountDebug :: MixedAmount -> String
- showMixedAmountElided :: Int -> Bool -> MixedAmount -> String
- showMixedAmountLinesB :: AmountFormat -> MixedAmount -> [WideBuilder]
- showMixedAmountLinesPartsB :: AmountFormat -> MixedAmount -> [(WideBuilder, Amount)]
- showMixedAmountOneLine :: MixedAmount -> String
- showMixedAmountOneLinePartsB :: AmountFormat -> MixedAmount -> [(WideBuilder, Amount)]
- showMixedAmountOneLineWithoutCost :: Bool -> MixedAmount -> String
- showMixedAmountWith :: AmountFormat -> MixedAmount -> String
- showMixedAmountWithZeroCommodity :: MixedAmount -> String
- showMixedAmountWithoutCost :: Bool -> MixedAmount -> String
- showMixedAmountsDistinctly :: AmountFormat -> MixedAmount -> MixedAmount -> (String, String)
- showPriceDirective :: PriceDirective -> Text
- styleAmount :: Map CommoditySymbol AmountStyle -> Amount -> Amount
- styleMixedAmount :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmount
- sumAndAverageMixedAmounts :: Foldable f => f MixedAmount -> (MixedAmount, MixedAmount)
- tests_Amount :: TestTree
- unifyMixedAmount :: MixedAmount -> Maybe Amount
- usd :: DecimalRaw Integer -> Amount
- withDecimalPoint :: Amount -> Maybe Char -> Amount
- withInternalPrecision :: Amount -> Word8 -> Amount
- withPrecision :: Amount -> AmountPrecision -> Amount
- mapBalanceData :: (MixedAmount -> MixedAmount) -> BalanceData -> BalanceData
- opBalanceData :: (MixedAmount -> MixedAmount -> MixedAmount) -> BalanceData -> BalanceData -> BalanceData
- tests_BalanceData :: TestTree
- balanceSingleTransaction :: BalancingOpts -> Transaction -> Either String Transaction
- balanceTransactionHelper :: BalancingOpts -> Transaction -> Either String (Transaction, [(AccountName, MixedAmount)])
- defbalancingopts :: BalancingOpts
- isTransactionBalanced :: BalancingOpts -> Transaction -> Bool
- journalBalanceTransactions :: BalancingOpts -> Journal -> Either String Journal
- journalBalanceTransactionsAndDeferAssertions :: BalancingOpts -> Journal -> Either String (Journal, Maybe String)
- postingRoundCalculatedAmounts :: Map CommoditySymbol AmountStyle -> Posting -> (Posting, Bool)
- roundedPostingTagName :: TagName
- tests_Balancing :: TestTree
- transactionBalanceError :: Transaction -> [String] -> String
- transactionBalancingSum :: Transaction -> MixedAmount
- transactionCheckAssertions :: BalancingOpts -> Journal -> Transaction -> Either String Transaction
- transactionRoundCalculatedAmounts :: Transaction -> Transaction
- cryptocurrencies :: [CurrencyCode]
- currencies :: [([Char], CurrencyCode, CurrencySymbol)]
- currencyCodeToSymbol :: CurrencyCode -> Maybe CurrencySymbol
- currencySymbolToCode :: CurrencySymbol -> Maybe CurrencyCode
- toCurrencyCode :: CurrencySymbol -> CurrencyCode
- addGregorianMonthsToMonthday :: MonthDay -> Integer -> Day -> Day
- advanceToNthWeekday :: Int -> WeekDay -> Day -> Day
- datesepchar :: forall (m :: Type -> Type). TextParser m Char
- datesepchars :: String
- daysInSpan :: DateSpan -> Maybe Integer
- daysSpan :: [Day] -> DateSpan
- elapsedSeconds :: Fractional a => UTCTime -> UTCTime -> a
- emptydatespan :: DateSpan
- fixSmartDate :: Day -> SmartDate -> EFDay
- fixSmartDateStr :: Day -> Text -> Text
- fixSmartDateStrEither :: Day -> Text -> Either HledgerParseErrors Text
- fixSmartDateStrEither' :: Day -> Text -> Either HledgerParseErrors EFDay
- getCurrentDay :: IO Day
- getCurrentMonth :: IO Int
- getCurrentYear :: IO Integer
- groupByDateSpan :: Bool -> (a -> Day) -> [DateSpan] -> [a] -> [(DateSpan, [a])]
- isDateSepChar :: Char -> Bool
- isEmptySpan :: DateSpan -> Bool
- latestSpanContaining :: [DateSpan] -> Day -> Maybe DateSpan
- nextNthWeekdayOfMonth :: Int -> WeekDay -> Day -> Day
- nextday :: Day -> Day
- nextmonthandday :: Month -> MonthDay -> Day -> Day
- nextnthdayofmonth :: MonthDay -> Day -> Day
- nextweek :: Day -> Day
- nthdayofweekcontaining :: WeekDay -> Day -> Day
- nulldate :: Day
- nulldatespan :: DateSpan
- parsePeriodExpr :: Day -> Text -> Either HledgerParseErrors (Interval, DateSpan)
- parsePeriodExpr' :: Day -> Text -> (Interval, DateSpan)
- parsedate :: String -> Maybe Day
- periodContainsDate :: Period -> Day -> Bool
- periodexprp :: forall (m :: Type -> Type). Day -> TextParser m (Interval, DateSpan)
- prevNthWeekdayOfMonth :: Int -> WeekDay -> Day -> Day
- prevday :: Day -> Day
- reportingintervalp :: forall (m :: Type -> Type). TextParser m Interval
- showDate :: Day -> Text
- showDateSpan :: DateSpan -> Text
- showDateSpanAbbrev :: DateSpan -> Text
- showDateSpanAbbrevWith :: TimeLocale -> DateSpan -> Text
- showDateSpanDebug :: DateSpan -> String
- showDateSpanForQuery :: DateSpan -> Text
- showDateSpanFull :: DateSpan -> Text
- showEFDate :: EFDay -> Text
- smartdate :: forall (m :: Type -> Type). TextParser m SmartDate
- spanContainsDate :: DateSpan -> Day -> Bool
- spanDefaultsFrom :: DateSpan -> DateSpan -> DateSpan
- spanEnd :: DateSpan -> Maybe Day
- spanEndYear :: DateSpan -> Maybe Year
- spanExtend :: DateSpan -> DateSpan -> DateSpan
- spanIntersect :: DateSpan -> DateSpan -> DateSpan
- spanStart :: DateSpan -> Maybe Day
- spanStartYear :: DateSpan -> Maybe Year
- spanUnion :: DateSpan -> DateSpan -> DateSpan
- spanValidDefaultsFrom :: DateSpan -> DateSpan -> DateSpan
- spanYears :: DateSpan -> [Year]
- spansIntersect :: [DateSpan] -> DateSpan
- spansSpan :: [DateSpan] -> DateSpan
- spansUnion :: [DateSpan] -> DateSpan
- startofmonth :: Day -> Day
- startofquarter :: Day -> Day
- startofweek :: Day -> Day
- startofyear :: Day -> Day
- yearp :: forall (m :: Type -> Type). TextParser m Integer
- boundariesToDayPartition :: NonEmpty Day -> DayPartition
- boundariesToMaybeDayPartition :: [Day] -> Maybe DayPartition
- dayPartitionFind :: Day -> DayPartition -> (Maybe Day, Day)
- dayPartitionStartEnd :: DayPartition -> (Day, Day)
- dayPartitionToDateSpans :: DayPartition -> [DateSpan]
- dayPartitionToList :: DayPartition -> [(Day, Day)]
- dayPartitionToNonEmpty :: DayPartition -> NonEmpty (Day, Day)
- intervalBoundaryBefore :: Interval -> Day -> Day
- maybeDayPartitionToDateSpans :: Maybe DayPartition -> [DateSpan]
- splitSpan :: Bool -> Interval -> DateSpan -> Maybe DayPartition
- splitSpanStartEnd :: Bool -> Interval -> DateSpan -> Maybe (Day, Day)
- splitSpanToDateSpans :: Bool -> Interval -> DateSpan -> [DateSpan]
- tests_DayPartition :: TestTree
- unionDayPartitions :: DayPartition -> DayPartition -> Maybe DayPartition
- decorateExcerpt :: Int -> Maybe (Int, Maybe Int) -> Text -> Text
- makeAccountTagErrorExcerpt :: (AccountName, AccountDeclarationInfo) -> TagName -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
- makeBalanceAssertionErrorExcerpt :: Posting -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
- makeCommodityTagErrorExcerpt :: Commodity -> TagName -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
- makePostingAccountErrorExcerpt :: Posting -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
- makePostingErrorExcerpt :: Posting -> (Posting -> Transaction -> Text -> Maybe (Int, Maybe Int)) -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
- makePostingErrorExcerptByIndex :: Transaction -> Int -> Maybe (Int, Maybe Int) -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
- makePriceDirectiveErrorExcerpt :: PriceDirective -> Maybe (PriceDirective -> Text -> Maybe (Int, Maybe Int)) -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
- makeTransactionErrorExcerpt :: Transaction -> (Transaction -> Maybe (Int, Maybe Int)) -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
- transactionFindPostingIndex :: (Posting -> Bool) -> Transaction -> Maybe Int
- accountUsesNoLotsWith :: Map AccountName Text -> AccountName -> Bool
- addAssertDirective :: AssertDirective -> Journal -> Journal
- addJournalItem :: JournalItem -> Journal -> Journal
- addPeriodicTransaction :: PeriodicTransaction -> Journal -> Journal
- addPriceDirective :: PriceDirective -> Journal -> Journal
- addTransaction :: Transaction -> Journal -> Journal
- addTransactionItem :: Transaction -> Journal -> Journal
- addTransactionModifier :: TransactionModifier -> Journal -> Journal
- commoditiesAndAliases :: Journal -> Set CommoditySymbol
- commodityAliases :: Commodity -> [CommoditySymbol]
- commodityCombine :: Commodity -> Commodity -> Commodity
- commodityRedeclare :: Commodity -> Commodity -> Commodity
- convertAliasAmount :: CommodityAliases -> Amount -> (Amount, Quantity)
- dbgJournalAcctDeclOrder :: String -> Journal -> Journal
- filterJournalAmounts :: Query -> Journal -> Journal
- filterJournalPostings :: Query -> Journal -> Journal
- filterJournalRelatedPostings :: Query -> Journal -> Journal
- filterJournalTransactions :: Query -> Journal -> Journal
- filterPostingAmount :: Query -> Posting -> Maybe Posting
- filterTransactionAmounts :: Query -> Transaction -> Transaction
- filterTransactionPostings :: Query -> Transaction -> Transaction
- filterTransactionPostingsExtra :: (AccountName -> Maybe AccountType) -> Query -> Transaction -> Transaction
- filterTransactionRelatedPostings :: Query -> Transaction -> Transaction
- journalAccountForType :: AccountName -> AccountType -> Journal -> AccountName
- journalAccountLotsTags :: Journal -> Map AccountName Text
- journalAccountNameTree :: Journal -> Tree AccountName
- journalAccountNames :: Journal -> [AccountName]
- journalAccountNamesDeclared :: Journal -> [AccountName]
- journalAccountNamesDeclaredOrImplied :: Journal -> [AccountName]
- journalAccountNamesDeclaredOrUsed :: Journal -> [AccountName]
- journalAccountNamesImplied :: Journal -> [AccountName]
- journalAccountNamesUsed :: Journal -> [AccountName]
- journalAccountTags :: Journal -> AccountName -> [Tag]
- journalAccountType :: Journal -> AccountName -> Maybe AccountType
- journalAccountTypes :: Journal -> Map AccountName AccountType
- journalAccountUsesNoLots :: Journal -> AccountName -> Bool
- journalAddAccountTypes :: Journal -> Journal
- journalAllFilePaths :: Journal -> [FilePath]
- journalAmounts :: Journal -> Set Amount
- journalApplyAliases :: [AccountAlias] -> Journal -> Either RegexError Journal
- journalApplyCommodityAliases :: Journal -> Either String Journal
- journalBaseConversionAccount :: Journal -> AccountName
- journalBaseCurrency :: Journal -> Maybe (CommoditySymbol, CurrencyCode)
- journalBaseCurrencyCode :: Journal -> CurrencyCode
- journalBaseGainAccount :: Journal -> AccountName
- journalCheckLotsTagValues :: Journal -> Either String Journal
- journalCommodities :: Journal -> Set CommoditySymbol
- journalCommoditiesDeclared :: Journal -> [CommoditySymbol]
- journalCommoditiesFromPriceDirectives :: Journal -> Set CommoditySymbol
- journalCommoditiesFromTransactions :: Journal -> Set CommoditySymbol
- journalCommoditiesUsed :: Journal -> [CommoditySymbol]
- journalCommodityAliases :: Journal -> CommodityAliases
- journalCommodityLotsMethod :: Journal -> CommoditySymbol -> Maybe ReductionMethod
- journalCommodityStyles :: Journal -> Map CommoditySymbol AmountStyle
- journalCommodityStylesWith :: Rounding -> Journal -> Map CommoditySymbol AmountStyle
- journalCommodityTags :: Journal -> CommoditySymbol -> [Tag]
- journalCommodityUsesLots :: Journal -> CommoditySymbol -> Bool
- journalConcat :: Journal -> Journal -> Journal
- journalConversionAccounts :: Journal -> [AccountName]
- journalDateSpan :: Bool -> Journal -> DateSpan
- journalDateSpanBothDates :: Journal -> DateSpan
- journalDbg :: Journal -> String
- journalDescriptions :: Journal -> [Text]
- journalEndDate :: Bool -> Journal -> Maybe Day
- journalFilePath :: Journal -> FilePath
- journalFilePaths :: Journal -> [FilePath]
- journalGainAccounts :: Journal -> [AccountName]
- journalInferCommodityStyles :: Journal -> Either String Journal
- journalInferEquityFromCosts :: Bool -> Journal -> Journal
- journalInferMarketPricesFromTransactions :: Journal -> Journal
- journalInferPostingsTransactedCost :: Journal -> Journal
- journalInheritedAccountTags :: Journal -> AccountName -> [Tag]
- journalLastDay :: Bool -> Journal -> Maybe Day
- journalLeafAccountNames :: Journal -> [AccountName]
- journalLotfulCommodities :: Journal -> Set CommoditySymbol
- journalMapPostingAmounts :: (MixedAmount -> MixedAmount) -> Journal -> Journal
- journalMapPostings :: (Posting -> Posting) -> Journal -> Journal
- journalMapTransactions :: (Transaction -> Transaction) -> Journal -> Journal
- journalModifyTransactions :: Bool -> Day -> Journal -> Either String Journal
- journalNextTransaction :: Journal -> Transaction -> Maybe Transaction
- journalNumberAndTieTransactions :: Journal -> Journal
- journalNumberTransactions :: Journal -> Journal
- journalPayeesDeclared :: Journal -> [Payee]
- journalPayeesDeclaredOrUsed :: Journal -> [Payee]
- journalPayeesUsed :: Journal -> [Payee]
- journalPivot :: Text -> Journal -> Journal
- journalPostingAmounts :: Journal -> [MixedAmount]
- journalPostingAndCostAmounts :: Journal -> [Amount]
- journalPostings :: Journal -> [Posting]
- journalPostingsAddAccountTags :: Journal -> Journal
- journalPostingsAddCommodityTags :: Journal -> Journal
- journalPostingsKeepAccountTagsOnly :: Journal -> Journal
- journalPrevTransaction :: Journal -> Transaction -> Maybe Transaction
- journalRenumberAccountDeclarations :: Journal -> Journal
- journalReverse :: Journal -> Journal
- journalSetLastReadTime :: POSIXTime -> Journal -> Journal
- journalStartDate :: Bool -> Journal -> Maybe Day
- journalStyleAmounts :: Journal -> Either String Journal
- journalTagCostsAndEquityAndMaybeInferCosts :: Bool -> Bool -> Journal -> Either String Journal
- journalTagsDeclared :: Journal -> [TagName]
- journalTagsDeclaredOrUsed :: Journal -> [TagName]
- journalTagsUsed :: Journal -> [TagName]
- journalTieTransactions :: Journal -> Journal
- journalToCost :: ConversionOp -> Journal -> Journal
- journalTransactionAt :: Journal -> Integer -> Maybe Transaction
- journalTransactionsSimilarTo :: Journal -> Day -> Text -> Query -> SimilarityScore -> Int -> [(DateWeightedSimilarityScore, TimeDistance, SimilarityScore, Transaction)]
- journalUntieTransactions :: Transaction -> Transaction
- nulljournal :: Journal
- parseReductionMethod :: Text -> Maybe ReductionMethod
- postingLotsMethod :: Posting -> Maybe ReductionMethod
- samplejournal :: Journal
- samplejournalMaybeExplicit :: Bool -> Journal
- showJournalPostingAmountsDebug :: Journal -> String
- tests_Journal :: TestTree
- journalCheckAccounts :: Journal -> Either String ()
- journalCheckBalanceAssertions :: Journal -> Either String ()
- journalCheckCommodities :: Journal -> Either String ()
- journalCheckLots :: Journal -> Either String ()
- journalCheckPairedConversionPostings :: Journal -> Either String ()
- journalCheckPayees :: Journal -> Either String ()
- journalCheckRecentAssertions :: Journal -> Either String ()
- journalCheckTags :: Journal -> Either String ()
- journalStrictChecks :: Journal -> Either String ()
- journalUndeclaredCommodities :: Journal -> [CommoditySymbol]
- journalCheckAsserts :: Day -> Journal -> Either String ()
- journalCheckOrdereddates :: Journal -> Either String ()
- journalCheckUniqueleafnames :: Journal -> Either String ()
- readJsonFile :: FromJSON a => FilePath -> IO a
- toJsonText :: ToJSON a => a -> Text
- writeJsonFile :: ToJSON a => FilePath -> a -> IO ()
- ledgerAccount :: Ledger -> AccountName -> Maybe (Account BalanceData)
- ledgerAccountNames :: Ledger -> [AccountName]
- ledgerCommodities :: Ledger -> [CommoditySymbol]
- ledgerDateSpan :: Ledger -> DateSpan
- ledgerFromJournal :: Query -> Journal -> Ledger
- ledgerLeafAccounts :: Ledger -> [Account BalanceData]
- ledgerPostings :: Ledger -> [Posting]
- ledgerRootAccount :: Ledger -> Account BalanceData
- ledgerTopAccounts :: Ledger -> [Account BalanceData]
- nullledger :: Ledger
- tests_Ledger :: TestTree
- isDisposePosting :: Posting -> Bool
- isGainPosting :: Posting -> Bool
- isSetAsideGainPosting :: Transaction -> Posting -> Bool
- journalAddOrCheckGainPostings :: Bool -> Journal -> Either String Journal
- journalAveragePoolCosts :: Journal -> Maybe Day -> Map (AccountName, CommoditySymbol) Amount
- journalAveragePoolTotals :: Journal -> Maybe Day -> Map (AccountName, CommoditySymbol) (Quantity, Amount)
- journalCalculateLots :: Bool -> Journal -> Either String Journal
- journalCheckAcquireBasis :: Journal -> Either String Journal
- journalCheckLotsMethodCoherence :: Journal -> Either String Journal
- journalClassifyLotPostings :: Bool -> Journal -> Journal
- journalCollapseLotDetail :: Journal -> Journal
- journalHasLotFeatures :: Journal -> Bool
- journalLotDirection :: Journal -> AccountName -> Maybe LotDirection
- journalStripBalancerCopiedBases :: Journal -> Journal
- journalTagGainPostings :: Bool -> Bool -> Journal -> Either String Journal
- lotBaseAccount :: AccountName -> AccountName
- lotDirectionOf :: (AccountName -> Maybe AccountType) -> AccountName -> Maybe LotDirection
- lotSubaccountName :: AccountName -> Maybe Text
- mergeCostBasis :: CostBasis -> CostBasis -> Either String CostBasis
- parseLotName :: (String -> Maybe Amount) -> Text -> Either String CostBasis
- resolveReductionMethodForAccount :: Journal -> AccountName -> CommoditySymbol -> (ReductionMethod, String)
- showLotName :: CostBasis -> Text
- transactionAutoSplitFeeOutflows :: Bool -> (AccountName -> Maybe AccountType) -> (CommoditySymbol -> Bool) -> (AccountName -> Bool) -> Transaction -> Transaction
- transactionHasLotfulAmounts :: Set CommoditySymbol -> Transaction -> Bool
- transactionTagGainPostings :: Bool -> Bool -> (AccountName -> Maybe AccountType) -> (CommoditySymbol -> Bool) -> (AccountName -> Bool) -> Transaction -> Transaction
- dateSpanAsPeriod :: DateSpan -> Period
- firstMonthOfQuarter :: Num a => a -> a
- isLastDayOfMonth :: (Eq a1, Eq a2, Num a1, Num a2) => Year -> a1 -> a2 -> Bool
- isStandardPeriod :: Period -> Bool
- mondayBefore :: Day -> Day
- periodAsDateSpan :: Period -> DateSpan
- periodEnd :: Period -> Maybe Day
- periodGrow :: Period -> Period
- periodMoveTo :: Day -> Period -> Period
- periodNext :: Period -> Period
- periodNextIn :: DateSpan -> Period -> Period
- periodPrevious :: Period -> Period
- periodPreviousIn :: DateSpan -> Period -> Period
- periodShrink :: Day -> Period -> Period
- periodStart :: Period -> Maybe Day
- periodTextWidth :: Period -> Int
- quarterContainingMonth :: Integral a => a -> a
- showPeriod :: Period -> Text
- showPeriodAbbrev :: Period -> Text
- showPeriodAbbrevWith :: TimeLocale -> Period -> Text
- simplifyPeriod :: Period -> Period
- startOfFirstWeekInMonth :: Year -> MonthOfYear -> Day
- thursdayOfWeekContaining :: Day -> Day
- yearMonthContainingWeekStarting :: Day -> (Year, MonthOfYear)
- insertPeriodData :: Semigroup a => Maybe Day -> a -> PeriodData a -> PeriodData a
- lookupPeriodData :: Day -> PeriodData a -> Maybe (Day, a)
- lookupPeriodDataOrHistorical :: Day -> PeriodData a -> (Maybe Day, a)
- mergePeriodData :: (a -> c) -> (b -> c) -> (a -> b -> c) -> PeriodData a -> PeriodData b -> PeriodData c
- opPeriodData :: (a -> b -> c) -> PeriodData a -> PeriodData b -> PeriodData c
- padPeriodData :: a -> PeriodData b -> PeriodData a -> PeriodData a
- periodDataFromList :: a -> [(Day, a)] -> PeriodData a
- periodDataToList :: PeriodData a -> (a, [(Day, a)])
- tests_PeriodData :: TestTree
- checkPeriodicTransactionStartDate :: Interval -> DateSpan -> Text -> Maybe String
- periodicTransactionDates :: PeriodicTransaction -> DateSpan -> [Day]
- runPeriodicTransaction :: Bool -> PeriodicTransaction -> DateSpan -> [Transaction]
- accountNamesFromPostings :: [Posting] -> [AccountName]
- amountIntegerWidth :: AmountFormat -> Amount -> Int
- balanceAssertionAmountB :: AmountFormat -> BalanceAssertion -> WideBuilder
- balanceAssertionOperatorB :: BalanceAssertion -> WideBuilder
- balassert :: Amount -> Maybe BalanceAssertion
- balassertParInc :: Amount -> Maybe BalanceAssertion
- balassertTot :: Amount -> Maybe BalanceAssertion
- balassertTotInc :: Amount -> Maybe BalanceAssertion
- commentAddTag :: Text -> Tag -> Text
- commentAddTagNextLine :: Text -> Tag -> Text
- commentAddTagUnspaced :: Text -> Tag -> Text
- commentJoin :: Text -> Text -> Text
- commentPrependTag :: Text -> Tag -> Text
- conversionPostingTagName :: TagName
- costPostingTagName :: TagName
- defaultDecimalMarkColumn :: Int
- defaultPostingLayout :: PostingLayout
- feesplitPostingTagName :: TagName
- generatedPostingTagName :: TagName
- generatedTransactionTagName :: TagName
- hasAmount :: Posting -> Bool
- hasBalanceAssignment :: Posting -> Bool
- imbalancePostingTagName :: TagName
- isBalancedVirtual :: Posting -> Bool
- isEmptyPosting :: Posting -> Bool
- isExplicitAmount :: Posting -> Bool
- isReal :: Posting -> Bool
- isVirtual :: Posting -> Bool
- lotParentAssertionTagName :: TagName
- lotsplitPostingTagName :: TagName
- modifiedTransactionTagName :: TagName
- nullassertion :: BalanceAssertion
- nullposting :: Posting
- originalPosting :: Posting -> Posting
- post :: AccountName -> Amount -> Posting
- post' :: AccountName -> Amount -> Maybe BalanceAssertion -> Posting
- posting :: Posting
- postingAddHiddenAndMaybeVisibleTag :: Bool -> Bool -> HiddenTag -> Posting -> Posting
- postingAddInferredEquityPostings :: Bool -> Text -> Posting -> [Posting]
- postingAddTags :: Posting -> [Tag] -> Posting
- postingAllTags :: Posting -> [Tag]
- postingApplyAliases :: [AccountAlias] -> Posting -> Either RegexError Posting
- postingApplyCommodityStyles :: Map CommoditySymbol AmountStyle -> Posting -> Posting
- postingApplyValuation :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> ValuationType -> Posting -> Posting
- postingAsLines :: AmountFormat -> Bool -> Bool -> Int -> Int -> AmountCols -> Posting -> ([Text], PostingWidths)
- postingCommodities :: Posting -> [CommoditySymbol]
- postingDate :: Posting -> Day
- postingDate2 :: Posting -> Day
- postingDateOrDate2 :: WhichDate -> Posting -> Day
- postingHasTag :: TagName -> Posting -> Bool
- postingIndent :: Text -> Text
- postingNegate :: Posting -> Posting
- postingNegateMainAmount :: Posting -> Posting
- postingPriceDirectivesFromCost :: Posting -> [PriceDirective]
- postingRemoveHiddenAndVisibleTag :: HiddenTag -> Posting -> Posting
- postingStatus :: Posting -> Status
- postingStripCosts :: Posting -> Posting
- postingStyleAmounts :: Map CommoditySymbol AmountStyle -> Posting -> Posting
- postingToCost :: ConversionOp -> Posting -> Maybe Posting
- postingTransformAmount :: (MixedAmount -> MixedAmount) -> Posting -> Posting
- postingsAddInferredEquityPostings :: Bool -> Text -> [Posting] -> [Posting]
- postingsAsLines :: AmountFormat -> Bool -> [Posting] -> [Text]
- postingsAsLinesWithLayout :: AmountFormat -> Bool -> PostingLayout -> [Posting] -> [Text]
- relatedPostings :: Posting -> [Posting]
- renderCommentLines :: Text -> [Text]
- showAccountName :: Maybe Int -> PostingRealness -> AccountName -> Text
- showBalanceAssertion :: BalanceAssertion -> WideBuilder
- showPosting :: Posting -> String
- showPostingLines :: Posting -> [Text]
- sumPostings :: [Posting] -> MixedAmount
- tests_Posting :: TestTree
- transactionAllTags :: Transaction -> [Tag]
- vpost :: AccountName -> Amount -> Posting
- vpost' :: AccountName -> Amount -> Maybe BalanceAssertion -> Posting
- appendopts :: [(String, String)] -> RawOpts -> RawOpts
- boolopt :: String -> RawOpts -> Bool
- choiceopt :: (String -> Maybe a) -> RawOpts -> Maybe a
- collectopts :: ((String, String) -> Maybe a) -> RawOpts -> [a]
- dropRawOpt :: String -> RawOpts -> RawOpts
- intopt :: String -> RawOpts -> Int
- listofstringopt :: String -> RawOpts -> [String]
- maybecharopt :: String -> RawOpts -> Maybe Char
- maybeintopt :: String -> RawOpts -> Maybe Int
- maybeposintopt :: String -> RawOpts -> Maybe Int
- maybestringopt :: String -> RawOpts -> Maybe String
- maybeynaopt :: String -> RawOpts -> Maybe YNA
- maybeynopt :: String -> RawOpts -> Maybe Bool
- mkRawOpts :: [(String, String)] -> RawOpts
- overRawOpts :: ([(String, String)] -> [(String, String)]) -> RawOpts -> RawOpts
- posintopt :: String -> RawOpts -> Int
- setboolopt :: String -> RawOpts -> RawOpts
- setopt :: String -> String -> RawOpts -> RawOpts
- stringopt :: String -> RawOpts -> String
- toggleopt :: String -> RawOpts -> Bool
- unsetboolopt :: String -> RawOpts -> RawOpts
- defaultBalanceLineFormat :: StringFormat
- defaultStringFormatStyle :: [StringFormatComponent] -> StringFormat
- parseStringFormat :: Text -> Either String StringFormat
- tests_StringFormat :: TestTree
- tests_Timeclock :: TestTree
- timeclockToTransactions :: LocalTime -> [TimeclockEntry] -> [Transaction]
- timeclockToTransactionsOld :: LocalTime -> [TimeclockEntry] -> [Transaction]
- annotateErrorWithTransaction :: Transaction -> String -> String
- assignmentPostings :: Transaction -> [Posting]
- balancedVirtualPostings :: Transaction -> [Posting]
- hasRealPostings :: Transaction -> Bool
- nulltransaction :: Transaction
- partitionAndCheckConversionPostings :: Bool -> [AccountName] -> [IdxPosting] -> Either Text ([(IdxPosting, IdxPosting)], ([IdxPosting], [IdxPosting]))
- payeeAndNoteFromDescription :: Text -> (Text, Text)
- payeeAndNoteFromDescription' :: Text -> (Text, Text)
- realPostings :: Transaction -> [Posting]
- showTransaction :: Transaction -> Text
- showTransactionLineFirstPart :: Transaction -> Text
- showTransactionOneLine :: Transaction -> Text
- showTransactionOneLineAmounts :: Transaction -> Text
- showTransactionWithLayout :: PostingLayout -> Transaction -> Text
- tests_Transaction :: TestTree
- transaction :: Day -> [Posting] -> Transaction
- transactionAddHiddenAndMaybeVisibleTag :: Bool -> HiddenTag -> Transaction -> Transaction
- transactionAddTags :: Transaction -> [Tag] -> Transaction
- transactionAmounts :: Transaction -> [MixedAmount]
- transactionApplyAliases :: [AccountAlias] -> Transaction -> Either RegexError Transaction
- transactionApplyValuation :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> ValuationType -> Transaction -> Transaction
- transactionCommodityStyles :: Transaction -> Map CommoditySymbol AmountStyle
- transactionCommodityStylesWith :: Rounding -> Transaction -> Map CommoditySymbol AmountStyle
- transactionDate2 :: Transaction -> Day
- transactionDateOrDate2 :: WhichDate -> Transaction -> Day
- transactionFile :: Transaction -> FilePath
- transactionInferEquityPostings :: Bool -> AccountName -> Transaction -> Transaction
- transactionMapPostingAmounts :: (MixedAmount -> MixedAmount) -> Transaction -> Transaction
- transactionMapPostings :: (Posting -> Posting) -> Transaction -> Transaction
- transactionNegate :: Transaction -> Transaction
- transactionNote :: Transaction -> Text
- transactionPayee :: Transaction -> Text
- transactionTagCostsAndEquityAndMaybeInferCosts :: Bool -> Bool -> [AccountName] -> Transaction -> Either String Transaction
- transactionToCost :: ConversionOp -> Transaction -> Transaction
- transactionTransformPostings :: (Posting -> Posting) -> Transaction -> Transaction
- transactionsPostings :: [Transaction] -> [Posting]
- txnTieKnot :: Transaction -> Transaction
- txnUntieKnot :: Transaction -> Transaction
- virtualPostings :: Transaction -> [Posting]
- modifyTransactions :: (AccountName -> Maybe AccountType) -> (AccountName -> [Tag]) -> Map CommoditySymbol AmountStyle -> Day -> Bool -> [TransactionModifier] -> [Transaction] -> Either String [Transaction]
- fromEFDay :: EFDay -> Day
- isBalanceSheetAccountType :: AccountType -> Bool
- isDecimalMark :: Char -> Bool
- isHiddenTagName :: TagName -> Bool
- isIncomeStatementAccountType :: AccountType -> Bool
- maCompare :: MixedAmount -> MixedAmount -> Ordering
- mixedAmountKey :: Amount -> MixedAmountKey
- modifyEFDay :: (Day -> Day) -> EFDay -> EFDay
- nullaccountdeclarationinfo :: AccountDeclarationInfo
- nullpayeedeclarationinfo :: PayeeDeclarationInfo
- nullperiodictransaction :: PeriodicTransaction
- nullsourcepos :: SourcePos
- nullsourcepospair :: (SourcePos, SourcePos)
- nulltagdeclarationinfo :: TagDeclarationInfo
- nulltransactionmodifier :: TransactionModifier
- showMarketPrice :: MarketPrice -> String
- showMarketPrices :: [MarketPrice] -> [Char]
- toHiddenTag :: Tag -> HiddenTag
- toHiddenTagName :: TagName -> TagName
- toVisibleTag :: HiddenTag -> Tag
- toVisibleTagName :: TagName -> TagName
- amountPriceDirectiveFromCost :: Day -> Amount -> Maybe PriceDirective
- amountValueAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> Amount -> Amount
- journalAliasPriceDirectives :: Journal -> [PriceDirective]
- journalPriceOracle :: Bool -> Journal -> PriceOracle
- marketPriceReverse :: MarketPrice -> MarketPrice
- mixedAmountApplyGain :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> Day -> ValuationType -> MixedAmount -> MixedAmount
- mixedAmountApplyValuation :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> Day -> ValuationType -> MixedAmount -> MixedAmount
- mixedAmountGainAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> MixedAmount -> MixedAmount
- mixedAmountToCost :: Map CommoditySymbol AmountStyle -> ConversionOp -> MixedAmount -> MixedAmount
- mixedAmountValueAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> MixedAmount -> MixedAmount
- priceDirectiveToMarketPrice :: PriceDirective -> MarketPrice
- tests_Valuation :: TestTree
- valuationTypeValuationCommodity :: ValuationType -> Maybe CommoditySymbol
- filterQuery :: (Query -> Bool) -> Query -> Query
- filterQueryOrNotQuery :: (Query -> Bool) -> Query -> Query
- generatedTransactionTag :: Query
- inAccount :: [QueryOpt] -> Maybe (AccountName, Bool)
- inAccountQuery :: [QueryOpt] -> Maybe Query
- matchesAccount :: Query -> AccountName -> Bool
- matchesAccountExtra :: (AccountName -> Maybe AccountType) -> (AccountName -> [Tag]) -> Query -> AccountName -> Bool
- matchesAmount :: Query -> Amount -> Bool
- matchesCommodity :: Query -> CommoditySymbol -> Bool
- matchesCommodityExtra :: (CommoditySymbol -> [Tag]) -> Query -> CommoditySymbol -> Bool
- matchesMixedAmount :: Query -> MixedAmount -> Bool
- matchesPayee :: Query -> Payee -> Bool
- matchesPosting :: Query -> Posting -> Bool
- matchesPostingExtra :: (AccountName -> Maybe AccountType) -> Query -> Posting -> Bool
- matchesPriceDirective :: Query -> PriceDirective -> Bool
- matchesQuery :: (Query -> Bool) -> Query -> Bool
- matchesRowAmounts :: Query -> MixedAmount -> MixedAmount -> Bool
- matchesTag :: Query -> Tag -> Bool
- matchesTransaction :: Query -> Transaction -> Bool
- matchesTransactionExtra :: (AccountName -> Maybe AccountType) -> Query -> Transaction -> Bool
- noteTag :: Maybe Text -> Either RegexError Query
- parseAmountQueryArg :: String -> Text -> Either String (OrdPlus, Quantity, Maybe CommoditySymbol)
- parseDepthSpec :: Text -> Either RegexError DepthSpec
- parseQuery :: Day -> Text -> Either String (Query, [QueryOpt])
- parseQueryList :: Day -> [Text] -> Either String (Query, [QueryOpt])
- parseQueryTerm :: Day -> Text -> Either String (Query, [QueryOpt])
- payeeTag :: Maybe Text -> Either RegexError Query
- postingQueryForAccount :: (AccountName -> Maybe AccountType) -> AccountName -> Maybe AccountName -> Query -> Query
- queryDateSpan :: Bool -> Query -> DateSpan
- queryDateSpan' :: Query -> DateSpan
- queryDepth :: Query -> DepthSpec
- queryEndDate :: Bool -> Query -> Maybe Day
- queryHasBalance :: Query -> Bool
- queryHasChange :: Query -> Bool
- queryIsAcct :: Query -> Bool
- queryIsAmt :: Query -> Bool
- queryIsAmtOrCur :: Query -> Bool
- queryIsBalance :: Query -> Bool
- queryIsChange :: Query -> Bool
- queryIsCode :: Query -> Bool
- queryIsCur :: Query -> Bool
- queryIsDate :: Query -> Bool
- queryIsDate2 :: Query -> Bool
- queryIsDateOrDate2 :: Query -> Bool
- queryIsDepth :: Query -> Bool
- queryIsDesc :: Query -> Bool
- queryIsFind :: Query -> Bool
- queryIsFlatDepth :: Query -> Bool
- queryIsNull :: Query -> Bool
- queryIsReal :: Query -> Bool
- queryIsRowTerm :: Query -> Bool
- queryIsStartDateOnly :: Bool -> Query -> Bool
- queryIsStatus :: Query -> Bool
- queryIsTag :: Query -> Bool
- queryIsTransactionRelated :: Query -> Bool
- queryIsType :: Query -> Bool
- querySplitRowTerms :: Query -> Either String (Query, Query)
- queryStartDate :: Bool -> Query -> Maybe Day
- queryprefixes :: [Text]
- simplifyQuery :: Query -> Query
- tests_Query :: TestTree
- transformQuery :: (Query -> Query) -> Query -> Query
- words'' :: [Text] -> Text -> [Text]
- defaultExistingJournalPath :: IO String
- defaultExistingJournalPathSafely :: IO (Either String String)
- defaultJournal :: IO Journal
- defaultJournalPath :: IO String
- defaultJournalPathSafely :: IO (Either String String)
- defaultJournalSafely :: IO (Either String Journal)
- defaultJournalWith :: InputOpts -> IO Journal
- defaultJournalWithSafely :: InputOpts -> IO (Either String Journal)
- ensureJournalFileExists :: FilePath -> IO ()
- isWindowsUnsafeDotPath :: FilePath -> Bool
- journalDefaultFilename :: FilePath
- journalEnvVar :: String
- orDieTrying :: MonadIO m => ExceptT String m a -> m a
- readJournal :: InputOpts -> Maybe FilePath -> Handle -> ExceptT String IO Journal
- readJournal' :: Handle -> IO Journal
- readJournal'' :: Text -> IO Journal
- readJournalFile :: InputOpts -> PrefixedFilePath -> ExceptT String IO Journal
- readJournalFile' :: PrefixedFilePath -> IO Journal
- readJournalFiles :: InputOpts -> [PrefixedFilePath] -> ExceptT String IO Journal
- readJournalFiles' :: [PrefixedFilePath] -> IO Journal
- readJournalFilesAndLatestDates :: InputOpts -> [PrefixedFilePath] -> ExceptT String IO (Journal, [LatestDatesForFile])
- readPossibleJournalFile :: InputOpts -> PrefixedFilePath -> ExceptT String IO Journal
- readPossibleJournalFiles :: InputOpts -> [PrefixedFilePath] -> ExceptT String IO Journal
- requireJournalFileExists :: FilePath -> IO ()
- tests_Read :: TestTree
- accountNameApplyModifiers :: [AccountAlias] -> AccountName -> [AccountAlias] -> AccountName -> Either RegexError AccountName
- accountaliasp :: forall (m :: Type -> Type). TextParser m AccountAlias
- accountnamenosemicolonp :: forall (m :: Type -> Type). TextParser m AccountName
- accountnamep :: forall (m :: Type -> Type). TextParser m AccountName
- addAccountAlias :: MonadState Journal m => AccountAlias -> m ()
- addDeclaredAccountTags :: forall (m :: Type -> Type). AccountName -> [Tag] -> JournalParser m ()
- addDeclaredAccountType :: forall (m :: Type -> Type). AccountName -> AccountType -> JournalParser m ()
- aliasedaccountnamep :: forall (m :: Type -> Type). Bool -> JournalParser m AccountName
- aliasesFromOpts :: InputOpts -> [AccountAlias]
- amountp :: forall (m :: Type -> Type). JournalParser m Amount
- amountp' :: forall (m :: Type -> Type). AmountParseKind -> JournalParser m Amount
- applyParentAndOptionAliases :: forall (m :: Type -> Type). AccountName -> JournalParser m AccountName
- balanceassertionp :: forall (m :: Type -> Type). JournalParser m BalanceAssertion
- bracketeddatetagsp :: forall (m :: Type -> Type). Maybe Year -> TextParser m [(TagName, Day)]
- codep :: forall (m :: Type -> Type). TextParser m Text
- commentlinetagsp :: forall (m :: Type -> Type). TextParser m [Tag]
- commoditysymbolp :: forall (m :: Type -> Type). TextParser m CommoditySymbol
- costp :: forall (m :: Type -> Type). Amount -> JournalParser m AmountCost
- datep :: forall (m :: Type -> Type). JournalParser m Day
- datetimep :: forall (m :: Type -> Type). JournalParser m LocalTime
- descriptionp :: forall (m :: Type -> Type). TextParser m Text
- doublequotedtextp :: forall (m :: Type -> Type). TextParser m Text
- emptyorcommentlinep :: forall (m :: Type -> Type). TextParser m ()
- emptyorcommentlinep2 :: forall (m :: Type -> Type). [Char] -> TextParser m ()
- followingcommentp :: forall (m :: Type -> Type). TextParser m Text
- fromRawNumber :: RawNumber -> Maybe Integer -> Either String (Quantity, Word8, Maybe Char, Maybe DigitGroupStyle)
- getAccountAliases :: MonadState Journal m => m [AccountAlias]
- getAmountStyle :: forall (m :: Type -> Type). CommoditySymbol -> JournalParser m (Maybe AmountStyle)
- getDefaultAmountStyle :: forall (m :: Type -> Type). JournalParser m (Maybe AmountStyle)
- getDefaultCommodityAndStyle :: forall (m :: Type -> Type). JournalParser m (Maybe (CommoditySymbol, AmountStyle))
- getParentAccount :: forall (m :: Type -> Type). JournalParser m AccountName
- getSourcePos' :: forall (m :: Type -> Type). JournalParser m SourcePos
- getYear :: forall (m :: Type -> Type). JournalParser m (Maybe Year)
- handleReadFnToTextReadFn :: (InputOpts -> FilePath -> Text -> ExceptT String IO Journal) -> InputOpts -> FilePath -> Handle -> ExceptT String IO Journal
- includeFileParser :: forall (m :: Type -> Type). MonadIO m => (FilePath -> ExceptT String IO ParsedJournal) -> ErroringJournalParser m ParsedJournal
- initialiseAndParseJournal :: ErroringJournalParser IO ParsedJournal -> InputOpts -> FilePath -> Text -> ExceptT String IO Journal
- interpretRawNumber :: Maybe Char -> Maybe AmountStyle -> Either AmbiguousNumber RawNumber -> Maybe Integer -> Either String (Quantity, Word8, Maybe Char, Maybe DigitGroupStyle)
- isDigitSeparatorChar :: Char -> Bool
- isLineCommentStart :: Char -> Bool
- isSameLineCommentStart :: Char -> Bool
- isStdin :: PrefixedFilePath -> Bool
- journalAddAutoPostings :: Bool -> Day -> BalancingOpts -> Journal -> Either String Journal
- journalAddFile :: JournalFile -> Journal -> Journal
- journalAddForecast :: Bool -> Maybe DateSpan -> Journal -> Journal
- journalAmountStyleFor :: Journal -> CommoditySymbol -> Maybe AmountStyle
- journalCheckAssertsWith :: InputOpts -> Journal -> Either String ()
- journalDecimalMarkStyle :: Journal -> Maybe AmountStyle
- journalFinalise :: InputOpts -> FilePath -> Text -> ParsedJournal -> ExceptT String IO Journal
- lotcostp :: forall (m :: Type -> Type). Quantity -> JournalParser m CostBasis
- modifiedaccountnamep :: forall (m :: Type -> Type). Bool -> JournalParser m AccountName
- multilinecommentp :: forall (m :: Type -> Type). TextParser m ()
- noncommenttext1p :: forall (m :: Type -> Type). TextParser m Text
- noncommenttextp :: forall (m :: Type -> Type). TextParser m Text
- numberp :: forall (m :: Type -> Type). Maybe AmountStyle -> TextParser m (Quantity, Word8, Maybe Char, Maybe DigitGroupStyle)
- parentaccountnamep :: forall (m :: Type -> Type). TextParser m AccountName
- parseAndFinaliseJournal :: ErroringJournalParser IO ParsedJournal -> InputOpts -> FilePath -> Text -> ExceptT String IO Journal
- parseamount :: String -> Either HledgerParseErrors Amount
- parseamount' :: String -> Amount
- parseamountWithStyles :: Map CommoditySymbol AmountStyle -> String -> Either HledgerParseErrors Amount
- parsemixedamount :: String -> Either HledgerParseErrors MixedAmount
- parsemixedamount' :: String -> MixedAmount
- postingamountp :: forall (m :: Type -> Type). AmountParseKind -> JournalParser m Amount
- postingcommentp :: forall (m :: Type -> Type). Maybe Year -> TextParser m (Text, [Tag], Maybe Day, Maybe Day)
- pushParentAccount :: forall (m :: Type -> Type). AccountName -> JournalParser m ()
- rawOptsToInputOpts :: Day -> Bool -> RawOpts -> InputOpts
- rawnumberp :: forall (m :: Type -> Type). TextParser m (Either AmbiguousNumber RawNumber)
- readerReadsOwnInput :: forall (m :: Type -> Type). Reader m -> Bool
- secondarydatep :: forall (m :: Type -> Type). Day -> TextParser m Day
- setDefaultCommodityAndStyle :: forall (m :: Type -> Type). (CommoditySymbol, AmountStyle) -> JournalParser m ()
- setYear :: forall (m :: Type -> Type). Year -> JournalParser m ()
- shareAmountStyle :: forall (m :: Type -> Type). AmountStyle -> JournalParser m AmountStyle
- shareText :: forall (m :: Type -> Type). Text -> JournalParser m Text
- simpleamountp :: forall (m :: Type -> Type). AmountParseKind -> JournalParser m Amount
- singlespacednoncommenttext1p :: forall (m :: Type -> Type). TextParser m Text
- singlespacedtext1p :: forall (m :: Type -> Type). TextParser m Text
- singlespacedtextsatisfying1p :: forall (m :: Type -> Type). (Char -> Bool) -> TextParser m Text
- singlespacep :: forall (m :: Type -> Type). TextParser m ()
- spaceandamountormissingp :: forall (m :: Type -> Type). JournalParser m MixedAmount
- statusp :: forall (m :: Type -> Type). TextParser m Status
- tests_Common :: TestTree
- timeofdayp :: forall (m :: Type -> Type). TextParser m TimeOfDay
- transactioncommentp :: forall (m :: Type -> Type). TextParser m (Text, [Tag])
- definputopts :: InputOpts
- fileOverride :: InputOpts -> FilePath -> IO (Maybe Text)
- forecastPeriod :: InputOpts -> Journal -> Maybe DateSpan
- inputOptsSetJournalDir :: Journal -> InputOpts -> InputOpts
- findReader :: forall (m :: Type -> Type). MonadIO m => Maybe StorageFormat -> Maybe FilePath -> Maybe (Reader m)
- parseAssertDirective :: Day -> String -> Text -> Either String AssertDirective
- runJournalParser :: Monad m => JournalParser m a -> Text -> m (Either HledgerParseErrors a)
- splitReaderPrefix :: PrefixedFilePath -> (Maybe StorageFormat, FilePath)
- tmpostingrulep :: forall (m :: Type -> Type). Maybe Year -> JournalParser m TMPostingRule
- journalFilterSinceLatestDates :: LatestDates -> Journal -> (Journal, LatestDates)
- latestDates :: [Day] -> LatestDates
- latestDatesFileFor :: FilePath -> FilePath
- previousLatestDates :: FilePath -> IO LatestDates
- saveLatestDates :: LatestDates -> FilePath -> IO ()
- saveLatestDatesForFiles :: [LatestDatesForFile] -> IO ()
- tests_Reports :: TestTree
- accountTransactionsReport :: ReportSpec -> Journal -> Query -> AccountTransactionsReport
- accountTransactionsReportByCommodity :: AccountTransactionsReport -> [(CommoditySymbol, AccountTransactionsReport)]
- accountTransactionsReportItems :: Query -> Query -> Query -> (Int -> MixedAmount -> MixedAmount -> MixedAmount) -> Int -> MixedAmount -> MixedAmount -> (MixedAmount -> MixedAmount) -> (AccountName -> Maybe AccountType) -> [(Day, Transaction)] -> [AccountTransactionsReportItem]
- accountTransactionsReportWithStart :: ReportSpec -> Journal -> Query -> (MixedAmount, AccountTransactionsReport)
- filterAccountTransactionsReportByCommodity :: CommoditySymbol -> AccountTransactionsReport -> AccountTransactionsReport
- tests_AccountTransactionsReport :: TestTree
- transactionRegisterDate :: WhichDate -> Query -> Query -> Transaction -> Day
- transactionRegisterDateExtra :: (AccountName -> Maybe AccountType) -> WhichDate -> Query -> Query -> Transaction -> Day
- triAmount :: (a, b, c, d, e, f) -> e
- triBalance :: (a, b, c, d, e, f) -> f
- triCommodityAmount :: CommoditySymbol -> (a, b, c, d, MixedAmount, f) -> MixedAmount
- triCommodityBalance :: CommoditySymbol -> (a, b, c, d, e, MixedAmount) -> MixedAmount
- triDate :: (a, Transaction, c, d, e, f) -> Day
- triOrigTransaction :: (a, b, c, d, e, f) -> a
- balanceReport :: ReportSpec -> Journal -> BalanceReport
- flatShowsExclusiveBalance :: Bool
- tests_BalanceReport :: TestTree
- budgetReport :: ReportSpec -> BalancingOpts -> DateSpan -> Journal -> BudgetReport
- tests_BudgetReport :: TestTree
- entriesReport :: ReportSpec -> Journal -> EntriesReport
- entriesReportUnsorted :: ReportSpec -> Journal -> EntriesReport
- tests_EntriesReport :: TestTree
- accountRowAmounts :: ReportSpec -> Journal -> PriceOracle -> Maybe DayPartition -> [Posting] -> Map AccountName (MixedAmount, MixedAmount)
- balanceReportStyles :: ReportOpts -> Journal -> Map CommoditySymbol AmountStyle
- compoundBalanceReport :: ReportSpec -> Journal -> [CBCSubreportSpec a] -> CompoundPeriodicReport a MixedAmount
- compoundBalanceReportWith :: ReportSpec -> Journal -> PriceOracle -> [CBCSubreportSpec a] -> CompoundPeriodicReport a MixedAmount
- generateMultiBalanceAccount :: ReportSpec -> Journal -> PriceOracle -> Maybe DayPartition -> [Posting] -> Account BalanceData
- generatePeriodicReport :: Show c => (forall a. ReportOpts -> (BalanceData -> MixedAmount) -> a -> Account b -> PeriodicReportRow a c) -> (b -> MixedAmount) -> (c -> MixedAmount) -> ReportOpts -> Maybe DayPartition -> Account b -> PeriodicReport DisplayName c
- getPostings :: ReportSpec -> Journal -> PriceOracle -> DateSpan -> [Posting]
- makePeriodicReportRow :: c -> (Map Day c -> (c, c)) -> ReportOpts -> (b -> c) -> a -> Account b -> PeriodicReportRow a c
- makeReportQuery :: ReportSpec -> DateSpan -> ReportSpec
- multiBalanceReport :: ReportSpec -> Journal -> MultiBalanceReport
- multiBalanceReportWith :: ReportSpec -> Journal -> PriceOracle -> MultiBalanceReport
- rowTotal :: ReportOpts -> c -> c -> Map Day c -> c
- tests_MultiBalanceReport :: TestTree
- mkpostingsReportItem :: Bool -> Bool -> WhichDate -> Maybe Period -> Posting -> MixedAmount -> PostingsReportItem
- postingsReport :: ReportSpec -> Journal -> PostingsReport
- postingsReportStartBalances :: ReportSpec -> Journal -> Map AccountName MixedAmount
- registerRunningCalculationFn :: ReportOpts -> Int -> MixedAmount -> MixedAmount -> MixedAmount
- tests_PostingsReport :: TestTree
- balanceAccumulationOverride :: RawOpts -> Maybe BalanceAccumulation
- balanceCalcIsCount :: BalanceCalculation -> Bool
- defreportopts :: ReportOpts
- defreportspec :: ReportSpec
- defsortspec :: SortSpec
- effectiveTitle :: ReportOpts -> Text -> Text
- flat_ :: ReportOpts -> Bool
- intervalFromQueryOpts :: [QueryOpt] -> Maybe Interval
- intervalFromRawOpts :: RawOpts -> Interval
- journalApplyValuationFromOpts :: ReportSpec -> Journal -> Journal
- journalApplyValuationFromOptsWith :: ReportSpec -> Journal -> PriceOracle -> Journal
- journalValueAndFilterPostings :: ReportSpec -> Journal -> Journal
- journalValueAndFilterPostingsWith :: ReportSpec -> Journal -> PriceOracle -> Journal
- mixedAmountApplyValuationAfterSumFromOptsWith :: ReportOpts -> Journal -> PriceOracle -> Day -> MixedAmount -> MixedAmount
- overEither :: ((a -> Either e b) -> s -> Either e t) -> (a -> b) -> s -> Either e t
- postingDateFn :: ReportOpts -> Posting -> Day
- queryFromFlags :: ReportOpts -> Query
- rawOptsToReportOpts :: Day -> Bool -> RawOpts -> ReportOpts
- rawOptsToReportSpec :: Day -> Bool -> RawOpts -> Either String ReportSpec
- reportEndDate :: Journal -> ReportSpec -> Maybe Day
- reportOptsToSpec :: Day -> ReportOpts -> Either String ReportSpec
- reportOptsToggleStatus :: Status -> ReportOpts -> ReportOpts
- reportPeriodLastDay :: ReportSpec -> Maybe Day
- reportPeriodName :: ReportOpts -> [DateSpan] -> DateSpan -> Text
- reportPeriodOrJournalLastDay :: ReportSpec -> Journal -> Maybe Day
- reportPeriodOrJournalStart :: ReportSpec -> Journal -> Maybe Day
- reportPeriodStart :: ReportSpec -> Maybe Day
- reportSpan :: Journal -> ReportSpec -> (DateSpan, Maybe DayPartition)
- reportSpanBothDates :: Journal -> ReportSpec -> (DateSpan, Maybe DayPartition)
- reportSpanBothDatesLazy :: Journal -> ReportSpec -> (DateSpan, [DateSpan])
- reportSpanLazy :: Journal -> ReportSpec -> (DateSpan, [DateSpan])
- reportStartDate :: Journal -> ReportSpec -> Maybe Day
- requiresHistorical :: ReportOpts -> Bool
- setDefaultConversionOp :: ConversionOp -> ReportSpec -> ReportSpec
- setEither :: ((a -> Either e b) -> s -> Either e t) -> b -> s -> Either e t
- simplifyStatuses :: Ord a => [a] -> [a]
- sortKeysDescription :: [Char]
- transactionDateFn :: ReportOpts -> Transaction -> Day
- tree_ :: ReportOpts -> Bool
- updateReportSpec :: ReportOpts -> ReportSpec -> Either String ReportSpec
- updateReportSpecWith :: (ReportOpts -> ReportOpts) -> ReportSpec -> Either String ReportSpec
- valuationAfterSum :: ReportOpts -> Maybe (Maybe CommoditySymbol)
- whichDate :: ReportOpts -> WhichDate
- flatDisplayName :: AccountName -> DisplayName
- periodicReportSpan :: PeriodicReport a b -> DateSpan
- prMapMaybeName :: (a -> Maybe b) -> PeriodicReport a c -> PeriodicReport b c
- prMapName :: (a -> b) -> PeriodicReport a c -> PeriodicReport b c
- prrAdd :: Semigroup b => PeriodicReportRow a b -> PeriodicReportRow a b -> PeriodicReportRow a b
- prrDisplayName :: PeriodicReportRow DisplayName a -> AccountName
- prrFullName :: PeriodicReportRow DisplayName a -> AccountName
- prrIndent :: PeriodicReportRow DisplayName a -> Int
- prrShowDebug :: PeriodicReportRow DisplayName MixedAmount -> String
- treeDisplayName :: AccountName -> DisplayName
- all1 :: (a -> Bool) -> [a] -> Bool
- applyN :: Int -> (a -> a) -> a -> a
- curry2 :: ((a, b) -> c) -> a -> b -> c
- curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d
- curry4 :: ((a, b, c, d) -> e) -> a -> b -> c -> d -> e
- divideSafe :: (Eq a, Fractional a) => a -> a -> a
- fifth5 :: (a, b, c, d, e) -> e
- fifth6 :: (a, b, c, d, e, f) -> e
- first3 :: (a, b, c) -> a
- first4 :: (a, b, c, d) -> a
- first5 :: (a, b, c, d, e) -> a
- first6 :: (a, b, c, d, e, f) -> a
- fourth4 :: (a, b, c, d) -> d
- fourth5 :: (a, b, c, d, e) -> d
- fourth6 :: (a, b, c, d, e, f) -> d
- makeHledgerClassyLenses :: Name -> DecsQ
- mapM' :: Monad f => (a -> f b) -> [a] -> f [b]
- maximum' :: Integral a => [a] -> a
- maximumStrict :: Ord a => [a] -> a
- minimumStrict :: Ord a => [a] -> a
- multicol :: Int -> [String] -> String
- numDigitsInt :: Integral a => Int -> a
- numDigitsInteger :: Integer -> Int
- second3 :: (a, b, c) -> b
- second4 :: (a, b, c, d) -> b
- second5 :: (a, b, c, d, e) -> b
- second6 :: (a, b, c, d, e, f) -> b
- sequence' :: Monad f => [f a] -> f [a]
- sixth6 :: (a, b, c, d, e, f) -> f
- splitAtElement :: Eq a => a -> [a] -> [[a]]
- sumStrict :: Num a => [a] -> a
- takeUntilFails :: (a -> Bool) -> [a] -> [a]
- takeUntilFailsNE :: (a -> Bool) -> NonEmpty a -> NonEmpty a
- tests_Utils :: TestTree
- third3 :: (a, b, c) -> c
- third4 :: (a, b, c, d) -> c
- third5 :: (a, b, c, d, e) -> c
- third6 :: (a, b, c, d, e, f) -> c
- treeLeaves :: Tree a -> [a]
- uncurry2 :: (a -> b -> c) -> (a, b) -> c
- uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d
- uncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e
- dbg :: Show a => Int -> String -> a -> a
- dbg0 :: Show a => String -> a -> a
- dbg0IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg0Msg :: String -> a -> a
- dbg0MsgIO :: MonadIO m => String -> m ()
- dbg0With :: (a -> String) -> a -> a
- dbg1 :: Show a => String -> a -> a
- dbg1IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg1Msg :: String -> a -> a
- dbg1MsgIO :: MonadIO m => String -> m ()
- dbg1With :: (a -> String) -> a -> a
- dbg2 :: Show a => String -> a -> a
- dbg2IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg2Msg :: String -> a -> a
- dbg2MsgIO :: MonadIO m => String -> m ()
- dbg2With :: (a -> String) -> a -> a
- dbg3 :: Show a => String -> a -> a
- dbg3IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg3Msg :: String -> a -> a
- dbg3MsgIO :: MonadIO m => String -> m ()
- dbg3With :: (a -> String) -> a -> a
- dbg4 :: Show a => String -> a -> a
- dbg4IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg4Msg :: String -> a -> a
- dbg4MsgIO :: MonadIO m => String -> m ()
- dbg4With :: (a -> String) -> a -> a
- dbg5 :: Show a => String -> a -> a
- dbg5IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg5Msg :: String -> a -> a
- dbg5MsgIO :: MonadIO m => String -> m ()
- dbg5With :: (a -> String) -> a -> a
- dbg6 :: Show a => String -> a -> a
- dbg6IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg6Msg :: String -> a -> a
- dbg6MsgIO :: MonadIO m => String -> m ()
- dbg6With :: (a -> String) -> a -> a
- dbg7 :: Show a => String -> a -> a
- dbg7IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg7Msg :: String -> a -> a
- dbg7MsgIO :: MonadIO m => String -> m ()
- dbg7With :: (a -> String) -> a -> a
- dbg8 :: Show a => String -> a -> a
- dbg8IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg8Msg :: String -> a -> a
- dbg8MsgIO :: MonadIO m => String -> m ()
- dbg8With :: (a -> String) -> a -> a
- dbg9 :: Show a => String -> a -> a
- dbg9IO :: (MonadIO m, Show a) => String -> a -> m ()
- dbg9Msg :: String -> a -> a
- dbg9MsgIO :: MonadIO m => String -> m ()
- dbg9With :: (a -> String) -> a -> a
- dbgIO :: (MonadIO m, Show a) => Int -> String -> a -> m ()
- dbgMsg :: Int -> String -> a -> a
- dbgMsgIO :: MonadIO m => Int -> String -> m ()
- dbgTime :: NFData a => Int -> String -> a -> a
- dbgTimeIO :: (MonadIO m, NFData a) => Int -> String -> a -> m a
- dbgTimeResetIO :: MonadIO m => m ()
- dbgWith :: Int -> (a -> String) -> a -> a
- dbg_ :: Show a => Int -> String -> a -> a
- debugLevel :: Int
- ghcDebugMode :: GhcDebugMode
- ghcDebugPause' :: IO ()
- ghcDebugSupportedInLib :: Bool
- lbl_ :: String -> String -> String -> String
- progName :: String
- withGhcDebug' :: a -> a
- accent :: String -> String
- ansiFormatError :: String -> String
- ansiFormatWarning :: String -> String
- bgColor :: ColorIntensity -> Color -> String -> String
- bgColorB :: ColorIntensity -> Color -> WideBuilder -> WideBuilder
- black' :: String -> String
- blue' :: String -> String
- bold' :: String -> String
- brightBlack' :: String -> String
- brightBlue' :: String -> String
- brightCyan' :: String -> String
- brightGreen' :: String -> String
- brightMagenta' :: String -> String
- brightRed' :: String -> String
- brightWhite' :: String -> String
- brightYellow' :: String -> String
- color :: ColorIntensity -> Color -> String -> String
- colorB :: ColorIntensity -> Color -> WideBuilder -> WideBuilder
- colorOption :: IO YNA
- cyan' :: String -> String
- dataDirName :: FilePath
- embedFileRelative :: FilePath -> Q Exp
- embedFileRelativeBytes :: FilePath -> Q Exp
- ensureFilesystemCanAppend :: FilePath -> IO Bool
- error' :: String -> a
- exitWithErrorMessage :: String -> IO ()
- expandGlob :: FilePath -> FilePath -> IO [FilePath]
- expandHomePath :: FilePath -> IO FilePath
- expandPath :: FilePath -> FilePath -> IO FilePath
- expandPathOrGlob :: FilePath -> FilePath -> IO FilePath
- faint' :: String -> String
- findPager :: IO (Maybe String)
- getCurrentLocalTime :: IO LocalTime
- getCurrentZonedTime :: IO ZonedTime
- getFlag :: [String] -> IO Bool
- getHomeSafe :: IO (Maybe FilePath)
- getOpt :: [String] -> IO (Maybe String)
- getTerminalHeight :: IO (Maybe Int)
- getTerminalHeightWidth :: IO (Maybe (Int, Int))
- getTerminalWidth :: IO (Maybe Int)
- gradientStr :: (String -> String) -> Int -> Int -> Int -> Int -> String -> String
- green' :: String -> String
- hGetContentsPortably :: Maybe DynEncoding -> Handle -> IO Text
- handleExit :: IO () -> IO ()
- insideEmacsNotVterm :: IO Bool
- lessIsWorking :: Maybe [(String, String)] -> IO Bool
- lessVarValue :: Maybe String -> Maybe String -> Bool -> String
- magenta' :: String -> String
- openFileOrStdin :: String -> IO Handle
- parseYN :: String -> Either String Bool
- parseYNA :: String -> Either String YNA
- pprint :: Show a => a -> IO ()
- pprint' :: Show a => a -> IO ()
- printError :: String -> IO ()
- progArgs :: [String]
- pshow :: Show a => a -> String
- pshow' :: Show a => a -> String
- readFileOrStdinPortably :: String -> IO Text
- readFileOrStdinPortably' :: Maybe DynEncoding -> String -> IO Text
- readFilePortably :: FilePath -> IO Text
- readFileStrictly :: FilePath -> IO Text
- red' :: String -> String
- rgb' :: Float -> Float -> Float -> String -> String
- rulesDirName :: FilePath
- runPager :: String -> IO ()
- setWarningHandler :: (String -> IO ()) -> IO ()
- sgrresetall :: String
- sortByModTime :: [FilePath] -> IO [FilePath]
- supportsTrueColor :: IO Bool
- supportsTrueColorUnsafe :: Bool
- terminalBgColor :: Maybe (RGB Float)
- terminalFgColor :: Maybe (RGB Float)
- terminalIsLight :: Maybe Bool
- terminalLightness :: Maybe Float
- textToHandle :: Text -> IO Handle
- titleAndVersionLine :: Int -> String -> String -> String
- titleLine :: String -> String
- usageError :: String -> a
- useColorOnStderr :: IO Bool
- useColorOnStderrUnsafe :: Bool
- useColorOnStdout :: IO Bool
- useColorOnStdoutUnsafe :: Bool
- warn :: String -> a -> a
- warnIO :: MonadIO m => String -> m ()
- white' :: String -> String
- withFileOrStdout :: FilePath -> IOMode -> (Handle -> IO r) -> IO r
- yellow' :: String -> String
- attachSource :: FilePath -> Text -> FinalParseError' e -> FinalParseErrorBundle' e
- choice' :: forall (m :: Type -> Type) a. [TextParser m a] -> TextParser m a
- choiceInState :: forall s (m :: Type -> Type) a. [StateT s (ParsecT HledgerParseErrorData Text m) a] -> StateT s (ParsecT HledgerParseErrorData Text m) a
- customErrorBundlePretty :: HledgerParseErrors -> String
- dbgparse :: forall (m :: Type -> Type). Int -> String -> TextParser m ()
- eolof :: forall (m :: Type -> Type). TextParser m ()
- excerpt_ :: MonadParsec HledgerParseErrorData Text m => m a -> m SourceExcerpt
- finalCustomFailure :: (MonadParsec e s m, MonadError (FinalParseError' e) m) => e -> m a
- finalError :: ParseError Text e -> FinalParseError' e
- finalErrorBundlePretty :: FinalParseErrorBundle' HledgerParseErrorData -> String
- finalFail :: (MonadParsec e s m, MonadError (FinalParseError' e) m) => String -> m a
- finalFancyFailure :: (MonadParsec e s m, MonadError (FinalParseError' e) m) => Set (ErrorFancy e) -> m a
- finalMessageFailure :: MonadError (FinalParseError' e) m => String -> m a
- finalizeCustomErrorBundle :: HledgerParseErrors -> HledgerParseErrors
- fromparse :: (Show t, Show (Token t), Show e) => Either (ParseErrorBundle t e) a -> a
- getExcerptText :: SourceExcerpt -> Text
- isNewline :: Char -> Bool
- isNonNewlineSpace :: Char -> Bool
- manyWhile :: MonadPlus m => m Bool -> m a -> m [a]
- nonspace :: forall (m :: Type -> Type). TextParser m Char
- parseErrorAt :: Int -> String -> HledgerParseErrorData
- parseErrorAtRegion :: Int -> Int -> String -> HledgerParseErrorData
- parseIncludeFile :: forall (m :: Type -> Type) st a. Monad m => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError m)) a -> st -> FilePath -> Text -> StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError m)) a
- parseWithState :: Monad m => st -> StateT st (ParsecT HledgerParseErrorData Text m) a -> Text -> m (Either HledgerParseErrors a)
- parseWithState' :: Stream s => st -> StateT st (ParsecT e s Identity) a -> s -> Either (ParseErrorBundle s e) a
- parseerror :: (Show t, Show (Token t), Show e) => ParseErrorBundle t e -> a
- parsewith :: Parsec e Text a -> Text -> Either (ParseErrorBundle Text e) a
- parsewithString :: Parsec e String a -> String -> Either (ParseErrorBundle String e) a
- peekAfterSpaces :: forall (m :: Type -> Type). TextParser m (Bool, Maybe Char)
- peekChar :: forall (m :: Type -> Type). TextParser m (Maybe Char)
- peekChars2 :: forall (m :: Type -> Type). TextParser m (Maybe Char, Maybe Char)
- reparseExcerpt :: forall (m :: Type -> Type) a. Monad m => SourceExcerpt -> ParsecT HledgerParseErrorData Text m a -> ParsecT HledgerParseErrorData Text m a
- restofline :: forall (m :: Type -> Type). TextParser m String
- rtp :: TextParser Identity a -> Text -> Either HledgerParseErrors a
- runTextParser :: TextParser Identity a -> Text -> Either HledgerParseErrors a
- skipNonNewlineSpaces :: forall s (m :: Type -> Type). (Stream s, Token s ~ Char) => ParsecT HledgerParseErrorData s m ()
- skipNonNewlineSpaces' :: forall s (m :: Type -> Type). (Stream s, Token s ~ Char) => ParsecT HledgerParseErrorData s m Bool
- skipNonNewlineSpaces1 :: forall s (m :: Type -> Type). (Stream s, Token s ~ Char) => ParsecT HledgerParseErrorData s m ()
- sourcePosFileLine :: SourcePos -> String
- sourcePosPairPretty :: (SourcePos, SourcePos) -> String
- spacenonewline :: forall s (m :: Type -> Type). (Stream s, Char ~ Token s) => ParsecT HledgerParseErrorData s m Char
- surroundedBy :: Applicative m => m openclose -> m a -> m a
- regexEscape :: Text -> Text
- regexMatch :: Regexp -> String -> Bool
- regexMatchText :: Regexp -> Text -> Bool
- regexMatchTextGroups :: Regexp -> Text -> [Text]
- regexReplace :: Regexp -> Replacement -> String -> Either RegexError String
- regexReplaceAllBy :: Regexp -> (String -> String) -> String -> String
- regexReplaceUnmemo :: Regexp -> Replacement -> String -> Either RegexError String
- toRegex :: Text -> Either RegexError Regexp
- toRegex' :: Text -> Regexp
- toRegexCI :: Text -> Either RegexError Regexp
- toRegexCI' :: Text -> Regexp
- capitalise :: String -> String
- chomp :: String -> String
- chomp1 :: String -> String
- elideLeft :: Int -> String -> String
- elideRight :: Int -> String -> String
- formatString :: Bool -> Maybe Int -> Maybe Int -> String -> String
- isDoubleQuoted :: String -> Bool
- isSingleQuoted :: String -> Bool
- lowercase :: String -> String
- lstrip :: String -> String
- quoteForCommandLine :: String -> String
- quoteIfNeeded :: String -> String
- rstrip :: String -> String
- shellQuoteIfNeeded :: String -> String
- singleQuoteIfNeeded :: String -> String
- singleline :: String -> String
- strWidth :: String -> Int
- strWidthAnsi :: String -> Int
- strip :: String -> String
- strip1By :: (Char -> Bool) -> String -> String
- strip1Char :: Char -> Char -> String -> String
- stripAnsi :: String -> String
- stripBy :: (Char -> Bool) -> String -> String
- stripQuotes :: String -> String
- stripbrackets :: String -> String
- takeEnd :: Int -> [a] -> [a]
- takeWidth :: Int -> String -> String
- underline :: String -> String
- uppercase :: String -> String
- words' :: String -> [String]
- wordsEither :: String -> Either String [String]
- wordsmay :: String -> Maybe [String]
- assertLeft :: (HasCallStack, Eq b, Show b) => Either a b -> Assertion
- assertParse :: (HasCallStack, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> Assertion
- assertParseE :: (HasCallStack, Eq a, Show a, Default st) => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError IO)) a -> Text -> Assertion
- assertParseEq :: (HasCallStack, Eq a, Show a, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> a -> Assertion
- assertParseEqE :: (Default st, Eq a, Show a, HasCallStack) => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError IO)) a -> Text -> a -> Assertion
- assertParseEqOn :: (HasCallStack, Eq b, Show b, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> (a -> b) -> b -> Assertion
- assertParseError :: (HasCallStack, Eq a, Show a, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> String -> Assertion
- assertParseErrorE :: (Default st, Eq a, Show a, HasCallStack) => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError IO)) a -> Text -> String -> Assertion
- assertParseStateOn :: (HasCallStack, Eq b, Show b, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> (st -> b) -> b -> Assertion
- assertRight :: (HasCallStack, Eq a, Show a) => Either a b -> Assertion
- escapeBackslash :: Text -> Text
- escapeDoubleQuotes :: Text -> Text
- fitText :: Maybe Int -> Maybe Int -> Bool -> Bool -> Text -> Text
- formatText :: Bool -> Maybe Int -> Maybe Int -> Text -> Text
- linesPrepend :: Text -> Text -> Text
- linesPrepend2 :: Text -> Text -> Text -> Text
- quoteForQuery :: Text -> Text
- quoteIfSpaced :: Text -> Text
- readDecimal :: Text -> Integer
- tests_Text :: TestTree
- textCapitalise :: Text -> Text
- textChomp :: Text -> Text
- textConcatBottomPadded :: [Text] -> Text
- textConcatTopPadded :: [Text] -> Text
- textElideRight :: Int -> Text -> Text
- textQuoteIfNeeded :: Text -> Text
- textStripQuotes :: Text -> Text
- textTakeWidth :: Int -> Text -> Text
- textUnbracket :: Text -> Text
- unlinesB :: [Builder] -> Builder
- wrap :: Text -> Text -> Text -> Text
- wbFromText :: Text -> WideBuilder
- wbToText :: WideBuilder -> Text
- wbUnpack :: WideBuilder -> String
- initialPos :: FilePath -> SourcePos
- mkPos :: Int -> Pos
- sourcePosPretty :: SourcePos -> String
- unPos :: Pos -> Int
- adjustOption :: IsOption v => (v -> v) -> TestTree -> TestTree
- askOption :: IsOption v => (v -> TestTree) -> TestTree
- defaultIngredients :: [Ingredient]
- localOption :: IsOption v => v -> TestTree -> TestTree
- withResource :: IO a -> (a -> IO ()) -> (IO a -> TestTree) -> TestTree
- defaultMainWithIngredients :: [Ingredient] -> TestTree -> IO ()
- after :: DependencyType -> String -> TestTree -> TestTree
- after_ :: DependencyType -> Expr -> TestTree -> TestTree
- dependentTestGroup :: TestName -> DependencyType -> [TestTree] -> TestTree
- inOrderTestGroup :: TestName -> [TestTree] -> TestTree
- sequentialTestGroup :: TestName -> DependencyType -> [TestTree] -> TestTree
- testGroup :: TestName -> [TestTree] -> TestTree
- includingOptions :: [OptionDescription] -> Ingredient
- mkTimeout :: Integer -> Timeout
- testCase :: TestName -> Assertion -> TestTree
- testCaseInfo :: TestName -> IO String -> TestTree
- (@=?) :: (Eq a, Show a, HasCallStack) => a -> a -> Assertion
- (@?) :: (AssertionPredicable t, HasCallStack) => t -> String -> Assertion
- (@?=) :: (Eq a, Show a, HasCallStack) => a -> a -> Assertion
- assertBool :: HasCallStack => String -> Bool -> Assertion
- assertEqual :: (Eq a, Show a, HasCallStack) => String -> a -> a -> Assertion
- assertFailure :: HasCallStack => String -> IO a
- assertString :: HasCallStack => String -> Assertion
- testCaseSteps :: TestName -> ((String -> IO ()) -> Assertion) -> TestTree
- runExceptT :: ExceptT e m a -> m (Either e a)
- type HasCallStack = ?callStack :: CallStack
- data LotDirection
- data AmountFormat = AmountFormat {
- displayCommodity :: Bool
- displayZeroCommodity :: Bool
- displayCommodityOrder :: Maybe [CommoditySymbol]
- displayDigitGroups :: Bool
- displayForceDecimalMark :: Bool
- displayOneLine :: Bool
- displayMinWidth :: Maybe Int
- displayMaxWidth :: Maybe Int
- displayCost :: Bool
- displayCostBasis :: Bool
- displayColour :: Bool
- displayQuotes :: Bool
- displayLedgerLotSyntax :: Bool
- data BalancingOpts = BalancingOpts {
- ignore_assertions_ :: Bool
- infer_balancing_costs_ :: Bool
- commodity_styles_ :: Maybe (Map CommoditySymbol AmountStyle)
- txn_balancing_ :: TransactionBalancingPrecision
- infer_imbalance_ :: Bool
- imbalance_account_ :: AccountName
- account_types_ :: Map AccountName AccountType
- lotful_commodities_ :: Set CommoditySymbol
- account_lots_tags_ :: Map AccountName Text
- lenient_lots_ :: Bool
- verbose_balancing_tags_ :: Bool
- class HasBalancingOpts c where
- balancingOpts :: Lens' c BalancingOpts
- account_lots_tags :: Lens' c (Map AccountName Text)
- account_types :: Lens' c (Map AccountName AccountType)
- commodity_styles :: Lens' c (Maybe (Map CommoditySymbol AmountStyle))
- ignore_assertions :: Lens' c Bool
- imbalance_account :: Lens' c AccountName
- infer_balancing_costs :: Lens' c Bool
- infer_imbalance :: Lens' c Bool
- lenient_lots :: Lens' c Bool
- lotful_commodities :: Lens' c (Set CommoditySymbol)
- txn_balancing :: Lens' c TransactionBalancingPrecision
- verbose_balancing_tags :: Lens' c Bool
- type CurrencyCode = Text
- type CurrencySymbol = Text
- data DayPartition
- type CommodityAliases = Map CommoditySymbol (CommoditySymbol, Quantity, Maybe AmountStyle)
- type ErroringJournalParser (m :: Type -> Type) a = StateT Journal (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError m)) a
- type JournalParser (m :: Type -> Type) a = StateT Journal (ParsecT HledgerParseErrorData Text m) a
- data AmountCols = AmountCols {
- acDecMark :: !Int
- acEquals :: !Int
- acAssDecMark :: !Int
- data PostingLayout
- = LayoutHledger1
- | LayoutDecimal !Int
- data PostingWidths = PostingWidths {
- pwAcct :: !Int
- pwLeft :: !Int
- pwRight :: !Int
- pwOperator :: !Int
- pwAsnLeft :: !Int
- data RawOpts
- data ReportItemField
- data StringFormat
- data StringFormatComponent
- = FormatLiteral Text
- | FormatField Bool (Maybe Int) (Maybe Int) ReportItemField
- data TransactionBalancingPrecision
- data Account a = Account {
- aname :: AccountName
- adeclarationinfo :: Maybe AccountDeclarationInfo
- asubs :: [Account a]
- aparent :: Maybe (Account a)
- aboring :: Bool
- adata :: PeriodData a
- data AccountAlias
- data AccountDeclarationInfo = AccountDeclarationInfo {
- adicomment :: Text
- aditags :: [Tag]
- adideclarationorder :: Int
- adisourcepos :: SourcePos
- type AccountName = Text
- data AccountType
- = Asset
- | Liability
- | Equity
- | Revenue
- | Expense
- | Cash
- | Conversion
- | Gain
- | UnrealisedGain
- | Imbalance
- data Amount = Amount {
- acommodity :: !CommoditySymbol
- aquantity :: !Quantity
- astyle :: !AmountStyle
- acost :: !(Maybe AmountCost)
- acostbasis :: !(Maybe CostBasis)
- data AmountCost
- data AmountPrecision
- = Precision !Word8
- | NaturalPrecision
- data AmountStyle = AmountStyle {
- ascommodityside :: !Side
- ascommodityspaced :: !Bool
- asdigitgroups :: !(Maybe DigitGroupStyle)
- asdecimalmark :: !(Maybe Char)
- asprecision :: !AmountPrecision
- asrounding :: !Rounding
- data AssertDirective = AssertDirective {
- adQuantifier :: AssertQuantifier
- adPeriod :: Maybe (Interval, DateSpan)
- adPeriodText :: Text
- adQueryText :: Text
- adSkips :: [DateSpan]
- adSourceText :: Text
- adSourcePos :: SourcePos
- data AssertQuantifier
- data BalanceAssertion = BalanceAssertion {
- baamount :: Amount
- batotal :: Bool
- bainclusive :: Bool
- baposition :: SourcePos
- data BalanceData = BalanceData {}
- data Commodity = Commodity {
- csymbol :: CommoditySymbol
- cformat :: Maybe AmountStyle
- ccomment :: Text
- ctags :: [Tag]
- caliases :: [(Amount, SourcePos)]
- csourcepos :: SourcePos
- type CommoditySymbol = Text
- data CostBasis = CostBasis {}
- data DateSpan = DateSpan (Maybe EFDay) (Maybe EFDay)
- type DateTag = (TagName, Day)
- type DecimalMark = Char
- data DepthSpec = DepthSpec {
- dsFlatDepth :: Maybe Int
- dsRegexpDepths :: [(Regexp, Int)]
- data DigitGroupStyle = DigitGroups !Char ![Word8]
- data EFDay
- data FastPathStats = FastPathStats {
- fpsTxnsFast :: Int
- fpsTxnsGeneral :: Int
- fpsPricesFast :: Int
- fpsPricesGeneral :: Int
- fpsDeclines :: Map Text Int
- class HasAmounts a where
- styleAmounts :: Map CommoditySymbol AmountStyle -> a -> a
- type HiddenTag = Tag
- data Interval
- = NoInterval
- | Days Int
- | Weeks Int
- | Months Int
- | Quarters Int
- | Years Int
- | NthWeekdayOfMonth Int Int
- | MonthDay Int
- | MonthAndDay Int Int
- | DaysOfWeek [Int]
- data Journal = Journal {
- jparsedefaultyear :: Maybe Year
- jparseapplyyears :: [Maybe Year]
- jparsedefaultcommodity :: Maybe (CommoditySymbol, AmountStyle)
- jparsedecimalmark :: Maybe DecimalMark
- jparseparentaccounts :: [AccountName]
- jparsealiases :: [AccountAlias]
- jparseoptaliases :: [AccountAlias]
- jparsetimeclockentries :: [TimeclockEntry]
- jparseincludefilestack :: [(FilePath, FilePath)]
- jparsepos :: Maybe ParsePos
- jparseamountstyles :: Set AmountStyle
- jparsetexts :: Set Text
- jparsefastpathstats :: FastPathStats
- jdeclaredpayees :: [(Payee, PayeeDeclarationInfo)]
- jdeclaredtags :: [(TagName, TagDeclarationInfo)]
- jdeclaredaccounts :: [(AccountName, AccountDeclarationInfo)]
- jdeclaredaccounttags :: Map AccountName [Tag]
- jdeclaredaccounttypes :: Map AccountType [AccountName]
- jaccounttypes :: Map AccountName AccountType
- jdeclaredcommodities :: Map CommoditySymbol Commodity
- jdeclaredcommoditytags :: Map CommoditySymbol [Tag]
- jinferredcommoditystyles :: Map CommoditySymbol AmountStyle
- jglobalcommoditystyles :: Map CommoditySymbol AmountStyle
- jpricedirectives :: [PriceDirective]
- jinferredmarketprices :: [MarketPrice]
- jtxnmodifiers :: [TransactionModifier]
- jperiodictxns :: [PeriodicTransaction]
- jasserts :: [AssertDirective]
- jtxns :: [Transaction]
- jitems :: [JournalItem]
- jfiles :: [JournalFile]
- jauxfiles :: [(FilePath, [FilePath])]
- jlastreadtime :: POSIXTime
- data JournalFile = JournalFile {}
- data JournalItem
- data Ledger = Ledger {
- ljournal :: Journal
- laccounts :: [Account BalanceData]
- data LotId = LotId {}
- data MarketPrice = MarketPrice {
- mpdate :: Day
- mpfrom :: CommoditySymbol
- mpto :: CommoditySymbol
- mprate :: Quantity
- data MixedAmount
- pattern MixedAmountKeyNoCost :: CommoditySymbol -> MixedAmountKey
- pattern MixedAmountKeyTotalCost :: CommoditySymbol -> CommoditySymbol -> MixedAmountKey
- pattern MixedAmountKeyUnitCost :: CommoditySymbol -> CommoditySymbol -> Quantity -> MixedAmountKey
- type Month = Int
- type MonthDay = Int
- type MonthWeek = Int
- data NormalSign
- data ParsePos = ParsePos {
- ppSourcePos :: SourcePos
- ppOffset :: Int
- ppInput :: Text
- type ParsedJournal = Journal
- type Payee = Text
- data PayeeDeclarationInfo = PayeeDeclarationInfo {
- pdicomment :: Text
- pditags :: [Tag]
- data Period
- data PeriodData a = PeriodData {}
- data PeriodicTransaction = PeriodicTransaction {
- ptperiodexpr :: Text
- ptinterval :: Interval
- ptspan :: DateSpan
- ptsourcepos :: (SourcePos, SourcePos)
- ptstatus :: Status
- ptcode :: Text
- ptdescription :: Text
- ptcomment :: Text
- pttags :: [Tag]
- ptpostings :: [Posting]
- data Posting = Posting {
- pdate :: Maybe Day
- pdate2 :: Maybe Day
- pstatus :: Status
- paccount :: AccountName
- pamount :: MixedAmount
- pcomment :: Text
- preal :: PostingRealness
- ptags :: [Tag]
- pbalanceassertion :: Maybe BalanceAssertion
- ptransaction :: Maybe Transaction
- poriginal :: Maybe Posting
- data PostingRealness
- data PriceDirective = PriceDirective {}
- type Quantity = Decimal
- type Quarter = Int
- data ReductionMethod
- data Rounding
- data SepFormat
- data Side
- data SmartDate
- data SmartInterval
- data Status
- data StorageFormat
- data TMPostingRule = TMPostingRule {
- tmprPosting :: Posting
- tmprIsMultiplier :: Bool
- type Tag = (TagName, TagValue)
- newtype TagDeclarationInfo = TagDeclarationInfo {
- tdicomment :: Text
- type TagName = Text
- type TagValue = Text
- data TimeclockCode
- = SetBalance
- | SetRequiredHours
- | In
- | Out
- | FinalOut
- data TimeclockEntry = TimeclockEntry {
- tlsourcepos :: SourcePos
- tlcode :: TimeclockCode
- tldatetime :: LocalTime
- tlaccount :: AccountName
- tldescription :: Text
- tlcomment :: Text
- tltags :: [Tag]
- data Transaction = Transaction {}
- data TransactionModifier = TransactionModifier {}
- type WeekDay = Int
- data WhichDate
- type YearDay = Int
- type YearWeek = Int
- data ConversionOp
- type PriceOracle = (Day, CommoditySymbol, Maybe CommoditySymbol) -> Maybe (CommoditySymbol, Quantity)
- data ValuationType
- data OrdPlus
- data Query
- = Any
- | None
- | Date DateSpan
- | Date2 DateSpan
- | StatusQ Status
- | Code Regexp
- | Desc Regexp
- | Tag Regexp (Maybe Regexp)
- | Acct Regexp
- | Type [AccountType]
- | Depth Int
- | DepthAcct Regexp Int
- | Real Bool
- | Amt OrdPlus Quantity (Maybe CommoditySymbol)
- | Cur Regexp
- | Change OrdPlus Quantity (Maybe CommoditySymbol)
- | Balance OrdPlus Quantity (Maybe CommoditySymbol)
- | Find Regexp (Maybe DateSpan)
- | Not Query
- | And [Query]
- | Or [Query]
- | AnyPosting [Query]
- | AllPostings [Query]
- data QueryOpt
- data AmbiguousNumber = AmbiguousNumber DigitGrp Char DigitGrp
- data AmountParseKind
- data DigitGrp = DigitGrp {
- digitGroupLength :: !Word
- digitGroupNumber :: !Integer
- type PrefixedFilePath = FilePath
- data RawNumber
- data Reader (m :: Type -> Type) = Reader {
- rFormat :: StorageFormat
- rExtensions :: [String]
- rReadFn :: InputOpts -> FilePath -> Handle -> ExceptT String IO Journal
- rParser :: MonadIO m => InputOpts -> ErroringJournalParser m ParsedJournal
- class HasInputOpts c where
- inputOpts :: Lens' c InputOpts
- aliases :: Lens' c [String]
- anon__ :: Lens' c Bool
- auto__ :: Lens' c Bool
- balancingopts :: Lens' c BalancingOpts
- defer :: Lens' c Bool
- dryrun :: Lens' c Bool
- fileoverrides :: Lens' c (Map FilePath Text)
- forecast :: Lens' c (Maybe DateSpan)
- forecastOnlyForDisplay :: Lens' c Bool
- ignore_lots :: Lens' c Bool
- importing :: Lens' c Bool
- infer_costs :: Lens' c Bool
- infer_equity :: Lens' c Bool
- ioDay :: Lens' c Day
- journaldir :: Lens' c (Maybe FilePath)
- mformat :: Lens' c (Maybe StorageFormat)
- mrules_file :: Lens' c (Maybe FilePath)
- new__ :: Lens' c Bool
- new_save :: Lens' c Bool
- oldtimeclock :: Lens' c Bool
- pivot :: Lens' c String
- reportspan :: Lens' c DateSpan
- scanfiles :: Lens' c Bool
- strict :: Lens' c Bool
- verbose_tags :: Lens' c Bool
- data InputOpts = InputOpts {
- mformat_ :: Maybe StorageFormat
- mrules_file_ :: Maybe FilePath
- aliases_ :: [String]
- anon_ :: Bool
- new_ :: Bool
- new_save_ :: Bool
- pivot_ :: String
- forecast_ :: Maybe DateSpan
- verbose_tags_ :: Bool
- reportspan_ :: DateSpan
- auto_ :: Bool
- infer_equity_ :: Bool
- infer_costs_ :: Bool
- ignore_lots_ :: Bool
- balancingopts_ :: BalancingOpts
- strict_ :: Bool
- _defer :: Bool
- _importing :: Bool
- _dryrun :: Bool
- _scanfiles :: Bool
- _forecastOnlyForDisplay :: Bool
- _ioDay :: Day
- _oldtimeclock :: Bool
- _journaldir :: Maybe FilePath
- _fileoverrides :: Map FilePath Text
- type LatestDates = [Day]
- data LatestDatesForFile = LatestDatesForFile FilePath LatestDates
- type AccountTransactionsReport = [AccountTransactionsReportItem]
- type AccountTransactionsReportItem = (Transaction, Transaction, Bool, [AccountName], MixedAmount, MixedAmount)
- type BalanceReport = ([BalanceReportItem], MixedAmount)
- type BalanceReportItem = (AccountName, AccountName, Int, MixedAmount)
- type BudgetAverage = Average
- type BudgetCell = (Maybe Change, Maybe BudgetGoal)
- type BudgetGoal = Change
- type BudgetReport = PeriodicReport DisplayName BudgetCell
- type BudgetReportRow = PeriodicReportRow DisplayName BudgetCell
- type BudgetTotal = Total
- type EntriesReport = [EntriesReportItem]
- type EntriesReportItem = Transaction
- type MultiBalanceReport = PeriodicReport DisplayName MixedAmount
- type MultiBalanceReportRow = PeriodicReportRow DisplayName MixedAmount
- type PostingsReport = [PostingsReportItem]
- type PostingsReportItem = (Maybe Day, Maybe Period, Maybe Text, Posting, MixedAmount)
- data AccountListMode
- data BalanceAccumulation
- data BalanceCalculation
- class HasReportOptsNoUpdate a => HasReportOpts a where
- reportOpts :: ReportableLens' a ReportOpts
- period :: ReportableLens' a Period
- statuses :: ReportableLens' a [Status]
- depth :: ReportableLens' a DepthSpec
- date2 :: ReportableLens' a Bool
- real :: ReportableLens' a Bool
- querystring :: ReportableLens' a [Text]
- class HasReportOptsNoUpdate c where
- reportOptsNoUpdate :: Lens' c ReportOpts
- accountlistmode :: Lens' c AccountListMode
- average :: Lens' c Bool
- balance_base_url :: Lens' c (Maybe Text)
- balanceaccum :: Lens' c BalanceAccumulation
- balancecalc :: Lens' c BalanceCalculation
- budgetpat :: Lens' c (Maybe Text)
- color__ :: Lens' c Bool
- conversionop :: Lens' c (Maybe ConversionOp)
- date2NoUpdate :: Lens' c Bool
- declared :: Lens' c Bool
- depthNoUpdate :: Lens' c DepthSpec
- drop__ :: Lens' c Int
- empty__ :: Lens' c Bool
- fold_depth :: Lens' c (Maybe Int)
- format :: Lens' c StringFormat
- full_names :: Lens' c Bool
- infer_prices :: Lens' c Bool
- interval :: Lens' c Interval
- invert :: Lens' c Bool
- layout :: Lens' c Layout
- no_elide :: Lens' c Bool
- no_total :: Lens' c Bool
- normalbalance :: Lens' c (Maybe NormalSign)
- percent :: Lens' c Bool
- periodNoUpdate :: Lens' c Period
- period_titles :: Lens' c PeriodTitles
- pretty :: Lens' c Bool
- querystringNoUpdate :: Lens' c [Text]
- realNoUpdate :: Lens' c Bool
- related :: Lens' c Bool
- row_total :: Lens' c Bool
- show_costs :: Lens' c Bool
- sort_amount :: Lens' c Bool
- sortspec :: Lens' c SortSpec
- statusesNoUpdate :: Lens' c [Status]
- subreport_titles :: Lens' c (Maybe Text)
- summary_only :: Lens' c Bool
- title__ :: Lens' c (Maybe Text)
- translations :: Lens' c Translations
- transpose__ :: Lens' c Bool
- txn_dates :: Lens' c Bool
- value :: Lens' c (Maybe ValuationType)
- class HasReportSpec c where
- reportSpec :: Lens' c ReportSpec
- rsDay :: Lens' c Day
- rsQuery :: Lens' c Query
- rsQueryOpts :: Lens' c [QueryOpt]
- rsReportOpts :: Lens' c ReportOpts
- rsRowQuery :: Lens' c Query
- data Layout
- = LayoutWide (Maybe Int)
- | LayoutTall
- | LayoutBare
- | LayoutBareWide
- | LayoutTidy
- data PeriodTitles
- data ReportOpts = ReportOpts {
- period_ :: Period
- interval_ :: Interval
- statuses_ :: [Status]
- conversionop_ :: Maybe ConversionOp
- value_ :: Maybe ValuationType
- infer_prices_ :: Bool
- depth_ :: DepthSpec
- fold_depth_ :: Maybe Int
- no_elide_ :: Bool
- date2_ :: Bool
- empty_ :: Bool
- full_names_ :: Bool
- real_ :: Bool
- format_ :: StringFormat
- balance_base_url_ :: Maybe Text
- pretty_ :: Bool
- querystring_ :: [Text]
- average_ :: Bool
- related_ :: Bool
- sortspec_ :: SortSpec
- txn_dates_ :: Bool
- balancecalc_ :: BalanceCalculation
- balanceaccum_ :: BalanceAccumulation
- budgetpat_ :: Maybe Text
- accountlistmode_ :: AccountListMode
- drop_ :: Int
- declared_ :: Bool
- row_total_ :: Bool
- no_total_ :: Bool
- summary_only_ :: Bool
- show_costs_ :: Bool
- sort_amount_ :: Bool
- percent_ :: Bool
- invert_ :: Bool
- normalbalance_ :: Maybe NormalSign
- color_ :: Bool
- transpose_ :: Bool
- layout_ :: Layout
- period_titles_ :: PeriodTitles
- title_ :: Maybe Text
- subreport_titles_ :: Maybe Text
- translations_ :: Translations
- data ReportSpec = ReportSpec {
- _rsReportOpts :: ReportOpts
- _rsDay :: Day
- _rsQuery :: Query
- _rsRowQuery :: Query
- _rsQueryOpts :: [QueryOpt]
- data SortField
- = AbsAmount' Bool
- | Account' Bool
- | Amount' Bool
- | Date' Bool
- | Description' Bool
- type SortSpec = [SortField]
- type Average = MixedAmount
- type Balance = MixedAmount
- data CBCSubreportSpec a = CBCSubreportSpec {}
- type Change = MixedAmount
- data CompoundPeriodicReport a b = CompoundPeriodicReport {
- cbrTitle :: Text
- cbrDates :: [DateSpan]
- cbrSubreports :: [(Text, PeriodicReport a b, Bool)]
- cbrTotals :: PeriodicReportRow () b
- data DisplayName = DisplayName {
- displayFull :: AccountName
- displayName :: AccountName
- displayIndent :: NumberOfIndents
- type Percentage = Decimal
- data PeriodicReport a b = PeriodicReport {
- prDates :: [DateSpan]
- prRows :: [PeriodicReportRow a b]
- prTotals :: PeriodicReportRow () b
- data PeriodicReportRow a b = PeriodicReportRow {
- prrName :: a
- prrAmounts :: [b]
- prrTotal :: b
- prrAverage :: b
- type Total = MixedAmount
- data GhcDebugMode
- data YNA
- type FinalParseError = FinalParseError' HledgerParseErrorData
- data FinalParseError' e
- type FinalParseErrorBundle = FinalParseErrorBundle' HledgerParseErrorData
- data FinalParseErrorBundle' e
- data HledgerParseErrorData
- type HledgerParseErrors = ParseErrorBundle Text HledgerParseErrorData
- type SimpleStringParser a = Parsec HledgerParseErrorData String a
- type SimpleTextParser = Parsec HledgerParseErrorData Text
- data SourceExcerpt
- type TextParser (m :: Type -> Type) a = ParsecT HledgerParseErrorData Text m a
- type RegexError = String
- data Regexp
- type Replacement = String
- data WideBuilder = WideBuilder {}
- data SourcePos = SourcePos {
- sourceName :: FilePath
- sourceLine :: !Pos
- sourceColumn :: !Pos
- data DependencyType
- type TestName = String
- data TestTree
- data Timeout
- class Assertable t where
- type Assertion = IO ()
- class AssertionPredicable t where
- assertionPredicate :: t -> IO Bool
- type AssertionPredicate = IO Bool
- data HUnitFailure = HUnitFailure (Maybe SrcLoc) String
- type Year = Integer
- flagHelpFormat :: (HelpFormat -> TextFormat -> a -> a) -> Flag a
- flagHelpSimple :: (a -> a) -> Flag a
- flagNumericVersion :: (a -> a) -> Flag a
- flagVersion :: (a -> a) -> Flag a
- flagsVerbosity :: (Verbosity -> a -> a) -> [Flag a]
- processArgs :: Mode a -> IO a
- processValue :: Mode a -> [String] -> a
- processValueIO :: Mode a -> [String] -> IO a
- complete :: Mode a -> [String] -> (Int, Int) -> [Complete]
- expandArgsAt :: [String] -> IO [String]
- helpText :: [String] -> HelpFormat -> Mode a -> [Text]
- process :: Mode a -> [String] -> Either String a
- joinArgs :: [String] -> String
- splitArgs :: String -> [String]
- checkMode :: Mode a -> Maybe String
- flagArg :: Update a -> FlagHelp -> Arg a
- flagBool :: [Name] -> (Bool -> a -> a) -> Help -> Flag a
- flagNone :: [Name] -> (a -> a) -> Help -> Flag a
- flagOpt :: String -> [Name] -> Update a -> FlagHelp -> Help -> Flag a
- flagReq :: [Name] -> Update a -> FlagHelp -> Help -> Flag a
- fromFlagOpt :: FlagInfo -> String
- fromGroup :: Group a -> [a]
- mode :: Name -> a -> Help -> Arg a -> [Flag a] -> Mode a
- modeEmpty :: a -> Mode a
- modeFlags :: Mode a -> [Flag a]
- modeModes :: Mode a -> [Mode a]
- modes :: String -> a -> Help -> [Mode a] -> Mode a
- parseBool :: String -> Maybe Bool
- remap2 :: Remap m => (a -> b) -> (b -> a) -> m a -> m b
- remapUpdate :: (a -> b) -> (b -> (a, a -> b)) -> Update a -> Update b
- toGroup :: [a] -> Group a
- data Complete
- = CompleteValue String
- | CompleteFile String FilePath
- | CompleteDir String FilePath
- data HelpFormat
- data Arg a = Arg {
- argValue :: Update a
- argType :: FlagHelp
- argRequire :: Bool
- data Flag a = Flag {}
- type FlagHelp = String
- data FlagInfo
- = FlagReq
- | FlagOpt String
- | FlagOptRare String
- | FlagNone
- data Group a = Group {
- groupUnnamed :: [a]
- groupHidden :: [a]
- groupNamed :: [(Help, [a])]
- type Help = String
- data Mode a = Mode {
- modeGroupModes :: Group (Mode a)
- modeNames :: [Name]
- modeValue :: a
- modeCheck :: a -> Either String a
- modeReform :: a -> Maybe [String]
- modeExpandAt :: Bool
- modeHelp :: Help
- modeHelpSuffix :: [String]
- modeArgs :: ([Arg a], Maybe (Arg a))
- modeGroupFlags :: Group (Flag a)
- class Remap (m :: Type -> Type) where
- remap :: (a -> b) -> (b -> (a, a -> b)) -> m a -> m b
- type Update a = String -> a -> Either String a
Documentation
hledger CLI's main procedure.
Here we will parse the command line, read any config file, and search for hledger-* addon executables in the user's PATH, then choose the appropriate builtin operation or addon operation to run, then run it in the right way, usually reading input data (eg a journal) first.
When making a CLI usable and robust with main command, builtin subcommands, various kinds of addon commands, and config files that add general and command-specific options, while balancing circular dependencies, environment, idioms, legacy, and libraries with their own requirements and limitations: things get crazy, and there is a tradeoff against complexity and bug risk. We try to provide the most intuitive, expressive and robust CLI that's feasible while keeping the CLI processing below sufficiently comprehensible, troubleshootable, and tested. It's an ongoing quest. See also: Hledger.Cli.CliOptions, cli.test, addons.test, --debug and --debug=8.
Probably the biggest source of complexity here is that cmdargs can't parse a command line containing undeclared flags, but this arises often with our addon commands and builtin/custom commands which haven't implemented all options, so we have to work hard to work around this. https://github.com/ndmitchell/cmdargs/issues/36 is the wishlist issue; implementing that would simplify hledger's CLI processing a lot.
argsToCliOpts :: [String] -> [String] -> IO CliOpts Source #
A helper for addons/scripts: this parses hledger CliOpts from these command line arguments and add-on command names, roughly how hledger main does. If option parsing/validating fails, it exits the program with usageError. Unlike main, this does not read extra args from a config file or search for addons; to do those things, mimic the code in main for now.
Re-exports
module Hledger.Cli.CliOptions
module Hledger.Cli.Conf
module Hledger.Cli.Commands
module Hledger.Cli.DocFiles
module Hledger.Cli.Utils
module Hledger.Cli.Version
traceShowId :: Show a => a -> a #
tests_Data :: TestTree #
accountFromBalances :: AccountName -> PeriodData a -> Account a #
accountFromPostings :: (Posting -> Maybe Day) -> [Posting] -> Account BalanceData #
accountSetDeclarationInfo :: Journal -> Account a -> Account a #
accountTree :: Monoid a => AccountName -> [AccountName] -> Account a #
accountTreeFromBalanceAndNames :: AccountName -> PeriodData a -> [AccountName] -> Account a #
accountsFromPostings :: (Posting -> Maybe Day) -> [Posting] -> [Account BalanceData] #
accountsLevels :: Account a -> [[Account a]] #
anyAccounts :: (Account a -> Bool) -> Account a -> Bool #
clipAccounts :: Int -> Account a -> Account a #
clipAccountsAndAggregate :: Monoid a => DepthSpec -> [Account a] -> [Account a] #
filterAccounts :: (Account a -> Bool) -> Account a -> [Account a] #
flattenAccounts :: Account a -> [Account a] #
lookupAccount :: AccountName -> [Account a] -> Maybe (Account a) #
mapPeriodData :: (PeriodData a -> PeriodData a) -> Account a -> Account a #
mergeAccounts :: Account a -> Account b -> Account (These a b) #
parentAccounts :: Account a -> [Account a] #
printAccounts :: Show a => Account a -> IO () #
showAccounts :: Show a => Account a -> String #
showAccountsBoringFlag :: Account a -> String #
sortAccountNamesByDeclaration :: Journal -> Bool -> [AccountName] -> [AccountName] #
sortAccountTreeByDeclaration :: Account a -> Account a #
accountLeafName :: AccountName -> Text #
accountNameComponents :: AccountName -> [Text] #
accountNameDrop :: Int -> AccountName -> AccountName #
accountNameFromComponents :: [Text] -> AccountName #
accountNameHasEmptyPart :: AccountName -> Bool #
accountNameLevel :: AccountName -> Int #
accountNameTreeFrom :: [AccountName] -> Tree AccountName #
accountNameType :: Map AccountName AccountType -> AccountName -> Maybe AccountType #
acctsepchar :: Char #
clipAccountName :: DepthSpec -> AccountName -> AccountName #
concatAccountNames :: [AccountName] -> AccountName #
defaultBaseConversionAccount :: IsString a => a #
defaultGainAccount :: IsString a => a #
defaultImbalanceAccount :: IsString a => a #
elideAccountName :: Int -> AccountName -> AccountName #
escapeName :: AccountName -> Text #
expandAccountName :: AccountName -> [AccountName] #
expandAccountNames :: [AccountName] -> [AccountName] #
getAccountNameClippedDepth :: DepthSpec -> AccountName -> Maybe Int #
isAccountNamePrefixOf :: AccountName -> AccountName -> Bool #
isSubAccountNameOf :: AccountName -> AccountName -> Bool #
joinAccountNames :: AccountName -> AccountName -> AccountName #
parentAccountNames :: AccountName -> [AccountName] #
subAccountNamesFrom :: [AccountName] -> AccountName -> [AccountName] #
topAccountNames :: [AccountName] -> [AccountName] #
accountTypeChoices :: Bool -> String #
accountTypeName :: AccountType -> Text #
isAccountSubtypeOf :: AccountType -> AccountType -> Bool #
isAssetType :: AccountType -> Bool #
isEquityType :: AccountType -> Bool #
isExpenseType :: AccountType -> Bool #
isLiabilityType :: AccountType -> Bool #
isRevenueType :: AccountType -> Bool #
parseAccountType :: Bool -> Text -> Either String AccountType #
addAmountStyle :: Amount -> Map CommoditySymbol AmountStyle -> Map CommoditySymbol AmountStyle #
amountCost :: Amount -> Amount #
amountCostBasis :: Amount -> Amount #
amountDisplayPrecision :: Amount -> Word8 #
amountInternalPrecision :: Amount -> Word8 #
amountIsZero :: Amount -> Bool #
amountLooksZero :: Amount -> Bool #
amountRoundedQuantity :: Amount -> Quantity #
amountSetCostToBasis :: Amount -> Amount #
amountSetFullPrecision :: Amount -> Amount #
amountSetFullPrecisionUpTo :: Maybe Word8 -> Amount -> Amount #
amountSetPrecision :: AmountPrecision -> Amount -> Amount #
amountSetPrecisionMax :: Word8 -> Amount -> Amount #
amountSetPrecisionMin :: Word8 -> Amount -> Amount #
amountSetQuantity :: Quantity -> Amount -> Amount #
amountSetStyles :: Map CommoditySymbol AmountStyle -> Amount -> Amount #
amountStripCost :: Amount -> Amount #
amountStylesSetRounding :: Rounding -> Map CommoditySymbol AmountStyle -> Map CommoditySymbol AmountStyle #
amountUnstyled :: Amount -> Amount #
amountWithCommodity :: CommoditySymbol -> Amount -> Amount #
amounts :: MixedAmount -> [Amount] #
amountsPreservingZeros :: MixedAmount -> [Amount] #
amountsRaw :: MixedAmount -> [Amount] #
averageMixedAmounts :: Foldable f => f MixedAmount -> MixedAmount #
canonicaliseAmount :: Map CommoditySymbol AmountStyle -> Amount -> Amount #
canonicaliseMixedAmount :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmount #
commodityStylesFromAmounts :: [Amount] -> Either String (Map CommoditySymbol AmountStyle) #
cshowAmount :: Amount -> String #
defaultMaxDisplayPrecision :: Word8 #
divideAmount :: Quantity -> Amount -> Amount #
divideAmountAndUpdatePrecision :: Quantity -> Amount -> Amount #
divideMixedAmount :: Quantity -> MixedAmount -> MixedAmount #
filterMixedAmount :: (Amount -> Bool) -> MixedAmount -> MixedAmount #
getAmounts :: Amount -> [Amount] #
invertAmount :: Amount -> Amount #
isMissingMixedAmount :: MixedAmount -> Bool #
isNegativeAmount :: Amount -> Bool #
isNegativeMixedAmount :: MixedAmount -> Maybe Bool #
isNonsimpleCommodityChar :: Char -> Bool #
maAddAmount :: MixedAmount -> Amount -> MixedAmount #
maAddAmounts :: Foldable t => MixedAmount -> t Amount -> MixedAmount #
maCommodities :: MixedAmount -> Set CommoditySymbol #
maIsNonZero :: MixedAmount -> Bool #
maIsZero :: MixedAmount -> Bool #
maMinus :: MixedAmount -> MixedAmount -> MixedAmount #
maNegate :: MixedAmount -> MixedAmount #
maPlus :: MixedAmount -> MixedAmount -> MixedAmount #
maSum :: Foldable t => t MixedAmount -> MixedAmount #
mapMixedAmount :: (Amount -> Amount) -> MixedAmount -> MixedAmount #
missingamt :: Amount #
mixed :: Foldable t => t Amount -> MixedAmount #
mixedAmount :: Amount -> MixedAmount #
mixedAmountIsZero :: MixedAmount -> Bool #
mixedAmountLooksZero :: MixedAmount -> Bool #
mixedAmountSetFullPrecisionUpTo :: Maybe Word8 -> MixedAmount -> MixedAmount #
mixedAmountSetPrecisionMax :: Word8 -> MixedAmount -> MixedAmount #
mixedAmountSetPrecisionMin :: Word8 -> MixedAmount -> MixedAmount #
mixedAmountSetStyles :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmount #
multiplyAmount :: Quantity -> Amount -> Amount #
multiplyMixedAmount :: Quantity -> MixedAmount -> MixedAmount #
multiplyQuantities :: Quantity -> Quantity -> Quantity #
setAmountInternalPrecision :: Word8 -> Amount -> Amount #
showAmount :: Amount -> String #
showAmountB :: AmountFormat -> Amount -> WideBuilder #
showAmountCost :: Amount -> String #
showAmountCostB :: AmountFormat -> Amount -> WideBuilder #
showAmountCostBasis :: Amount -> String #
showAmountCostBasisB :: AmountFormat -> Amount -> WideBuilder #
showAmountCostBasisLedger :: Amount -> String #
showAmountDebug :: Amount -> String #
showAmountQuantity :: Bool -> Amount -> WideBuilder #
showAmountWith :: AmountFormat -> Amount -> String #
showAmountWithZeroCommodity :: Amount -> String #
showAmountWithoutCost :: Amount -> String #
showAmountsDistinctly :: AmountFormat -> Amount -> Amount -> (String, String) #
showCommoditySymbol :: Text -> Text #
showMixedAmount :: MixedAmount -> String #
showMixedAmountB :: AmountFormat -> MixedAmount -> WideBuilder #
showMixedAmountDebug :: MixedAmount -> String #
showMixedAmountElided :: Int -> Bool -> MixedAmount -> String #
showMixedAmountLinesB :: AmountFormat -> MixedAmount -> [WideBuilder] #
showMixedAmountLinesPartsB :: AmountFormat -> MixedAmount -> [(WideBuilder, Amount)] #
showMixedAmountOneLine :: MixedAmount -> String #
showMixedAmountOneLinePartsB :: AmountFormat -> MixedAmount -> [(WideBuilder, Amount)] #
showMixedAmountOneLineWithoutCost :: Bool -> MixedAmount -> String #
showMixedAmountWith :: AmountFormat -> MixedAmount -> String #
showMixedAmountWithZeroCommodity :: MixedAmount -> String #
showMixedAmountWithoutCost :: Bool -> MixedAmount -> String #
showMixedAmountsDistinctly :: AmountFormat -> MixedAmount -> MixedAmount -> (String, String) #
styleAmount :: Map CommoditySymbol AmountStyle -> Amount -> Amount #
styleMixedAmount :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmount #
sumAndAverageMixedAmounts :: Foldable f => f MixedAmount -> (MixedAmount, MixedAmount) #
unifyMixedAmount :: MixedAmount -> Maybe Amount #
withInternalPrecision :: Amount -> Word8 -> Amount #
withPrecision :: Amount -> AmountPrecision -> Amount #
mapBalanceData :: (MixedAmount -> MixedAmount) -> BalanceData -> BalanceData #
opBalanceData :: (MixedAmount -> MixedAmount -> MixedAmount) -> BalanceData -> BalanceData -> BalanceData #
balanceSingleTransaction :: BalancingOpts -> Transaction -> Either String Transaction #
balanceTransactionHelper :: BalancingOpts -> Transaction -> Either String (Transaction, [(AccountName, MixedAmount)]) #
isTransactionBalanced :: BalancingOpts -> Transaction -> Bool #
journalBalanceTransactions :: BalancingOpts -> Journal -> Either String Journal #
journalBalanceTransactionsAndDeferAssertions :: BalancingOpts -> Journal -> Either String (Journal, Maybe String) #
postingRoundCalculatedAmounts :: Map CommoditySymbol AmountStyle -> Posting -> (Posting, Bool) #
transactionBalanceError :: Transaction -> [String] -> String #
transactionCheckAssertions :: BalancingOpts -> Journal -> Transaction -> Either String Transaction #
currencies :: [([Char], CurrencyCode, CurrencySymbol)] #
addGregorianMonthsToMonthday :: MonthDay -> Integer -> Day -> Day #
advanceToNthWeekday :: Int -> WeekDay -> Day -> Day #
datesepchar :: forall (m :: Type -> Type). TextParser m Char #
datesepchars :: String #
daysInSpan :: DateSpan -> Maybe Integer #
elapsedSeconds :: Fractional a => UTCTime -> UTCTime -> a #
fixSmartDate :: Day -> SmartDate -> EFDay #
fixSmartDateStr :: Day -> Text -> Text #
fixSmartDateStrEither :: Day -> Text -> Either HledgerParseErrors Text #
fixSmartDateStrEither' :: Day -> Text -> Either HledgerParseErrors EFDay #
getCurrentDay :: IO Day #
getCurrentMonth :: IO Int #
getCurrentYear :: IO Integer #
groupByDateSpan :: Bool -> (a -> Day) -> [DateSpan] -> [a] -> [(DateSpan, [a])] #
isDateSepChar :: Char -> Bool #
isEmptySpan :: DateSpan -> Bool #
nextNthWeekdayOfMonth :: Int -> WeekDay -> Day -> Day #
nextnthdayofmonth :: MonthDay -> Day -> Day #
nthdayofweekcontaining :: WeekDay -> Day -> Day #
parsePeriodExpr :: Day -> Text -> Either HledgerParseErrors (Interval, DateSpan) #
periodContainsDate :: Period -> Day -> Bool #
periodexprp :: forall (m :: Type -> Type). Day -> TextParser m (Interval, DateSpan) #
prevNthWeekdayOfMonth :: Int -> WeekDay -> Day -> Day #
reportingintervalp :: forall (m :: Type -> Type). TextParser m Interval #
showDateSpan :: DateSpan -> Text #
showDateSpanAbbrev :: DateSpan -> Text #
showDateSpanAbbrevWith :: TimeLocale -> DateSpan -> Text #
showDateSpanDebug :: DateSpan -> String #
showDateSpanForQuery :: DateSpan -> Text #
showDateSpanFull :: DateSpan -> Text #
showEFDate :: EFDay -> Text #
smartdate :: forall (m :: Type -> Type). TextParser m SmartDate #
spanContainsDate :: DateSpan -> Day -> Bool #
spanDefaultsFrom :: DateSpan -> DateSpan -> DateSpan #
spanEndYear :: DateSpan -> Maybe Year #
spanExtend :: DateSpan -> DateSpan -> DateSpan #
spanIntersect :: DateSpan -> DateSpan -> DateSpan #
spanStartYear :: DateSpan -> Maybe Year #
spanValidDefaultsFrom :: DateSpan -> DateSpan -> DateSpan #
spansIntersect :: [DateSpan] -> DateSpan #
spansUnion :: [DateSpan] -> DateSpan #
startofmonth :: Day -> Day #
startofquarter :: Day -> Day #
startofweek :: Day -> Day #
startofyear :: Day -> Day #
yearp :: forall (m :: Type -> Type). TextParser m Integer #
boundariesToDayPartition :: NonEmpty Day -> DayPartition #
dayPartitionFind :: Day -> DayPartition -> (Maybe Day, Day) #
dayPartitionStartEnd :: DayPartition -> (Day, Day) #
dayPartitionToDateSpans :: DayPartition -> [DateSpan] #
dayPartitionToList :: DayPartition -> [(Day, Day)] #
dayPartitionToNonEmpty :: DayPartition -> NonEmpty (Day, Day) #
intervalBoundaryBefore :: Interval -> Day -> Day #
splitSpanToDateSpans :: Bool -> Interval -> DateSpan -> [DateSpan] #
makeAccountTagErrorExcerpt :: (AccountName, AccountDeclarationInfo) -> TagName -> (FilePath, Int, Maybe (Int, Maybe Int), Text) #
makeCommodityTagErrorExcerpt :: Commodity -> TagName -> (FilePath, Int, Maybe (Int, Maybe Int), Text) #
makePostingErrorExcerpt :: Posting -> (Posting -> Transaction -> Text -> Maybe (Int, Maybe Int)) -> (FilePath, Int, Maybe (Int, Maybe Int), Text) #
makePostingErrorExcerptByIndex :: Transaction -> Int -> Maybe (Int, Maybe Int) -> (FilePath, Int, Maybe (Int, Maybe Int), Text) #
makePriceDirectiveErrorExcerpt :: PriceDirective -> Maybe (PriceDirective -> Text -> Maybe (Int, Maybe Int)) -> (FilePath, Int, Maybe (Int, Maybe Int), Text) #
makeTransactionErrorExcerpt :: Transaction -> (Transaction -> Maybe (Int, Maybe Int)) -> (FilePath, Int, Maybe (Int, Maybe Int), Text) #
transactionFindPostingIndex :: (Posting -> Bool) -> Transaction -> Maybe Int #
accountUsesNoLotsWith :: Map AccountName Text -> AccountName -> Bool #
addAssertDirective :: AssertDirective -> Journal -> Journal #
addJournalItem :: JournalItem -> Journal -> Journal #
addPriceDirective :: PriceDirective -> Journal -> Journal #
addTransaction :: Transaction -> Journal -> Journal #
addTransactionItem :: Transaction -> Journal -> Journal #
commoditiesAndAliases :: Journal -> Set CommoditySymbol #
commodityAliases :: Commodity -> [CommoditySymbol] #
commodityCombine :: Commodity -> Commodity -> Commodity #
commodityRedeclare :: Commodity -> Commodity -> Commodity #
convertAliasAmount :: CommodityAliases -> Amount -> (Amount, Quantity) #
dbgJournalAcctDeclOrder :: String -> Journal -> Journal #
filterJournalAmounts :: Query -> Journal -> Journal #
filterJournalPostings :: Query -> Journal -> Journal #
filterJournalRelatedPostings :: Query -> Journal -> Journal #
filterJournalTransactions :: Query -> Journal -> Journal #
filterTransactionAmounts :: Query -> Transaction -> Transaction #
filterTransactionPostingsExtra :: (AccountName -> Maybe AccountType) -> Query -> Transaction -> Transaction #
journalAccountForType :: AccountName -> AccountType -> Journal -> AccountName #
journalAccountLotsTags :: Journal -> Map AccountName Text #
journalAccountNameTree :: Journal -> Tree AccountName #
journalAccountNames :: Journal -> [AccountName] #
journalAccountNamesUsed :: Journal -> [AccountName] #
journalAccountTags :: Journal -> AccountName -> [Tag] #
journalAccountType :: Journal -> AccountName -> Maybe AccountType #
journalAccountTypes :: Journal -> Map AccountName AccountType #
journalAccountUsesNoLots :: Journal -> AccountName -> Bool #
journalAllFilePaths :: Journal -> [FilePath] #
journalAmounts :: Journal -> Set Amount #
journalApplyAliases :: [AccountAlias] -> Journal -> Either RegexError Journal #
journalApplyCommodityAliases :: Journal -> Either String Journal #
journalCheckLotsTagValues :: Journal -> Either String Journal #
journalCommodities :: Journal -> Set CommoditySymbol #
journalCommodityStyles :: Journal -> Map CommoditySymbol AmountStyle #
journalCommodityStylesWith :: Rounding -> Journal -> Map CommoditySymbol AmountStyle #
journalCommodityTags :: Journal -> CommoditySymbol -> [Tag] #
journalCommodityUsesLots :: Journal -> CommoditySymbol -> Bool #
journalConcat :: Journal -> Journal -> Journal #
journalConversionAccounts :: Journal -> [AccountName] #
journalDateSpan :: Bool -> Journal -> DateSpan #
journalDbg :: Journal -> String #
journalDescriptions :: Journal -> [Text] #
journalEndDate :: Bool -> Journal -> Maybe Day #
journalFilePath :: Journal -> FilePath #
journalFilePaths :: Journal -> [FilePath] #
journalGainAccounts :: Journal -> [AccountName] #
journalInferCommodityStyles :: Journal -> Either String Journal #
journalInferEquityFromCosts :: Bool -> Journal -> Journal #
journalInheritedAccountTags :: Journal -> AccountName -> [Tag] #
journalLastDay :: Bool -> Journal -> Maybe Day #
journalLeafAccountNames :: Journal -> [AccountName] #
journalLotfulCommodities :: Journal -> Set CommoditySymbol #
journalMapPostingAmounts :: (MixedAmount -> MixedAmount) -> Journal -> Journal #
journalMapTransactions :: (Transaction -> Transaction) -> Journal -> Journal #
journalPayeesDeclared :: Journal -> [Payee] #
journalPayeesDeclaredOrUsed :: Journal -> [Payee] #
journalPayeesUsed :: Journal -> [Payee] #
journalPivot :: Text -> Journal -> Journal #
journalPostingAmounts :: Journal -> [MixedAmount] #
journalPostingAndCostAmounts :: Journal -> [Amount] #
journalPostings :: Journal -> [Posting] #
journalReverse :: Journal -> Journal #
journalSetLastReadTime :: POSIXTime -> Journal -> Journal #
journalStartDate :: Bool -> Journal -> Maybe Day #
journalStyleAmounts :: Journal -> Either String Journal #
journalTagCostsAndEquityAndMaybeInferCosts :: Bool -> Bool -> Journal -> Either String Journal #
journalTagsDeclared :: Journal -> [TagName] #
journalTagsDeclaredOrUsed :: Journal -> [TagName] #
journalTagsUsed :: Journal -> [TagName] #
journalToCost :: ConversionOp -> Journal -> Journal #
journalTransactionAt :: Journal -> Integer -> Maybe Transaction #
journalTransactionsSimilarTo :: Journal -> Day -> Text -> Query -> SimilarityScore -> Int -> [(DateWeightedSimilarityScore, TimeDistance, SimilarityScore, Transaction)] #
nulljournal :: Journal #
samplejournalMaybeExplicit :: Bool -> Journal #
showJournalPostingAmountsDebug :: Journal -> String #
journalCheckAccounts :: Journal -> Either String () #
journalCheckBalanceAssertions :: Journal -> Either String () #
journalCheckCommodities :: Journal -> Either String () #
journalCheckLots :: Journal -> Either String () #
journalCheckPairedConversionPostings :: Journal -> Either String () #
journalCheckPayees :: Journal -> Either String () #
journalCheckRecentAssertions :: Journal -> Either String () #
journalCheckTags :: Journal -> Either String () #
journalStrictChecks :: Journal -> Either String () #
journalCheckAsserts :: Day -> Journal -> Either String () #
journalCheckOrdereddates :: Journal -> Either String () #
journalCheckUniqueleafnames :: Journal -> Either String () #
readJsonFile :: FromJSON a => FilePath -> IO a #
toJsonText :: ToJSON a => a -> Text #
writeJsonFile :: ToJSON a => FilePath -> a -> IO () #
ledgerAccount :: Ledger -> AccountName -> Maybe (Account BalanceData) #
ledgerAccountNames :: Ledger -> [AccountName] #
ledgerCommodities :: Ledger -> [CommoditySymbol] #
ledgerDateSpan :: Ledger -> DateSpan #
ledgerFromJournal :: Query -> Journal -> Ledger #
ledgerLeafAccounts :: Ledger -> [Account BalanceData] #
ledgerPostings :: Ledger -> [Posting] #
ledgerTopAccounts :: Ledger -> [Account BalanceData] #
nullledger :: Ledger #
isDisposePosting :: Posting -> Bool #
isGainPosting :: Posting -> Bool #
isSetAsideGainPosting :: Transaction -> Posting -> Bool #
journalAddOrCheckGainPostings :: Bool -> Journal -> Either String Journal #
journalAveragePoolCosts :: Journal -> Maybe Day -> Map (AccountName, CommoditySymbol) Amount #
journalAveragePoolTotals :: Journal -> Maybe Day -> Map (AccountName, CommoditySymbol) (Quantity, Amount) #
journalCalculateLots :: Bool -> Journal -> Either String Journal #
journalCheckAcquireBasis :: Journal -> Either String Journal #
journalCheckLotsMethodCoherence :: Journal -> Either String Journal #
journalClassifyLotPostings :: Bool -> Journal -> Journal #
journalHasLotFeatures :: Journal -> Bool #
journalLotDirection :: Journal -> AccountName -> Maybe LotDirection #
journalTagGainPostings :: Bool -> Bool -> Journal -> Either String Journal #
lotDirectionOf :: (AccountName -> Maybe AccountType) -> AccountName -> Maybe LotDirection #
lotSubaccountName :: AccountName -> Maybe Text #
resolveReductionMethodForAccount :: Journal -> AccountName -> CommoditySymbol -> (ReductionMethod, String) #
showLotName :: CostBasis -> Text #
transactionAutoSplitFeeOutflows :: Bool -> (AccountName -> Maybe AccountType) -> (CommoditySymbol -> Bool) -> (AccountName -> Bool) -> Transaction -> Transaction #
transactionHasLotfulAmounts :: Set CommoditySymbol -> Transaction -> Bool #
transactionTagGainPostings :: Bool -> Bool -> (AccountName -> Maybe AccountType) -> (CommoditySymbol -> Bool) -> (AccountName -> Bool) -> Transaction -> Transaction #
dateSpanAsPeriod :: DateSpan -> Period #
firstMonthOfQuarter :: Num a => a -> a #
isLastDayOfMonth :: (Eq a1, Eq a2, Num a1, Num a2) => Year -> a1 -> a2 -> Bool #
isStandardPeriod :: Period -> Bool #
mondayBefore :: Day -> Day #
periodAsDateSpan :: Period -> DateSpan #
periodGrow :: Period -> Period #
periodMoveTo :: Day -> Period -> Period #
periodNext :: Period -> Period #
periodNextIn :: DateSpan -> Period -> Period #
periodPrevious :: Period -> Period #
periodPreviousIn :: DateSpan -> Period -> Period #
periodShrink :: Day -> Period -> Period #
periodStart :: Period -> Maybe Day #
periodTextWidth :: Period -> Int #
quarterContainingMonth :: Integral a => a -> a #
showPeriod :: Period -> Text #
showPeriodAbbrev :: Period -> Text #
showPeriodAbbrevWith :: TimeLocale -> Period -> Text #
simplifyPeriod :: Period -> Period #
startOfFirstWeekInMonth :: Year -> MonthOfYear -> Day #
thursdayOfWeekContaining :: Day -> Day #
yearMonthContainingWeekStarting :: Day -> (Year, MonthOfYear) #
insertPeriodData :: Semigroup a => Maybe Day -> a -> PeriodData a -> PeriodData a #
lookupPeriodData :: Day -> PeriodData a -> Maybe (Day, a) #
lookupPeriodDataOrHistorical :: Day -> PeriodData a -> (Maybe Day, a) #
mergePeriodData :: (a -> c) -> (b -> c) -> (a -> b -> c) -> PeriodData a -> PeriodData b -> PeriodData c #
opPeriodData :: (a -> b -> c) -> PeriodData a -> PeriodData b -> PeriodData c #
padPeriodData :: a -> PeriodData b -> PeriodData a -> PeriodData a #
periodDataFromList :: a -> [(Day, a)] -> PeriodData a #
periodDataToList :: PeriodData a -> (a, [(Day, a)]) #
periodicTransactionDates :: PeriodicTransaction -> DateSpan -> [Day] #
runPeriodicTransaction :: Bool -> PeriodicTransaction -> DateSpan -> [Transaction] #
accountNamesFromPostings :: [Posting] -> [AccountName] #
amountIntegerWidth :: AmountFormat -> Amount -> Int #
balassert :: Amount -> Maybe BalanceAssertion #
balassertTot :: Amount -> Maybe BalanceAssertion #
commentAddTag :: Text -> Tag -> Text #
commentAddTagNextLine :: Text -> Tag -> Text #
commentAddTagUnspaced :: Text -> Tag -> Text #
commentJoin :: Text -> Text -> Text #
commentPrependTag :: Text -> Tag -> Text #
defaultDecimalMarkColumn :: Int #
hasBalanceAssignment :: Posting -> Bool #
isBalancedVirtual :: Posting -> Bool #
isEmptyPosting :: Posting -> Bool #
isExplicitAmount :: Posting -> Bool #
nullposting :: Posting #
originalPosting :: Posting -> Posting #
post :: AccountName -> Amount -> Posting #
post' :: AccountName -> Amount -> Maybe BalanceAssertion -> Posting #
postingAddHiddenAndMaybeVisibleTag :: Bool -> Bool -> HiddenTag -> Posting -> Posting #
postingAddInferredEquityPostings :: Bool -> Text -> Posting -> [Posting] #
postingAddTags :: Posting -> [Tag] -> Posting #
postingAllTags :: Posting -> [Tag] #
postingApplyAliases :: [AccountAlias] -> Posting -> Either RegexError Posting #
postingApplyCommodityStyles :: Map CommoditySymbol AmountStyle -> Posting -> Posting #
postingApplyValuation :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> ValuationType -> Posting -> Posting #
postingAsLines :: AmountFormat -> Bool -> Bool -> Int -> Int -> AmountCols -> Posting -> ([Text], PostingWidths) #
postingCommodities :: Posting -> [CommoditySymbol] #
postingDate :: Posting -> Day #
postingDate2 :: Posting -> Day #
postingDateOrDate2 :: WhichDate -> Posting -> Day #
postingHasTag :: TagName -> Posting -> Bool #
postingIndent :: Text -> Text #
postingNegate :: Posting -> Posting #
postingStatus :: Posting -> Status #
postingStripCosts :: Posting -> Posting #
postingStyleAmounts :: Map CommoditySymbol AmountStyle -> Posting -> Posting #
postingToCost :: ConversionOp -> Posting -> Maybe Posting #
postingTransformAmount :: (MixedAmount -> MixedAmount) -> Posting -> Posting #
postingsAddInferredEquityPostings :: Bool -> Text -> [Posting] -> [Posting] #
postingsAsLines :: AmountFormat -> Bool -> [Posting] -> [Text] #
postingsAsLinesWithLayout :: AmountFormat -> Bool -> PostingLayout -> [Posting] -> [Text] #
relatedPostings :: Posting -> [Posting] #
renderCommentLines :: Text -> [Text] #
showAccountName :: Maybe Int -> PostingRealness -> AccountName -> Text #
showPosting :: Posting -> String #
showPostingLines :: Posting -> [Text] #
sumPostings :: [Posting] -> MixedAmount #
transactionAllTags :: Transaction -> [Tag] #
vpost :: AccountName -> Amount -> Posting #
vpost' :: AccountName -> Amount -> Maybe BalanceAssertion -> Posting #
appendopts :: [(String, String)] -> RawOpts -> RawOpts #
collectopts :: ((String, String) -> Maybe a) -> RawOpts -> [a] #
dropRawOpt :: String -> RawOpts -> RawOpts #
listofstringopt :: String -> RawOpts -> [String] #
maybecharopt :: String -> RawOpts -> Maybe Char #
maybeintopt :: String -> RawOpts -> Maybe Int #
maybeposintopt :: String -> RawOpts -> Maybe Int #
maybestringopt :: String -> RawOpts -> Maybe String #
maybeynaopt :: String -> RawOpts -> Maybe YNA #
maybeynopt :: String -> RawOpts -> Maybe Bool #
overRawOpts :: ([(String, String)] -> [(String, String)]) -> RawOpts -> RawOpts #
setboolopt :: String -> RawOpts -> RawOpts #
unsetboolopt :: String -> RawOpts -> RawOpts #
parseStringFormat :: Text -> Either String StringFormat #
timeclockToTransactions :: LocalTime -> [TimeclockEntry] -> [Transaction] #
timeclockToTransactionsOld :: LocalTime -> [TimeclockEntry] -> [Transaction] #
annotateErrorWithTransaction :: Transaction -> String -> String #
assignmentPostings :: Transaction -> [Posting] #
balancedVirtualPostings :: Transaction -> [Posting] #
hasRealPostings :: Transaction -> Bool #
partitionAndCheckConversionPostings :: Bool -> [AccountName] -> [IdxPosting] -> Either Text ([(IdxPosting, IdxPosting)], ([IdxPosting], [IdxPosting])) #
payeeAndNoteFromDescription :: Text -> (Text, Text) #
payeeAndNoteFromDescription' :: Text -> (Text, Text) #
realPostings :: Transaction -> [Posting] #
showTransaction :: Transaction -> Text #
transaction :: Day -> [Posting] -> Transaction #
transactionAddHiddenAndMaybeVisibleTag :: Bool -> HiddenTag -> Transaction -> Transaction #
transactionAddTags :: Transaction -> [Tag] -> Transaction #
transactionAmounts :: Transaction -> [MixedAmount] #
transactionApplyValuation :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> ValuationType -> Transaction -> Transaction #
transactionDate2 :: Transaction -> Day #
transactionDateOrDate2 :: WhichDate -> Transaction -> Day #
transactionFile :: Transaction -> FilePath #
transactionInferEquityPostings :: Bool -> AccountName -> Transaction -> Transaction #
transactionMapPostingAmounts :: (MixedAmount -> MixedAmount) -> Transaction -> Transaction #
transactionMapPostings :: (Posting -> Posting) -> Transaction -> Transaction #
transactionNote :: Transaction -> Text #
transactionPayee :: Transaction -> Text #
transactionTagCostsAndEquityAndMaybeInferCosts :: Bool -> Bool -> [AccountName] -> Transaction -> Either String Transaction #
transactionToCost :: ConversionOp -> Transaction -> Transaction #
transactionTransformPostings :: (Posting -> Posting) -> Transaction -> Transaction #
transactionsPostings :: [Transaction] -> [Posting] #
txnTieKnot :: Transaction -> Transaction #
txnUntieKnot :: Transaction -> Transaction #
virtualPostings :: Transaction -> [Posting] #
modifyTransactions :: (AccountName -> Maybe AccountType) -> (AccountName -> [Tag]) -> Map CommoditySymbol AmountStyle -> Day -> Bool -> [TransactionModifier] -> [Transaction] -> Either String [Transaction] #
isBalanceSheetAccountType :: AccountType -> Bool #
isDecimalMark :: Char -> Bool #
isHiddenTagName :: TagName -> Bool #
isIncomeStatementAccountType :: AccountType -> Bool #
maCompare :: MixedAmount -> MixedAmount -> Ordering #
mixedAmountKey :: Amount -> MixedAmountKey #
nullsourcepospair :: (SourcePos, SourcePos) #
showMarketPrice :: MarketPrice -> String #
showMarketPrices :: [MarketPrice] -> [Char] #
toHiddenTag :: Tag -> HiddenTag #
toHiddenTagName :: TagName -> TagName #
toVisibleTag :: HiddenTag -> Tag #
toVisibleTagName :: TagName -> TagName #
amountValueAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> Amount -> Amount #
journalPriceOracle :: Bool -> Journal -> PriceOracle #
mixedAmountApplyGain :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> Day -> ValuationType -> MixedAmount -> MixedAmount #
mixedAmountApplyValuation :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> Day -> ValuationType -> MixedAmount -> MixedAmount #
mixedAmountGainAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> MixedAmount -> MixedAmount #
mixedAmountToCost :: Map CommoditySymbol AmountStyle -> ConversionOp -> MixedAmount -> MixedAmount #
mixedAmountValueAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> MixedAmount -> MixedAmount #
filterQuery :: (Query -> Bool) -> Query -> Query #
filterQueryOrNotQuery :: (Query -> Bool) -> Query -> Query #
inAccount :: [QueryOpt] -> Maybe (AccountName, Bool) #
inAccountQuery :: [QueryOpt] -> Maybe Query #
matchesAccount :: Query -> AccountName -> Bool #
matchesAccountExtra :: (AccountName -> Maybe AccountType) -> (AccountName -> [Tag]) -> Query -> AccountName -> Bool #
matchesAmount :: Query -> Amount -> Bool #
matchesCommodity :: Query -> CommoditySymbol -> Bool #
matchesCommodityExtra :: (CommoditySymbol -> [Tag]) -> Query -> CommoditySymbol -> Bool #
matchesMixedAmount :: Query -> MixedAmount -> Bool #
matchesPayee :: Query -> Payee -> Bool #
matchesPosting :: Query -> Posting -> Bool #
matchesPostingExtra :: (AccountName -> Maybe AccountType) -> Query -> Posting -> Bool #
matchesPriceDirective :: Query -> PriceDirective -> Bool #
matchesQuery :: (Query -> Bool) -> Query -> Bool #
matchesRowAmounts :: Query -> MixedAmount -> MixedAmount -> Bool #
matchesTag :: Query -> Tag -> Bool #
matchesTransaction :: Query -> Transaction -> Bool #
matchesTransactionExtra :: (AccountName -> Maybe AccountType) -> Query -> Transaction -> Bool #
parseAmountQueryArg :: String -> Text -> Either String (OrdPlus, Quantity, Maybe CommoditySymbol) #
parseDepthSpec :: Text -> Either RegexError DepthSpec #
postingQueryForAccount :: (AccountName -> Maybe AccountType) -> AccountName -> Maybe AccountName -> Query -> Query #
queryDateSpan :: Bool -> Query -> DateSpan #
queryDateSpan' :: Query -> DateSpan #
queryDepth :: Query -> DepthSpec #
queryEndDate :: Bool -> Query -> Maybe Day #
queryHasBalance :: Query -> Bool #
queryHasChange :: Query -> Bool #
queryIsAcct :: Query -> Bool #
queryIsAmt :: Query -> Bool #
queryIsAmtOrCur :: Query -> Bool #
queryIsBalance :: Query -> Bool #
queryIsChange :: Query -> Bool #
queryIsCode :: Query -> Bool #
queryIsCur :: Query -> Bool #
queryIsDate :: Query -> Bool #
queryIsDate2 :: Query -> Bool #
queryIsDateOrDate2 :: Query -> Bool #
queryIsDepth :: Query -> Bool #
queryIsDesc :: Query -> Bool #
queryIsFind :: Query -> Bool #
queryIsFlatDepth :: Query -> Bool #
queryIsNull :: Query -> Bool #
queryIsReal :: Query -> Bool #
queryIsRowTerm :: Query -> Bool #
queryIsStartDateOnly :: Bool -> Query -> Bool #
queryIsStatus :: Query -> Bool #
queryIsTag :: Query -> Bool #
queryIsTransactionRelated :: Query -> Bool #
queryIsType :: Query -> Bool #
queryStartDate :: Bool -> Query -> Maybe Day #
queryprefixes :: [Text] #
simplifyQuery :: Query -> Query #
tests_Query :: TestTree #
defaultExistingJournalPath :: IO String #
defaultExistingJournalPathSafely :: IO (Either String String) #
defaultJournal :: IO Journal #
defaultJournalPath :: IO String #
defaultJournalPathSafely :: IO (Either String String) #
defaultJournalSafely :: IO (Either String Journal) #
defaultJournalWith :: InputOpts -> IO Journal #
ensureJournalFileExists :: FilePath -> IO () #
isWindowsUnsafeDotPath :: FilePath -> Bool #
journalEnvVar :: String #
orDieTrying :: MonadIO m => ExceptT String m a -> m a #
readJournal' :: Handle -> IO Journal #
readJournal'' :: Text -> IO Journal #
readJournalFile :: InputOpts -> PrefixedFilePath -> ExceptT String IO Journal #
readJournalFiles :: InputOpts -> [PrefixedFilePath] -> ExceptT String IO Journal #
readJournalFiles' :: [PrefixedFilePath] -> IO Journal #
readJournalFilesAndLatestDates :: InputOpts -> [PrefixedFilePath] -> ExceptT String IO (Journal, [LatestDatesForFile]) #
readPossibleJournalFile :: InputOpts -> PrefixedFilePath -> ExceptT String IO Journal #
readPossibleJournalFiles :: InputOpts -> [PrefixedFilePath] -> ExceptT String IO Journal #
requireJournalFileExists :: FilePath -> IO () #
tests_Read :: TestTree #
accountNameApplyModifiers :: [AccountAlias] -> AccountName -> [AccountAlias] -> AccountName -> Either RegexError AccountName #
accountaliasp :: forall (m :: Type -> Type). TextParser m AccountAlias #
accountnamenosemicolonp :: forall (m :: Type -> Type). TextParser m AccountName #
accountnamep :: forall (m :: Type -> Type). TextParser m AccountName #
addAccountAlias :: MonadState Journal m => AccountAlias -> m () #
addDeclaredAccountTags :: forall (m :: Type -> Type). AccountName -> [Tag] -> JournalParser m () #
addDeclaredAccountType :: forall (m :: Type -> Type). AccountName -> AccountType -> JournalParser m () #
aliasedaccountnamep :: forall (m :: Type -> Type). Bool -> JournalParser m AccountName #
aliasesFromOpts :: InputOpts -> [AccountAlias] #
amountp :: forall (m :: Type -> Type). JournalParser m Amount #
amountp' :: forall (m :: Type -> Type). AmountParseKind -> JournalParser m Amount #
applyParentAndOptionAliases :: forall (m :: Type -> Type). AccountName -> JournalParser m AccountName #
balanceassertionp :: forall (m :: Type -> Type). JournalParser m BalanceAssertion #
bracketeddatetagsp :: forall (m :: Type -> Type). Maybe Year -> TextParser m [(TagName, Day)] #
codep :: forall (m :: Type -> Type). TextParser m Text #
commentlinetagsp :: forall (m :: Type -> Type). TextParser m [Tag] #
commoditysymbolp :: forall (m :: Type -> Type). TextParser m CommoditySymbol #
costp :: forall (m :: Type -> Type). Amount -> JournalParser m AmountCost #
datep :: forall (m :: Type -> Type). JournalParser m Day #
datetimep :: forall (m :: Type -> Type). JournalParser m LocalTime #
descriptionp :: forall (m :: Type -> Type). TextParser m Text #
doublequotedtextp :: forall (m :: Type -> Type). TextParser m Text #
emptyorcommentlinep :: forall (m :: Type -> Type). TextParser m () #
emptyorcommentlinep2 :: forall (m :: Type -> Type). [Char] -> TextParser m () #
followingcommentp :: forall (m :: Type -> Type). TextParser m Text #
fromRawNumber :: RawNumber -> Maybe Integer -> Either String (Quantity, Word8, Maybe Char, Maybe DigitGroupStyle) #
getAccountAliases :: MonadState Journal m => m [AccountAlias] #
getAmountStyle :: forall (m :: Type -> Type). CommoditySymbol -> JournalParser m (Maybe AmountStyle) #
getDefaultAmountStyle :: forall (m :: Type -> Type). JournalParser m (Maybe AmountStyle) #
getDefaultCommodityAndStyle :: forall (m :: Type -> Type). JournalParser m (Maybe (CommoditySymbol, AmountStyle)) #
getParentAccount :: forall (m :: Type -> Type). JournalParser m AccountName #
getSourcePos' :: forall (m :: Type -> Type). JournalParser m SourcePos #
getYear :: forall (m :: Type -> Type). JournalParser m (Maybe Year) #
handleReadFnToTextReadFn :: (InputOpts -> FilePath -> Text -> ExceptT String IO Journal) -> InputOpts -> FilePath -> Handle -> ExceptT String IO Journal #
includeFileParser :: forall (m :: Type -> Type). MonadIO m => (FilePath -> ExceptT String IO ParsedJournal) -> ErroringJournalParser m ParsedJournal #
initialiseAndParseJournal :: ErroringJournalParser IO ParsedJournal -> InputOpts -> FilePath -> Text -> ExceptT String IO Journal #
interpretRawNumber :: Maybe Char -> Maybe AmountStyle -> Either AmbiguousNumber RawNumber -> Maybe Integer -> Either String (Quantity, Word8, Maybe Char, Maybe DigitGroupStyle) #
isDigitSeparatorChar :: Char -> Bool #
isLineCommentStart :: Char -> Bool #
isSameLineCommentStart :: Char -> Bool #
isStdin :: PrefixedFilePath -> Bool #
journalAddAutoPostings :: Bool -> Day -> BalancingOpts -> Journal -> Either String Journal #
journalAddFile :: JournalFile -> Journal -> Journal #
journalCheckAssertsWith :: InputOpts -> Journal -> Either String () #
journalFinalise :: InputOpts -> FilePath -> Text -> ParsedJournal -> ExceptT String IO Journal #
lotcostp :: forall (m :: Type -> Type). Quantity -> JournalParser m CostBasis #
modifiedaccountnamep :: forall (m :: Type -> Type). Bool -> JournalParser m AccountName #
multilinecommentp :: forall (m :: Type -> Type). TextParser m () #
noncommenttext1p :: forall (m :: Type -> Type). TextParser m Text #
noncommenttextp :: forall (m :: Type -> Type). TextParser m Text #
numberp :: forall (m :: Type -> Type). Maybe AmountStyle -> TextParser m (Quantity, Word8, Maybe Char, Maybe DigitGroupStyle) #
parentaccountnamep :: forall (m :: Type -> Type). TextParser m AccountName #
parseAndFinaliseJournal :: ErroringJournalParser IO ParsedJournal -> InputOpts -> FilePath -> Text -> ExceptT String IO Journal #
parseamount :: String -> Either HledgerParseErrors Amount #
parseamount' :: String -> Amount #
parseamountWithStyles :: Map CommoditySymbol AmountStyle -> String -> Either HledgerParseErrors Amount #
parsemixedamount :: String -> Either HledgerParseErrors MixedAmount #
parsemixedamount' :: String -> MixedAmount #
postingamountp :: forall (m :: Type -> Type). AmountParseKind -> JournalParser m Amount #
postingcommentp :: forall (m :: Type -> Type). Maybe Year -> TextParser m (Text, [Tag], Maybe Day, Maybe Day) #
pushParentAccount :: forall (m :: Type -> Type). AccountName -> JournalParser m () #
rawOptsToInputOpts :: Day -> Bool -> RawOpts -> InputOpts #
rawnumberp :: forall (m :: Type -> Type). TextParser m (Either AmbiguousNumber RawNumber) #
readerReadsOwnInput :: forall (m :: Type -> Type). Reader m -> Bool #
secondarydatep :: forall (m :: Type -> Type). Day -> TextParser m Day #
setDefaultCommodityAndStyle :: forall (m :: Type -> Type). (CommoditySymbol, AmountStyle) -> JournalParser m () #
setYear :: forall (m :: Type -> Type). Year -> JournalParser m () #
shareAmountStyle :: forall (m :: Type -> Type). AmountStyle -> JournalParser m AmountStyle #
shareText :: forall (m :: Type -> Type). Text -> JournalParser m Text #
simpleamountp :: forall (m :: Type -> Type). AmountParseKind -> JournalParser m Amount #
singlespacednoncommenttext1p :: forall (m :: Type -> Type). TextParser m Text #
singlespacedtext1p :: forall (m :: Type -> Type). TextParser m Text #
singlespacedtextsatisfying1p :: forall (m :: Type -> Type). (Char -> Bool) -> TextParser m Text #
singlespacep :: forall (m :: Type -> Type). TextParser m () #
spaceandamountormissingp :: forall (m :: Type -> Type). JournalParser m MixedAmount #
statusp :: forall (m :: Type -> Type). TextParser m Status #
timeofdayp :: forall (m :: Type -> Type). TextParser m TimeOfDay #
transactioncommentp :: forall (m :: Type -> Type). TextParser m (Text, [Tag]) #
inputOptsSetJournalDir :: Journal -> InputOpts -> InputOpts #
findReader :: forall (m :: Type -> Type). MonadIO m => Maybe StorageFormat -> Maybe FilePath -> Maybe (Reader m) #
parseAssertDirective :: Day -> String -> Text -> Either String AssertDirective #
runJournalParser :: Monad m => JournalParser m a -> Text -> m (Either HledgerParseErrors a) #
tmpostingrulep :: forall (m :: Type -> Type). Maybe Year -> JournalParser m TMPostingRule #
journalFilterSinceLatestDates :: LatestDates -> Journal -> (Journal, LatestDates) #
latestDates :: [Day] -> LatestDates #
latestDatesFileFor :: FilePath -> FilePath #
saveLatestDates :: LatestDates -> FilePath -> IO () #
saveLatestDatesForFiles :: [LatestDatesForFile] -> IO () #
accountTransactionsReportByCommodity :: AccountTransactionsReport -> [(CommoditySymbol, AccountTransactionsReport)] #
accountTransactionsReportItems :: Query -> Query -> Query -> (Int -> MixedAmount -> MixedAmount -> MixedAmount) -> Int -> MixedAmount -> MixedAmount -> (MixedAmount -> MixedAmount) -> (AccountName -> Maybe AccountType) -> [(Day, Transaction)] -> [AccountTransactionsReportItem] #
accountTransactionsReportWithStart :: ReportSpec -> Journal -> Query -> (MixedAmount, AccountTransactionsReport) #
filterAccountTransactionsReportByCommodity :: CommoditySymbol -> AccountTransactionsReport -> AccountTransactionsReport #
transactionRegisterDate :: WhichDate -> Query -> Query -> Transaction -> Day #
transactionRegisterDateExtra :: (AccountName -> Maybe AccountType) -> WhichDate -> Query -> Query -> Transaction -> Day #
triBalance :: (a, b, c, d, e, f) -> f #
triCommodityAmount :: CommoditySymbol -> (a, b, c, d, MixedAmount, f) -> MixedAmount #
triCommodityBalance :: CommoditySymbol -> (a, b, c, d, e, MixedAmount) -> MixedAmount #
triDate :: (a, Transaction, c, d, e, f) -> Day #
triOrigTransaction :: (a, b, c, d, e, f) -> a #
balanceReport :: ReportSpec -> Journal -> BalanceReport #
flatShowsExclusiveBalance :: Bool #
budgetReport :: ReportSpec -> BalancingOpts -> DateSpan -> Journal -> BudgetReport #
entriesReport :: ReportSpec -> Journal -> EntriesReport #
entriesReportUnsorted :: ReportSpec -> Journal -> EntriesReport #
accountRowAmounts :: ReportSpec -> Journal -> PriceOracle -> Maybe DayPartition -> [Posting] -> Map AccountName (MixedAmount, MixedAmount) #
balanceReportStyles :: ReportOpts -> Journal -> Map CommoditySymbol AmountStyle #
compoundBalanceReport :: ReportSpec -> Journal -> [CBCSubreportSpec a] -> CompoundPeriodicReport a MixedAmount #
compoundBalanceReportWith :: ReportSpec -> Journal -> PriceOracle -> [CBCSubreportSpec a] -> CompoundPeriodicReport a MixedAmount #
generateMultiBalanceAccount :: ReportSpec -> Journal -> PriceOracle -> Maybe DayPartition -> [Posting] -> Account BalanceData #
generatePeriodicReport :: Show c => (forall a. ReportOpts -> (BalanceData -> MixedAmount) -> a -> Account b -> PeriodicReportRow a c) -> (b -> MixedAmount) -> (c -> MixedAmount) -> ReportOpts -> Maybe DayPartition -> Account b -> PeriodicReport DisplayName c #
getPostings :: ReportSpec -> Journal -> PriceOracle -> DateSpan -> [Posting] #
makePeriodicReportRow :: c -> (Map Day c -> (c, c)) -> ReportOpts -> (b -> c) -> a -> Account b -> PeriodicReportRow a c #
makeReportQuery :: ReportSpec -> DateSpan -> ReportSpec #
rowTotal :: ReportOpts -> c -> c -> Map Day c -> c #
mkpostingsReportItem :: Bool -> Bool -> WhichDate -> Maybe Period -> Posting -> MixedAmount -> PostingsReportItem #
postingsReport :: ReportSpec -> Journal -> PostingsReport #
postingsReportStartBalances :: ReportSpec -> Journal -> Map AccountName MixedAmount #
registerRunningCalculationFn :: ReportOpts -> Int -> MixedAmount -> MixedAmount -> MixedAmount #
balanceCalcIsCount :: BalanceCalculation -> Bool #
defsortspec :: SortSpec #
effectiveTitle :: ReportOpts -> Text -> Text #
flat_ :: ReportOpts -> Bool #
intervalFromQueryOpts :: [QueryOpt] -> Maybe Interval #
intervalFromRawOpts :: RawOpts -> Interval #
mixedAmountApplyValuationAfterSumFromOptsWith :: ReportOpts -> Journal -> PriceOracle -> Day -> MixedAmount -> MixedAmount #
overEither :: ((a -> Either e b) -> s -> Either e t) -> (a -> b) -> s -> Either e t #
postingDateFn :: ReportOpts -> Posting -> Day #
queryFromFlags :: ReportOpts -> Query #
rawOptsToReportOpts :: Day -> Bool -> RawOpts -> ReportOpts #
rawOptsToReportSpec :: Day -> Bool -> RawOpts -> Either String ReportSpec #
reportEndDate :: Journal -> ReportSpec -> Maybe Day #
reportOptsToSpec :: Day -> ReportOpts -> Either String ReportSpec #
reportOptsToggleStatus :: Status -> ReportOpts -> ReportOpts #
reportPeriodLastDay :: ReportSpec -> Maybe Day #
reportPeriodName :: ReportOpts -> [DateSpan] -> DateSpan -> Text #
reportPeriodOrJournalLastDay :: ReportSpec -> Journal -> Maybe Day #
reportPeriodOrJournalStart :: ReportSpec -> Journal -> Maybe Day #
reportPeriodStart :: ReportSpec -> Maybe Day #
reportSpan :: Journal -> ReportSpec -> (DateSpan, Maybe DayPartition) #
reportSpanBothDates :: Journal -> ReportSpec -> (DateSpan, Maybe DayPartition) #
reportSpanBothDatesLazy :: Journal -> ReportSpec -> (DateSpan, [DateSpan]) #
reportSpanLazy :: Journal -> ReportSpec -> (DateSpan, [DateSpan]) #
reportStartDate :: Journal -> ReportSpec -> Maybe Day #
requiresHistorical :: ReportOpts -> Bool #
simplifyStatuses :: Ord a => [a] -> [a] #
sortKeysDescription :: [Char] #
transactionDateFn :: ReportOpts -> Transaction -> Day #
tree_ :: ReportOpts -> Bool #
updateReportSpec :: ReportOpts -> ReportSpec -> Either String ReportSpec #
updateReportSpecWith :: (ReportOpts -> ReportOpts) -> ReportSpec -> Either String ReportSpec #
whichDate :: ReportOpts -> WhichDate #
periodicReportSpan :: PeriodicReport a b -> DateSpan #
prMapMaybeName :: (a -> Maybe b) -> PeriodicReport a c -> PeriodicReport b c #
prMapName :: (a -> b) -> PeriodicReport a c -> PeriodicReport b c #
prrAdd :: Semigroup b => PeriodicReportRow a b -> PeriodicReportRow a b -> PeriodicReportRow a b #
prrIndent :: PeriodicReportRow DisplayName a -> Int #
prrShowDebug :: PeriodicReportRow DisplayName MixedAmount -> String #
divideSafe :: (Eq a, Fractional a) => a -> a -> a #
makeHledgerClassyLenses :: Name -> DecsQ #
maximumStrict :: Ord a => [a] -> a #
minimumStrict :: Ord a => [a] -> a #
numDigitsInt :: Integral a => Int -> a #
numDigitsInteger :: Integer -> Int #
splitAtElement :: Eq a => a -> [a] -> [[a]] #
takeUntilFails :: (a -> Bool) -> [a] -> [a] #
takeUntilFailsNE :: (a -> Bool) -> NonEmpty a -> NonEmpty a #
tests_Utils :: TestTree #
treeLeaves :: Tree a -> [a] #
dbgTimeResetIO :: MonadIO m => m () #
debugLevel :: Int #
ghcDebugPause' :: IO () #
ghcDebugSupportedInLib :: Bool #
withGhcDebug' :: a -> a #
ansiFormatError :: String -> String #
ansiFormatWarning :: String -> String #
bgColorB :: ColorIntensity -> Color -> WideBuilder -> WideBuilder #
brightBlack' :: String -> String #
brightBlue' :: String -> String #
brightCyan' :: String -> String #
brightGreen' :: String -> String #
brightMagenta' :: String -> String #
brightRed' :: String -> String #
brightWhite' :: String -> String #
brightYellow' :: String -> String #
colorB :: ColorIntensity -> Color -> WideBuilder -> WideBuilder #
colorOption :: IO YNA #
dataDirName :: FilePath #
embedFileRelative :: FilePath -> Q Exp #
embedFileRelativeBytes :: FilePath -> Q Exp #
ensureFilesystemCanAppend :: FilePath -> IO Bool #
exitWithErrorMessage :: String -> IO () #
expandHomePath :: FilePath -> IO FilePath #
getHomeSafe :: IO (Maybe FilePath) #
getTerminalHeight :: IO (Maybe Int) #
getTerminalHeightWidth :: IO (Maybe (Int, Int)) #
getTerminalWidth :: IO (Maybe Int) #
gradientStr :: (String -> String) -> Int -> Int -> Int -> Int -> String -> String #
handleExit :: IO () -> IO () #
insideEmacsNotVterm :: IO Bool #
lessIsWorking :: Maybe [(String, String)] -> IO Bool #
lessVarValue :: Maybe String -> Maybe String -> Bool -> String #
openFileOrStdin :: String -> IO Handle #
printError :: String -> IO () #
readFileOrStdinPortably :: String -> IO Text #
readFileOrStdinPortably' :: Maybe DynEncoding -> String -> IO Text #
readFilePortably :: FilePath -> IO Text #
readFileStrictly :: FilePath -> IO Text #
setWarningHandler :: (String -> IO ()) -> IO () #
sgrresetall :: String #
sortByModTime :: [FilePath] -> IO [FilePath] #
supportsTrueColor :: IO Bool #
supportsTrueColorUnsafe :: Bool #
terminalBgColor :: Maybe (RGB Float) #
terminalFgColor :: Maybe (RGB Float) #
terminalIsLight :: Maybe Bool #
terminalLightness :: Maybe Float #
textToHandle :: Text -> IO Handle #
titleAndVersionLine :: Int -> String -> String -> String #
usageError :: String -> a #
useColorOnStderr :: IO Bool #
useColorOnStderrUnsafe :: Bool #
useColorOnStdout :: IO Bool #
useColorOnStdoutUnsafe :: Bool #
attachSource :: FilePath -> Text -> FinalParseError' e -> FinalParseErrorBundle' e #
choice' :: forall (m :: Type -> Type) a. [TextParser m a] -> TextParser m a #
choiceInState :: forall s (m :: Type -> Type) a. [StateT s (ParsecT HledgerParseErrorData Text m) a] -> StateT s (ParsecT HledgerParseErrorData Text m) a #
customErrorBundlePretty :: HledgerParseErrors -> String #
dbgparse :: forall (m :: Type -> Type). Int -> String -> TextParser m () #
eolof :: forall (m :: Type -> Type). TextParser m () #
excerpt_ :: MonadParsec HledgerParseErrorData Text m => m a -> m SourceExcerpt #
finalCustomFailure :: (MonadParsec e s m, MonadError (FinalParseError' e) m) => e -> m a #
finalError :: ParseError Text e -> FinalParseError' e #
finalFail :: (MonadParsec e s m, MonadError (FinalParseError' e) m) => String -> m a #
finalFancyFailure :: (MonadParsec e s m, MonadError (FinalParseError' e) m) => Set (ErrorFancy e) -> m a #
finalMessageFailure :: MonadError (FinalParseError' e) m => String -> m a #
getExcerptText :: SourceExcerpt -> Text #
isNonNewlineSpace :: Char -> Bool #
nonspace :: forall (m :: Type -> Type). TextParser m Char #
parseErrorAt :: Int -> String -> HledgerParseErrorData #
parseErrorAtRegion :: Int -> Int -> String -> HledgerParseErrorData #
parseIncludeFile :: forall (m :: Type -> Type) st a. Monad m => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError m)) a -> st -> FilePath -> Text -> StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError m)) a #
parseWithState :: Monad m => st -> StateT st (ParsecT HledgerParseErrorData Text m) a -> Text -> m (Either HledgerParseErrors a) #
parseWithState' :: Stream s => st -> StateT st (ParsecT e s Identity) a -> s -> Either (ParseErrorBundle s e) a #
parseerror :: (Show t, Show (Token t), Show e) => ParseErrorBundle t e -> a #
parsewithString :: Parsec e String a -> String -> Either (ParseErrorBundle String e) a #
peekAfterSpaces :: forall (m :: Type -> Type). TextParser m (Bool, Maybe Char) #
peekChar :: forall (m :: Type -> Type). TextParser m (Maybe Char) #
peekChars2 :: forall (m :: Type -> Type). TextParser m (Maybe Char, Maybe Char) #
reparseExcerpt :: forall (m :: Type -> Type) a. Monad m => SourceExcerpt -> ParsecT HledgerParseErrorData Text m a -> ParsecT HledgerParseErrorData Text m a #
restofline :: forall (m :: Type -> Type). TextParser m String #
rtp :: TextParser Identity a -> Text -> Either HledgerParseErrors a #
runTextParser :: TextParser Identity a -> Text -> Either HledgerParseErrors a #
skipNonNewlineSpaces :: forall s (m :: Type -> Type). (Stream s, Token s ~ Char) => ParsecT HledgerParseErrorData s m () #
skipNonNewlineSpaces' :: forall s (m :: Type -> Type). (Stream s, Token s ~ Char) => ParsecT HledgerParseErrorData s m Bool #
skipNonNewlineSpaces1 :: forall s (m :: Type -> Type). (Stream s, Token s ~ Char) => ParsecT HledgerParseErrorData s m () #
sourcePosFileLine :: SourcePos -> String #
sourcePosPairPretty :: (SourcePos, SourcePos) -> String #
spacenonewline :: forall s (m :: Type -> Type). (Stream s, Char ~ Token s) => ParsecT HledgerParseErrorData s m Char #
surroundedBy :: Applicative m => m openclose -> m a -> m a #
regexEscape :: Text -> Text #
regexMatch :: Regexp -> String -> Bool #
regexMatchText :: Regexp -> Text -> Bool #
regexMatchTextGroups :: Regexp -> Text -> [Text] #
regexReplace :: Regexp -> Replacement -> String -> Either RegexError String #
regexReplaceAllBy :: Regexp -> (String -> String) -> String -> String #
regexReplaceUnmemo :: Regexp -> Replacement -> String -> Either RegexError String #
toRegexCI' :: Text -> Regexp #
capitalise :: String -> String #
elideRight :: Int -> String -> String #
formatString :: Bool -> Maybe Int -> Maybe Int -> String -> String #
isDoubleQuoted :: String -> Bool #
isSingleQuoted :: String -> Bool #
quoteForCommandLine :: String -> String #
quoteIfNeeded :: String -> String #
shellQuoteIfNeeded :: String -> String #
singleQuoteIfNeeded :: String -> String #
singleline :: String -> String #
strWidthAnsi :: String -> Int #
strip1Char :: Char -> Char -> String -> String #
stripQuotes :: String -> String #
stripbrackets :: String -> String #
wordsEither :: String -> Either String [String] #
assertLeft :: (HasCallStack, Eq b, Show b) => Either a b -> Assertion #
assertParse :: (HasCallStack, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> Assertion #
assertParseE :: (HasCallStack, Eq a, Show a, Default st) => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError IO)) a -> Text -> Assertion #
assertParseEq :: (HasCallStack, Eq a, Show a, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> a -> Assertion #
assertParseEqE :: (Default st, Eq a, Show a, HasCallStack) => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError IO)) a -> Text -> a -> Assertion #
assertParseEqOn :: (HasCallStack, Eq b, Show b, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> (a -> b) -> b -> Assertion #
assertParseError :: (HasCallStack, Eq a, Show a, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> String -> Assertion #
assertParseErrorE :: (Default st, Eq a, Show a, HasCallStack) => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError IO)) a -> Text -> String -> Assertion #
assertParseStateOn :: (HasCallStack, Eq b, Show b, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> (st -> b) -> b -> Assertion #
assertRight :: (HasCallStack, Eq a, Show a) => Either a b -> Assertion #
escapeBackslash :: Text -> Text #
escapeDoubleQuotes :: Text -> Text #
linesPrepend :: Text -> Text -> Text #
quoteForQuery :: Text -> Text #
quoteIfSpaced :: Text -> Text #
readDecimal :: Text -> Integer #
tests_Text :: TestTree #
textCapitalise :: Text -> Text #
textConcatBottomPadded :: [Text] -> Text #
textConcatTopPadded :: [Text] -> Text #
textElideRight :: Int -> Text -> Text #
textQuoteIfNeeded :: Text -> Text #
textStripQuotes :: Text -> Text #
textTakeWidth :: Int -> Text -> Text #
textUnbracket :: Text -> Text #
wbFromText :: Text -> WideBuilder #
wbToText :: WideBuilder -> Text #
wbUnpack :: WideBuilder -> String #
initialPos :: FilePath -> SourcePos #
sourcePosPretty :: SourcePos -> String #
adjustOption :: IsOption v => (v -> v) -> TestTree -> TestTree #
defaultIngredients :: [Ingredient] #
localOption :: IsOption v => v -> TestTree -> TestTree #
defaultMainWithIngredients :: [Ingredient] -> TestTree -> IO () #
after :: DependencyType -> String -> TestTree -> TestTree #
after_ :: DependencyType -> Expr -> TestTree -> TestTree #
dependentTestGroup :: TestName -> DependencyType -> [TestTree] -> TestTree #
inOrderTestGroup :: TestName -> [TestTree] -> TestTree #
sequentialTestGroup :: TestName -> DependencyType -> [TestTree] -> TestTree #
includingOptions :: [OptionDescription] -> Ingredient #
testCaseInfo :: TestName -> IO String -> TestTree #
(@=?) :: (Eq a, Show a, HasCallStack) => a -> a -> Assertion #
(@?) :: (AssertionPredicable t, HasCallStack) => t -> String -> Assertion #
(@?=) :: (Eq a, Show a, HasCallStack) => a -> a -> Assertion #
assertBool :: HasCallStack => String -> Bool -> Assertion #
assertEqual :: (Eq a, Show a, HasCallStack) => String -> a -> a -> Assertion #
assertFailure :: HasCallStack => String -> IO a #
assertString :: HasCallStack => String -> Assertion #
runExceptT :: ExceptT e m a -> m (Either e a) #
type HasCallStack = ?callStack :: CallStack #
data LotDirection #
Instances
| Eq LotDirection # | |
Defined in Hledger.Data.AccountType | |
| Ord LotDirection # | |
Defined in Hledger.Data.AccountType Methods compare :: LotDirection -> LotDirection -> Ordering # (<) :: LotDirection -> LotDirection -> Bool # (<=) :: LotDirection -> LotDirection -> Bool # (>) :: LotDirection -> LotDirection -> Bool # (>=) :: LotDirection -> LotDirection -> Bool # max :: LotDirection -> LotDirection -> LotDirection # min :: LotDirection -> LotDirection -> LotDirection # | |
| Show LotDirection # | |
Defined in Hledger.Data.AccountType Methods showsPrec :: Int -> LotDirection -> ShowS show :: LotDirection -> String showList :: [LotDirection] -> ShowS | |
data AmountFormat #
Constructors
| AmountFormat | |
Fields
| |
Instances
| Default AmountFormat # | |
Defined in Hledger.Data.Amount Methods def :: AmountFormat | |
| Show AmountFormat # | |
Defined in Hledger.Data.Amount Methods showsPrec :: Int -> AmountFormat -> ShowS show :: AmountFormat -> String showList :: [AmountFormat] -> ShowS | |
data BalancingOpts #
Constructors
| BalancingOpts | |
Fields
| |
Instances
class HasBalancingOpts c where #
Minimal complete definition
Methods
balancingOpts :: Lens' c BalancingOpts #
account_lots_tags :: Lens' c (Map AccountName Text) #
account_types :: Lens' c (Map AccountName AccountType) #
commodity_styles :: Lens' c (Maybe (Map CommoditySymbol AmountStyle)) #
ignore_assertions :: Lens' c Bool #
imbalance_account :: Lens' c AccountName #
infer_balancing_costs :: Lens' c Bool #
infer_imbalance :: Lens' c Bool #
lenient_lots :: Lens' c Bool #
lotful_commodities :: Lens' c (Set CommoditySymbol) #
txn_balancing :: Lens' c TransactionBalancingPrecision #
verbose_balancing_tags :: Lens' c Bool #
Instances
type CurrencyCode = Text #
type CurrencySymbol = Text #
data DayPartition #
Instances
| Eq DayPartition # | |
Defined in Hledger.Data.DayPartition | |
| Ord DayPartition # | |
Defined in Hledger.Data.DayPartition Methods compare :: DayPartition -> DayPartition -> Ordering # (<) :: DayPartition -> DayPartition -> Bool # (<=) :: DayPartition -> DayPartition -> Bool # (>) :: DayPartition -> DayPartition -> Bool # (>=) :: DayPartition -> DayPartition -> Bool # max :: DayPartition -> DayPartition -> DayPartition # min :: DayPartition -> DayPartition -> DayPartition # | |
| Show DayPartition # | |
Defined in Hledger.Data.DayPartition Methods showsPrec :: Int -> DayPartition -> ShowS show :: DayPartition -> String showList :: [DayPartition] -> ShowS | |
type CommodityAliases = Map CommoditySymbol (CommoditySymbol, Quantity, Maybe AmountStyle) #
type ErroringJournalParser (m :: Type -> Type) a = StateT Journal (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError m)) a #
type JournalParser (m :: Type -> Type) a = StateT Journal (ParsecT HledgerParseErrorData Text m) a #
data AmountCols #
Constructors
| AmountCols | |
Fields
| |
Instances
| Eq AmountCols # | |
Defined in Hledger.Data.Posting | |
| Show AmountCols # | |
Defined in Hledger.Data.Posting Methods showsPrec :: Int -> AmountCols -> ShowS show :: AmountCols -> String showList :: [AmountCols] -> ShowS | |
data PostingLayout #
Constructors
| LayoutHledger1 | |
| LayoutDecimal !Int |
Instances
| Eq PostingLayout # | |
Defined in Hledger.Data.Posting | |
| Show PostingLayout # | |
Defined in Hledger.Data.Posting Methods showsPrec :: Int -> PostingLayout -> ShowS show :: PostingLayout -> String showList :: [PostingLayout] -> ShowS | |
data PostingWidths #
Constructors
| PostingWidths | |
Fields
| |
Instances
| Eq PostingWidths # | |
Defined in Hledger.Data.Posting | |
| Show PostingWidths # | |
Defined in Hledger.Data.Posting Methods showsPrec :: Int -> PostingWidths -> ShowS show :: PostingWidths -> String showList :: [PostingWidths] -> ShowS | |
data ReportItemField #
Constructors
| AccountField | |
| DefaultDateField | |
| DescriptionField | |
| TotalField | |
| DepthSpacerField | |
| FieldNo Int |
Instances
| Eq ReportItemField # | |
Defined in Hledger.Data.StringFormat Methods (==) :: ReportItemField -> ReportItemField -> Bool (/=) :: ReportItemField -> ReportItemField -> Bool | |
| Show ReportItemField # | |
Defined in Hledger.Data.StringFormat Methods showsPrec :: Int -> ReportItemField -> ShowS show :: ReportItemField -> String showList :: [ReportItemField] -> ShowS | |
data StringFormat #
Constructors
| OneLine [StringFormatComponent] | |
| TopAligned [StringFormatComponent] | |
| BottomAligned [StringFormatComponent] |
Instances
| Default StringFormat # | |
Defined in Hledger.Data.StringFormat Methods def :: StringFormat | |
| Eq StringFormat # | |
Defined in Hledger.Data.StringFormat | |
| Show StringFormat # | |
Defined in Hledger.Data.StringFormat Methods showsPrec :: Int -> StringFormat -> ShowS show :: StringFormat -> String showList :: [StringFormat] -> ShowS | |
data StringFormatComponent #
Constructors
| FormatLiteral Text | |
| FormatField Bool (Maybe Int) (Maybe Int) ReportItemField |
Instances
| Eq StringFormatComponent # | |
Defined in Hledger.Data.StringFormat Methods (==) :: StringFormatComponent -> StringFormatComponent -> Bool (/=) :: StringFormatComponent -> StringFormatComponent -> Bool | |
| Show StringFormatComponent # | |
Defined in Hledger.Data.StringFormat Methods showsPrec :: Int -> StringFormatComponent -> ShowS show :: StringFormatComponent -> String showList :: [StringFormatComponent] -> ShowS | |
data TransactionBalancingPrecision #
Constructors
| TBPDisplay | |
| TBPEntry |
Instances
Constructors
| Account | |
Fields
| |
Instances
| Functor Account # | |||||
| FromJSON a => FromJSON (Account a) # | |||||
Defined in Hledger.Data.Json Methods parseJSON :: Value -> Parser (Account a) parseJSONList :: Value -> Parser [Account a] omittedField :: Maybe (Account a) | |||||
| ToJSON a => ToJSON (Account a) # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Account a -> Encoding toJSONList :: [Account a] -> Value toEncodingList :: [Account a] -> Encoding | |||||
| Eq (Account a) # | |||||
| Generic (Account a) # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show a => Show (Account a) # | |||||
| HasAmounts a => HasAmounts (Account a) # | |||||
Defined in Hledger.Data.Amount Methods styleAmounts :: Map CommoditySymbol AmountStyle -> Account a -> Account a # | |||||
| type Rep (Account a) # | |||||
Defined in Hledger.Data.Types type Rep (Account a) = D1 ('MetaData "Account" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Account" 'PrefixI 'True) ((S1 ('MetaSel ('Just "aname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccountName) :*: (S1 ('MetaSel ('Just "adeclarationinfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccountDeclarationInfo)) :*: S1 ('MetaSel ('Just "asubs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Account a]))) :*: (S1 ('MetaSel ('Just "aparent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Account a))) :*: (S1 ('MetaSel ('Just "aboring") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "adata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (PeriodData a)))))) | |||||
data AccountAlias #
Constructors
| BasicAlias AccountName AccountName | |
| RegexAlias Regexp Replacement |
Instances
| ToJSON AccountAlias # | |||||
Defined in Hledger.Data.Json Methods toJSON :: AccountAlias -> Value toEncoding :: AccountAlias -> Encoding toJSONList :: [AccountAlias] -> Value toEncodingList :: [AccountAlias] -> Encoding omitField :: AccountAlias -> Bool | |||||
| NFData AccountAlias # | |||||
Defined in Hledger.Data.Types Methods rnf :: AccountAlias -> () | |||||
| Eq AccountAlias # | |||||
Defined in Hledger.Data.Types | |||||
| Ord AccountAlias # | |||||
Defined in Hledger.Data.Types Methods compare :: AccountAlias -> AccountAlias -> Ordering # (<) :: AccountAlias -> AccountAlias -> Bool # (<=) :: AccountAlias -> AccountAlias -> Bool # (>) :: AccountAlias -> AccountAlias -> Bool # (>=) :: AccountAlias -> AccountAlias -> Bool # max :: AccountAlias -> AccountAlias -> AccountAlias # min :: AccountAlias -> AccountAlias -> AccountAlias # | |||||
| Generic AccountAlias # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Read AccountAlias # | |||||
Defined in Hledger.Data.Types Methods readsPrec :: Int -> ReadS AccountAlias readList :: ReadS [AccountAlias] readPrec :: ReadPrec AccountAlias readListPrec :: ReadPrec [AccountAlias] | |||||
| Show AccountAlias # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> AccountAlias -> ShowS show :: AccountAlias -> String showList :: [AccountAlias] -> ShowS | |||||
| type Rep AccountAlias # | |||||
Defined in Hledger.Data.Types type Rep AccountAlias = D1 ('MetaData "AccountAlias" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "BasicAlias" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccountName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccountName)) :+: C1 ('MetaCons "RegexAlias" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Regexp) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Replacement))) | |||||
data AccountDeclarationInfo #
Constructors
| AccountDeclarationInfo | |
Fields
| |
Instances
| FromJSON AccountDeclarationInfo # | |||||
Defined in Hledger.Data.Json Methods parseJSON :: Value -> Parser AccountDeclarationInfo parseJSONList :: Value -> Parser [AccountDeclarationInfo] | |||||
| ToJSON AccountDeclarationInfo # | |||||
Defined in Hledger.Data.Json Methods toJSON :: AccountDeclarationInfo -> Value toEncoding :: AccountDeclarationInfo -> Encoding toJSONList :: [AccountDeclarationInfo] -> Value toEncodingList :: [AccountDeclarationInfo] -> Encoding omitField :: AccountDeclarationInfo -> Bool | |||||
| NFData AccountDeclarationInfo # | |||||
Defined in Hledger.Data.Types Methods rnf :: AccountDeclarationInfo -> () | |||||
| Eq AccountDeclarationInfo # | |||||
Defined in Hledger.Data.Types Methods (==) :: AccountDeclarationInfo -> AccountDeclarationInfo -> Bool (/=) :: AccountDeclarationInfo -> AccountDeclarationInfo -> Bool | |||||
| Generic AccountDeclarationInfo # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: AccountDeclarationInfo -> Rep AccountDeclarationInfo x to :: Rep AccountDeclarationInfo x -> AccountDeclarationInfo | |||||
| Show AccountDeclarationInfo # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> AccountDeclarationInfo -> ShowS show :: AccountDeclarationInfo -> String showList :: [AccountDeclarationInfo] -> ShowS | |||||
| type Rep AccountDeclarationInfo # | |||||
Defined in Hledger.Data.Types type Rep AccountDeclarationInfo = D1 ('MetaData "AccountDeclarationInfo" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "AccountDeclarationInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "adicomment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "aditags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag])) :*: (S1 ('MetaSel ('Just "adideclarationorder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel ('Just "adisourcepos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourcePos)))) | |||||
type AccountName = Text #
data AccountType #
Constructors
| Asset | |
| Liability | |
| Equity | |
| Revenue | |
| Expense | |
| Cash | |
| Conversion | |
| Gain | |
| UnrealisedGain | |
| Imbalance |
Instances
| ToJSON AccountType # | |||||
Defined in Hledger.Data.Json Methods toJSON :: AccountType -> Value toEncoding :: AccountType -> Encoding toJSONList :: [AccountType] -> Value toEncodingList :: [AccountType] -> Encoding omitField :: AccountType -> Bool | |||||
| ToJSONKey AccountType # | |||||
Defined in Hledger.Data.Json | |||||
| NFData AccountType # | |||||
Defined in Hledger.Data.Types Methods rnf :: AccountType -> () | |||||
| Eq AccountType # | |||||
Defined in Hledger.Data.Types | |||||
| Ord AccountType # | |||||
Defined in Hledger.Data.Types Methods compare :: AccountType -> AccountType -> Ordering # (<) :: AccountType -> AccountType -> Bool # (<=) :: AccountType -> AccountType -> Bool # (>) :: AccountType -> AccountType -> Bool # (>=) :: AccountType -> AccountType -> Bool # max :: AccountType -> AccountType -> AccountType # min :: AccountType -> AccountType -> AccountType # | |||||
| Bounded AccountType # | |||||
Defined in Hledger.Data.Types | |||||
| Enum AccountType # | |||||
Defined in Hledger.Data.Types Methods succ :: AccountType -> AccountType pred :: AccountType -> AccountType toEnum :: Int -> AccountType fromEnum :: AccountType -> Int enumFrom :: AccountType -> [AccountType] enumFromThen :: AccountType -> AccountType -> [AccountType] enumFromTo :: AccountType -> AccountType -> [AccountType] enumFromThenTo :: AccountType -> AccountType -> AccountType -> [AccountType] | |||||
| Generic AccountType # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show AccountType # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> AccountType -> ShowS show :: AccountType -> String showList :: [AccountType] -> ShowS | |||||
| type Rep AccountType # | |||||
Defined in Hledger.Data.Types type Rep AccountType = D1 ('MetaData "AccountType" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (((C1 ('MetaCons "Asset" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Liability" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Equity" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Revenue" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Expense" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "Cash" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Conversion" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Gain" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UnrealisedGain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Imbalance" 'PrefixI 'False) (U1 :: Type -> Type))))) | |||||
Constructors
| Amount | |
Fields
| |
Instances
| FromJSON Amount # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON Amount # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Amount -> Encoding toJSONList :: [Amount] -> Value toEncodingList :: [Amount] -> Encoding | |||||
| NFData Amount # | |||||
Defined in Hledger.Data.Types | |||||
| Eq Amount # | |||||
| Ord Amount # | |||||
| Generic Amount # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Num Amount # | |||||
| Show Amount # | |||||
| HasAmounts Amount # | |||||
Defined in Hledger.Data.Amount Methods styleAmounts :: Map CommoditySymbol AmountStyle -> Amount -> Amount # | |||||
| type Rep Amount # | |||||
Defined in Hledger.Data.Types type Rep Amount = D1 ('MetaData "Amount" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Amount" 'PrefixI 'True) ((S1 ('MetaSel ('Just "acommodity") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CommoditySymbol) :*: S1 ('MetaSel ('Just "aquantity") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Quantity)) :*: (S1 ('MetaSel ('Just "astyle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AmountStyle) :*: (S1 ('MetaSel ('Just "acost") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe AmountCost)) :*: S1 ('MetaSel ('Just "acostbasis") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe CostBasis)))))) | |||||
data AmountCost #
Instances
| FromJSON AmountCost # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON AmountCost # | |||||
Defined in Hledger.Data.Json Methods toJSON :: AmountCost -> Value toEncoding :: AmountCost -> Encoding toJSONList :: [AmountCost] -> Value toEncodingList :: [AmountCost] -> Encoding omitField :: AmountCost -> Bool | |||||
| NFData AmountCost # | |||||
Defined in Hledger.Data.Types Methods rnf :: AmountCost -> () | |||||
| Eq AmountCost # | |||||
Defined in Hledger.Data.Types | |||||
| Ord AmountCost # | |||||
Defined in Hledger.Data.Types Methods compare :: AmountCost -> AmountCost -> Ordering # (<) :: AmountCost -> AmountCost -> Bool # (<=) :: AmountCost -> AmountCost -> Bool # (>) :: AmountCost -> AmountCost -> Bool # (>=) :: AmountCost -> AmountCost -> Bool # max :: AmountCost -> AmountCost -> AmountCost # min :: AmountCost -> AmountCost -> AmountCost # | |||||
| Generic AmountCost # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show AmountCost # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> AmountCost -> ShowS show :: AmountCost -> String showList :: [AmountCost] -> ShowS | |||||
| type Rep AmountCost # | |||||
Defined in Hledger.Data.Types type Rep AmountCost = D1 ('MetaData "AmountCost" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "UnitCost" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Amount)) :+: C1 ('MetaCons "TotalCost" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Amount))) | |||||
data AmountPrecision #
Constructors
| Precision !Word8 | |
| NaturalPrecision |
Instances
| FromJSON AmountPrecision # | |||||
Defined in Hledger.Data.Json Methods parseJSON :: Value -> Parser AmountPrecision parseJSONList :: Value -> Parser [AmountPrecision] | |||||
| ToJSON AmountPrecision # | |||||
Defined in Hledger.Data.Json Methods toJSON :: AmountPrecision -> Value toEncoding :: AmountPrecision -> Encoding toJSONList :: [AmountPrecision] -> Value toEncodingList :: [AmountPrecision] -> Encoding omitField :: AmountPrecision -> Bool | |||||
| NFData AmountPrecision # | |||||
Defined in Hledger.Data.Types Methods rnf :: AmountPrecision -> () | |||||
| Eq AmountPrecision # | |||||
Defined in Hledger.Data.Types Methods (==) :: AmountPrecision -> AmountPrecision -> Bool (/=) :: AmountPrecision -> AmountPrecision -> Bool | |||||
| Ord AmountPrecision # | |||||
Defined in Hledger.Data.Types Methods compare :: AmountPrecision -> AmountPrecision -> Ordering # (<) :: AmountPrecision -> AmountPrecision -> Bool # (<=) :: AmountPrecision -> AmountPrecision -> Bool # (>) :: AmountPrecision -> AmountPrecision -> Bool # (>=) :: AmountPrecision -> AmountPrecision -> Bool # max :: AmountPrecision -> AmountPrecision -> AmountPrecision # min :: AmountPrecision -> AmountPrecision -> AmountPrecision # | |||||
| Generic AmountPrecision # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: AmountPrecision -> Rep AmountPrecision x to :: Rep AmountPrecision x -> AmountPrecision | |||||
| Read AmountPrecision # | |||||
Defined in Hledger.Data.Types Methods readsPrec :: Int -> ReadS AmountPrecision readList :: ReadS [AmountPrecision] readPrec :: ReadPrec AmountPrecision readListPrec :: ReadPrec [AmountPrecision] | |||||
| Show AmountPrecision # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> AmountPrecision -> ShowS show :: AmountPrecision -> String showList :: [AmountPrecision] -> ShowS | |||||
| type Rep AmountPrecision # | |||||
Defined in Hledger.Data.Types type Rep AmountPrecision = D1 ('MetaData "AmountPrecision" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Precision" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word8)) :+: C1 ('MetaCons "NaturalPrecision" 'PrefixI 'False) (U1 :: Type -> Type)) | |||||
data AmountStyle #
Constructors
| AmountStyle | |
Fields
| |
Instances
| FromJSON AmountStyle # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON AmountStyle # | |||||
Defined in Hledger.Data.Json Methods toJSON :: AmountStyle -> Value toEncoding :: AmountStyle -> Encoding toJSONList :: [AmountStyle] -> Value toEncodingList :: [AmountStyle] -> Encoding omitField :: AmountStyle -> Bool | |||||
| NFData AmountStyle # | |||||
Defined in Hledger.Data.Types Methods rnf :: AmountStyle -> () | |||||
| Eq AmountStyle # | |||||
Defined in Hledger.Data.Types | |||||
| Ord AmountStyle # | |||||
Defined in Hledger.Data.Types Methods compare :: AmountStyle -> AmountStyle -> Ordering # (<) :: AmountStyle -> AmountStyle -> Bool # (<=) :: AmountStyle -> AmountStyle -> Bool # (>) :: AmountStyle -> AmountStyle -> Bool # (>=) :: AmountStyle -> AmountStyle -> Bool # max :: AmountStyle -> AmountStyle -> AmountStyle # min :: AmountStyle -> AmountStyle -> AmountStyle # | |||||
| Generic AmountStyle # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Read AmountStyle # | |||||
Defined in Hledger.Data.Types Methods readsPrec :: Int -> ReadS AmountStyle readList :: ReadS [AmountStyle] readPrec :: ReadPrec AmountStyle readListPrec :: ReadPrec [AmountStyle] | |||||
| Show AmountStyle # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> AmountStyle -> ShowS show :: AmountStyle -> String showList :: [AmountStyle] -> ShowS | |||||
| type Rep AmountStyle # | |||||
Defined in Hledger.Data.Types type Rep AmountStyle = D1 ('MetaData "AmountStyle" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "AmountStyle" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ascommodityside") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Side) :*: (S1 ('MetaSel ('Just "ascommodityspaced") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "asdigitgroups") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe DigitGroupStyle)))) :*: (S1 ('MetaSel ('Just "asdecimalmark") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Char)) :*: (S1 ('MetaSel ('Just "asprecision") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AmountPrecision) :*: S1 ('MetaSel ('Just "asrounding") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Rounding))))) | |||||
data AssertDirective #
Constructors
| AssertDirective | |
Fields
| |
Instances
| NFData AssertDirective # | |||||
Defined in Hledger.Data.Types Methods rnf :: AssertDirective -> () | |||||
| Eq AssertDirective # | |||||
Defined in Hledger.Data.Types Methods (==) :: AssertDirective -> AssertDirective -> Bool (/=) :: AssertDirective -> AssertDirective -> Bool | |||||
| Generic AssertDirective # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: AssertDirective -> Rep AssertDirective x to :: Rep AssertDirective x -> AssertDirective | |||||
| Show AssertDirective # | |||||
Defined in Hledger.Data.Journal Methods showsPrec :: Int -> AssertDirective -> ShowS show :: AssertDirective -> String showList :: [AssertDirective] -> ShowS | |||||
| type Rep AssertDirective # | |||||
Defined in Hledger.Data.Types type Rep AssertDirective = D1 ('MetaData "AssertDirective" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "AssertDirective" 'PrefixI 'True) ((S1 ('MetaSel ('Just "adQuantifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AssertQuantifier) :*: (S1 ('MetaSel ('Just "adPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Interval, DateSpan))) :*: S1 ('MetaSel ('Just "adPeriodText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "adQueryText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "adSkips") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [DateSpan])) :*: (S1 ('MetaSel ('Just "adSourceText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "adSourcePos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourcePos))))) | |||||
data AssertQuantifier #
Constructors
| AssertNone | |
| AssertSome |
Instances
| NFData AssertQuantifier # | |||||
Defined in Hledger.Data.Types Methods rnf :: AssertQuantifier -> () | |||||
| Eq AssertQuantifier # | |||||
Defined in Hledger.Data.Types Methods (==) :: AssertQuantifier -> AssertQuantifier -> Bool (/=) :: AssertQuantifier -> AssertQuantifier -> Bool | |||||
| Generic AssertQuantifier # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: AssertQuantifier -> Rep AssertQuantifier x to :: Rep AssertQuantifier x -> AssertQuantifier | |||||
| Show AssertQuantifier # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> AssertQuantifier -> ShowS show :: AssertQuantifier -> String showList :: [AssertQuantifier] -> ShowS | |||||
| type Rep AssertQuantifier # | |||||
Defined in Hledger.Data.Types type Rep AssertQuantifier = D1 ('MetaData "AssertQuantifier" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "AssertNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AssertSome" 'PrefixI 'False) (U1 :: Type -> Type)) | |||||
data BalanceAssertion #
Constructors
| BalanceAssertion | |
Fields
| |
Instances
| FromJSON BalanceAssertion # | |||||
Defined in Hledger.Data.Json Methods parseJSON :: Value -> Parser BalanceAssertion parseJSONList :: Value -> Parser [BalanceAssertion] | |||||
| ToJSON BalanceAssertion # | |||||
Defined in Hledger.Data.Json Methods toJSON :: BalanceAssertion -> Value toEncoding :: BalanceAssertion -> Encoding toJSONList :: [BalanceAssertion] -> Value toEncodingList :: [BalanceAssertion] -> Encoding omitField :: BalanceAssertion -> Bool | |||||
| NFData BalanceAssertion # | |||||
Defined in Hledger.Data.Types Methods rnf :: BalanceAssertion -> () | |||||
| Eq BalanceAssertion # | |||||
Defined in Hledger.Data.Types Methods (==) :: BalanceAssertion -> BalanceAssertion -> Bool (/=) :: BalanceAssertion -> BalanceAssertion -> Bool | |||||
| Generic BalanceAssertion # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: BalanceAssertion -> Rep BalanceAssertion x to :: Rep BalanceAssertion x -> BalanceAssertion | |||||
| Show BalanceAssertion # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> BalanceAssertion -> ShowS show :: BalanceAssertion -> String showList :: [BalanceAssertion] -> ShowS | |||||
| HasAmounts BalanceAssertion # | |||||
Defined in Hledger.Data.Posting Methods styleAmounts :: Map CommoditySymbol AmountStyle -> BalanceAssertion -> BalanceAssertion # | |||||
| type Rep BalanceAssertion # | |||||
Defined in Hledger.Data.Types type Rep BalanceAssertion = D1 ('MetaData "BalanceAssertion" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "BalanceAssertion" 'PrefixI 'True) ((S1 ('MetaSel ('Just "baamount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Amount) :*: S1 ('MetaSel ('Just "batotal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "bainclusive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "baposition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourcePos)))) | |||||
data BalanceData #
Constructors
| BalanceData | |
Fields
| |
Instances
| FromJSON BalanceData # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON BalanceData # | |||||
Defined in Hledger.Data.Json Methods toJSON :: BalanceData -> Value toEncoding :: BalanceData -> Encoding toJSONList :: [BalanceData] -> Value toEncodingList :: [BalanceData] -> Encoding omitField :: BalanceData -> Bool | |||||
| Monoid BalanceData # | |||||
Defined in Hledger.Data.BalanceData | |||||
| Semigroup BalanceData # | |||||
Defined in Hledger.Data.BalanceData Methods (<>) :: BalanceData -> BalanceData -> BalanceData sconcat :: NonEmpty BalanceData -> BalanceData stimes :: Integral b => b -> BalanceData -> BalanceData | |||||
| Eq BalanceData # | |||||
Defined in Hledger.Data.Types | |||||
| Generic BalanceData # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show BalanceData # | |||||
Defined in Hledger.Data.BalanceData Methods showsPrec :: Int -> BalanceData -> ShowS show :: BalanceData -> String showList :: [BalanceData] -> ShowS | |||||
| HasAmounts BalanceData # | |||||
Defined in Hledger.Data.Amount Methods styleAmounts :: Map CommoditySymbol AmountStyle -> BalanceData -> BalanceData # | |||||
| type Rep BalanceData # | |||||
Defined in Hledger.Data.Types type Rep BalanceData = D1 ('MetaData "BalanceData" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "BalanceData" 'PrefixI 'True) (S1 ('MetaSel ('Just "bdexcludingsubs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MixedAmount) :*: (S1 ('MetaSel ('Just "bdincludingsubs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MixedAmount) :*: S1 ('MetaSel ('Just "bdnumpostings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int)))) | |||||
Constructors
| Commodity | |
Fields
| |
Instances
| ToJSON Commodity # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Commodity -> Encoding toJSONList :: [Commodity] -> Value toEncodingList :: [Commodity] -> Encoding | |||||
| NFData Commodity # | |||||
Defined in Hledger.Data.Types | |||||
| Eq Commodity # | |||||
| Generic Commodity # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show Commodity # | |||||
| type Rep Commodity # | |||||
Defined in Hledger.Data.Types type Rep Commodity = D1 ('MetaData "Commodity" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Commodity" 'PrefixI 'True) ((S1 ('MetaSel ('Just "csymbol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CommoditySymbol) :*: (S1 ('MetaSel ('Just "cformat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AmountStyle)) :*: S1 ('MetaSel ('Just "ccomment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "ctags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag]) :*: (S1 ('MetaSel ('Just "caliases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(Amount, SourcePos)]) :*: S1 ('MetaSel ('Just "csourcepos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourcePos))))) | |||||
type CommoditySymbol = Text #
Constructors
| CostBasis | |
Instances
| FromJSON CostBasis # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON CostBasis # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: CostBasis -> Encoding toJSONList :: [CostBasis] -> Value toEncodingList :: [CostBasis] -> Encoding | |||||
| NFData CostBasis # | |||||
Defined in Hledger.Data.Types | |||||
| Eq CostBasis # | |||||
| Ord CostBasis # | |||||
| Generic CostBasis # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show CostBasis # | |||||
| type Rep CostBasis # | |||||
Defined in Hledger.Data.Types type Rep CostBasis = D1 ('MetaData "CostBasis" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "CostBasis" 'PrefixI 'True) (S1 ('MetaSel ('Just "cbDate") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Day)) :*: (S1 ('MetaSel ('Just "cbLabel") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "cbCost") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Amount))))) | |||||
Instances
| ToJSON DateSpan # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: DateSpan -> Encoding toJSONList :: [DateSpan] -> Value toEncodingList :: [DateSpan] -> Encoding | |||||
| Default DateSpan # | |||||
Defined in Hledger.Data.Types | |||||
| NFData DateSpan # | |||||
Defined in Hledger.Data.Types | |||||
| Eq DateSpan # | |||||
| Ord DateSpan # | |||||
Defined in Hledger.Data.Types | |||||
| Generic DateSpan # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show DateSpan # | |||||
| type Rep DateSpan # | |||||
Defined in Hledger.Data.Types type Rep DateSpan = D1 ('MetaData "DateSpan" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "DateSpan" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EFDay)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EFDay)))) | |||||
type DecimalMark = Char #
Constructors
| DepthSpec | |
Fields
| |
data DigitGroupStyle #
Constructors
| DigitGroups !Char ![Word8] |
Instances
| FromJSON DigitGroupStyle # | |||||
Defined in Hledger.Data.Json Methods parseJSON :: Value -> Parser DigitGroupStyle parseJSONList :: Value -> Parser [DigitGroupStyle] | |||||
| ToJSON DigitGroupStyle # | |||||
Defined in Hledger.Data.Json Methods toJSON :: DigitGroupStyle -> Value toEncoding :: DigitGroupStyle -> Encoding toJSONList :: [DigitGroupStyle] -> Value toEncodingList :: [DigitGroupStyle] -> Encoding omitField :: DigitGroupStyle -> Bool | |||||
| NFData DigitGroupStyle # | |||||
Defined in Hledger.Data.Types Methods rnf :: DigitGroupStyle -> () | |||||
| Eq DigitGroupStyle # | |||||
Defined in Hledger.Data.Types Methods (==) :: DigitGroupStyle -> DigitGroupStyle -> Bool (/=) :: DigitGroupStyle -> DigitGroupStyle -> Bool | |||||
| Ord DigitGroupStyle # | |||||
Defined in Hledger.Data.Types Methods compare :: DigitGroupStyle -> DigitGroupStyle -> Ordering # (<) :: DigitGroupStyle -> DigitGroupStyle -> Bool # (<=) :: DigitGroupStyle -> DigitGroupStyle -> Bool # (>) :: DigitGroupStyle -> DigitGroupStyle -> Bool # (>=) :: DigitGroupStyle -> DigitGroupStyle -> Bool # max :: DigitGroupStyle -> DigitGroupStyle -> DigitGroupStyle # min :: DigitGroupStyle -> DigitGroupStyle -> DigitGroupStyle # | |||||
| Generic DigitGroupStyle # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: DigitGroupStyle -> Rep DigitGroupStyle x to :: Rep DigitGroupStyle x -> DigitGroupStyle | |||||
| Read DigitGroupStyle # | |||||
Defined in Hledger.Data.Types Methods readsPrec :: Int -> ReadS DigitGroupStyle readList :: ReadS [DigitGroupStyle] readPrec :: ReadPrec DigitGroupStyle readListPrec :: ReadPrec [DigitGroupStyle] | |||||
| Show DigitGroupStyle # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> DigitGroupStyle -> ShowS show :: DigitGroupStyle -> String showList :: [DigitGroupStyle] -> ShowS | |||||
| type Rep DigitGroupStyle # | |||||
Defined in Hledger.Data.Types type Rep DigitGroupStyle = D1 ('MetaData "DigitGroupStyle" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "DigitGroups" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Char) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Word8]))) | |||||
Instances
| ToJSON EFDay # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: EFDay -> Encoding toJSONList :: [EFDay] -> Value toEncodingList :: [EFDay] -> Encoding | |||||
| NFData EFDay # | |||||
Defined in Hledger.Data.Types | |||||
| Eq EFDay # | |||||
| Ord EFDay # | |||||
| Generic EFDay # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show EFDay # | |||||
| type Rep EFDay # | |||||
Defined in Hledger.Data.Types type Rep EFDay = D1 ('MetaData "EFDay" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Exact" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day)) :+: C1 ('MetaCons "Flex" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day))) | |||||
data FastPathStats #
Constructors
| FastPathStats | |
Fields
| |
Instances
| NFData FastPathStats # | |||||
Defined in Hledger.Data.Types Methods rnf :: FastPathStats -> () | |||||
| Monoid FastPathStats # | |||||
Defined in Hledger.Data.Types Methods mappend :: FastPathStats -> FastPathStats -> FastPathStats mconcat :: [FastPathStats] -> FastPathStats | |||||
| Semigroup FastPathStats # | |||||
Defined in Hledger.Data.Types Methods (<>) :: FastPathStats -> FastPathStats -> FastPathStats sconcat :: NonEmpty FastPathStats -> FastPathStats stimes :: Integral b => b -> FastPathStats -> FastPathStats | |||||
| Eq FastPathStats # | |||||
Defined in Hledger.Data.Types | |||||
| Generic FastPathStats # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show FastPathStats # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> FastPathStats -> ShowS show :: FastPathStats -> String showList :: [FastPathStats] -> ShowS | |||||
| type Rep FastPathStats # | |||||
Defined in Hledger.Data.Types type Rep FastPathStats = D1 ('MetaData "FastPathStats" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "FastPathStats" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fpsTxnsFast") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel ('Just "fpsTxnsGeneral") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "fpsPricesFast") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int) :*: (S1 ('MetaSel ('Just "fpsPricesGeneral") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel ('Just "fpsDeclines") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map Text Int)))))) | |||||
class HasAmounts a where #
Methods
styleAmounts :: Map CommoditySymbol AmountStyle -> a -> a #
Instances
Constructors
| NoInterval | |
| Days Int | |
| Weeks Int | |
| Months Int | |
| Quarters Int | |
| Years Int | |
| NthWeekdayOfMonth Int Int | |
| MonthDay Int | |
| MonthAndDay Int Int | |
| DaysOfWeek [Int] |
Instances
| ToJSON Interval # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Interval -> Encoding toJSONList :: [Interval] -> Value toEncodingList :: [Interval] -> Encoding | |||||
| Default Interval # | |||||
Defined in Hledger.Data.Types | |||||
| NFData Interval # | |||||
Defined in Hledger.Data.Types | |||||
| Eq Interval # | |||||
| Ord Interval # | |||||
Defined in Hledger.Data.Types | |||||
| Generic Interval # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show Interval # | |||||
| type Rep Interval # | |||||
Defined in Hledger.Data.Types type Rep Interval = D1 ('MetaData "Interval" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (((C1 ('MetaCons "NoInterval" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Days" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int))) :+: (C1 ('MetaCons "Weeks" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int)) :+: (C1 ('MetaCons "Months" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int)) :+: C1 ('MetaCons "Quarters" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int))))) :+: ((C1 ('MetaCons "Years" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int)) :+: C1 ('MetaCons "NthWeekdayOfMonth" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int))) :+: (C1 ('MetaCons "MonthDay" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int)) :+: (C1 ('MetaCons "MonthAndDay" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int)) :+: C1 ('MetaCons "DaysOfWeek" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Int])))))) | |||||
Constructors
Instances
| ToJSON Journal # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Journal -> Encoding toJSONList :: [Journal] -> Value toEncodingList :: [Journal] -> Encoding | |||||
| Default Journal # | |||||
Defined in Hledger.Data.Journal | |||||
| NFData Journal # | |||||
Defined in Hledger.Data.Types | |||||
| Semigroup Journal # | |||||
| Eq Journal # | |||||
| Generic Journal # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show Journal # | |||||
| Anon Journal Source # | |||||
| type Rep Journal # | |||||
Defined in Hledger.Data.Types type Rep Journal = D1 ('MetaData "Journal" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Journal" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "jparsedefaultyear") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Year)) :*: S1 ('MetaSel ('Just "jparseapplyyears") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Maybe Year])) :*: (S1 ('MetaSel ('Just "jparsedefaultcommodity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (CommoditySymbol, AmountStyle))) :*: S1 ('MetaSel ('Just "jparsedecimalmark") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DecimalMark)))) :*: ((S1 ('MetaSel ('Just "jparseparentaccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AccountName]) :*: S1 ('MetaSel ('Just "jparsealiases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AccountAlias])) :*: (S1 ('MetaSel ('Just "jparseoptaliases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AccountAlias]) :*: S1 ('MetaSel ('Just "jparsetimeclockentries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TimeclockEntry])))) :*: (((S1 ('MetaSel ('Just "jparseincludefilestack") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(FilePath, FilePath)]) :*: S1 ('MetaSel ('Just "jparsepos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ParsePos))) :*: (S1 ('MetaSel ('Just "jparseamountstyles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Set AmountStyle)) :*: S1 ('MetaSel ('Just "jparsetexts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Set Text)))) :*: ((S1 ('MetaSel ('Just "jparsefastpathstats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FastPathStats) :*: S1 ('MetaSel ('Just "jdeclaredpayees") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(Payee, PayeeDeclarationInfo)])) :*: (S1 ('MetaSel ('Just "jdeclaredtags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(TagName, TagDeclarationInfo)]) :*: S1 ('MetaSel ('Just "jdeclaredaccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(AccountName, AccountDeclarationInfo)]))))) :*: ((((S1 ('MetaSel ('Just "jdeclaredaccounttags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map AccountName [Tag])) :*: S1 ('MetaSel ('Just "jdeclaredaccounttypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map AccountType [AccountName]))) :*: (S1 ('MetaSel ('Just "jaccounttypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map AccountName AccountType)) :*: S1 ('MetaSel ('Just "jdeclaredcommodities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map CommoditySymbol Commodity)))) :*: ((S1 ('MetaSel ('Just "jdeclaredcommoditytags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map CommoditySymbol [Tag])) :*: S1 ('MetaSel ('Just "jinferredcommoditystyles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map CommoditySymbol AmountStyle))) :*: (S1 ('MetaSel ('Just "jglobalcommoditystyles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map CommoditySymbol AmountStyle)) :*: S1 ('MetaSel ('Just "jpricedirectives") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [PriceDirective])))) :*: (((S1 ('MetaSel ('Just "jinferredmarketprices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MarketPrice]) :*: S1 ('MetaSel ('Just "jtxnmodifiers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TransactionModifier])) :*: (S1 ('MetaSel ('Just "jperiodictxns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [PeriodicTransaction]) :*: S1 ('MetaSel ('Just "jasserts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AssertDirective]))) :*: ((S1 ('MetaSel ('Just "jtxns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Transaction]) :*: S1 ('MetaSel ('Just "jitems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [JournalItem])) :*: (S1 ('MetaSel ('Just "jfiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [JournalFile]) :*: (S1 ('MetaSel ('Just "jauxfiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [(FilePath, [FilePath])]) :*: S1 ('MetaSel ('Just "jlastreadtime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIXTime)))))))) | |||||
data JournalFile #
Instances
| ToJSON JournalFile # | |||||
Defined in Hledger.Data.Json Methods toJSON :: JournalFile -> Value toEncoding :: JournalFile -> Encoding toJSONList :: [JournalFile] -> Value toEncodingList :: [JournalFile] -> Encoding omitField :: JournalFile -> Bool | |||||
| NFData JournalFile # | |||||
Defined in Hledger.Data.Types Methods rnf :: JournalFile -> () | |||||
| Eq JournalFile # | |||||
Defined in Hledger.Data.Types | |||||
| Generic JournalFile # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show JournalFile # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> JournalFile -> ShowS show :: JournalFile -> String showList :: [JournalFile] -> ShowS | |||||
| type Rep JournalFile # | |||||
Defined in Hledger.Data.Types type Rep JournalFile = D1 ('MetaData "JournalFile" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "JournalFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "jfpath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just "jftext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "jfdepth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int)))) | |||||
data JournalItem #
Constructors
| JITransaction !SourcePos | |
| JIComment !Text | |
| JICommentBlock !Text | |
| JIDirective !Text | |
| JINonExportedDirective !Text | |
| JIInclude !Text | |
| JIBlank |
Instances
| NFData JournalItem # | |||||
Defined in Hledger.Data.Types Methods rnf :: JournalItem -> () | |||||
| Eq JournalItem # | |||||
Defined in Hledger.Data.Types | |||||
| Generic JournalItem # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show JournalItem # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> JournalItem -> ShowS show :: JournalItem -> String showList :: [JournalItem] -> ShowS | |||||
| type Rep JournalItem # | |||||
Defined in Hledger.Data.Types type Rep JournalItem = D1 ('MetaData "JournalItem" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) ((C1 ('MetaCons "JITransaction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SourcePos)) :+: (C1 ('MetaCons "JIComment" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "JICommentBlock" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)))) :+: ((C1 ('MetaCons "JIDirective" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "JINonExportedDirective" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) :+: (C1 ('MetaCons "JIInclude" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "JIBlank" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
Instances
| ToJSON Ledger # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Ledger -> Encoding toJSONList :: [Ledger] -> Value toEncodingList :: [Ledger] -> Encoding | |||||
| Generic Ledger # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show Ledger # | |||||
| type Rep Ledger # | |||||
Defined in Hledger.Data.Types type Rep Ledger = D1 ('MetaData "Ledger" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Ledger" 'PrefixI 'True) (S1 ('MetaSel ('Just "ljournal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Journal) :*: S1 ('MetaSel ('Just "laccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Account BalanceData]))) | |||||
Instances
| NFData LotId # | |||||
Defined in Hledger.Data.Types | |||||
| Eq LotId # | |||||
| Ord LotId # | |||||
| Generic LotId # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show LotId # | |||||
| type Rep LotId # | |||||
Defined in Hledger.Data.Types type Rep LotId = D1 ('MetaData "LotId" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "LotId" 'PrefixI 'True) (S1 ('MetaSel ('Just "lotDate") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Day) :*: S1 ('MetaSel ('Just "lotLabel") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Text)))) | |||||
data MarketPrice #
Constructors
| MarketPrice | |
Fields
| |
Instances
| FromJSON MarketPrice # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON MarketPrice # | |||||
Defined in Hledger.Data.Json Methods toJSON :: MarketPrice -> Value toEncoding :: MarketPrice -> Encoding toJSONList :: [MarketPrice] -> Value toEncodingList :: [MarketPrice] -> Encoding omitField :: MarketPrice -> Bool | |||||
| NFData MarketPrice # | |||||
Defined in Hledger.Data.Types Methods rnf :: MarketPrice -> () | |||||
| Eq MarketPrice # | |||||
Defined in Hledger.Data.Types | |||||
| Ord MarketPrice # | |||||
Defined in Hledger.Data.Types Methods compare :: MarketPrice -> MarketPrice -> Ordering # (<) :: MarketPrice -> MarketPrice -> Bool # (<=) :: MarketPrice -> MarketPrice -> Bool # (>) :: MarketPrice -> MarketPrice -> Bool # (>=) :: MarketPrice -> MarketPrice -> Bool # max :: MarketPrice -> MarketPrice -> MarketPrice # min :: MarketPrice -> MarketPrice -> MarketPrice # | |||||
| Generic MarketPrice # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show MarketPrice # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> MarketPrice -> ShowS show :: MarketPrice -> String showList :: [MarketPrice] -> ShowS | |||||
| type Rep MarketPrice # | |||||
Defined in Hledger.Data.Types type Rep MarketPrice = D1 ('MetaData "MarketPrice" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "MarketPrice" 'PrefixI 'True) ((S1 ('MetaSel ('Just "mpdate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day) :*: S1 ('MetaSel ('Just "mpfrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CommoditySymbol)) :*: (S1 ('MetaSel ('Just "mpto") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CommoditySymbol) :*: S1 ('MetaSel ('Just "mprate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Quantity)))) | |||||
data MixedAmount #
Instances
pattern MixedAmountKeyNoCost :: CommoditySymbol -> MixedAmountKey #
pattern MixedAmountKeyTotalCost :: CommoditySymbol -> CommoditySymbol -> MixedAmountKey #
pattern MixedAmountKeyUnitCost :: CommoditySymbol -> CommoditySymbol -> Quantity -> MixedAmountKey #
data NormalSign #
Constructors
| NormallyPositive | |
| NormallyNegative |
Instances
| Eq NormalSign # | |
Defined in Hledger.Data.Types | |
| Show NormalSign # | |
Defined in Hledger.Data.Types Methods showsPrec :: Int -> NormalSign -> ShowS show :: NormalSign -> String showList :: [NormalSign] -> ShowS | |
Instances
| NFData ParsePos # | |||||
Defined in Hledger.Data.Types | |||||
| Eq ParsePos # | |||||
| Generic ParsePos # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show ParsePos # | |||||
| type Rep ParsePos # | |||||
Defined in Hledger.Data.Types type Rep ParsePos = D1 ('MetaData "ParsePos" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "ParsePos" 'PrefixI 'True) (S1 ('MetaSel ('Just "ppSourcePos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourcePos) :*: (S1 ('MetaSel ('Just "ppOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel ('Just "ppInput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) | |||||
type ParsedJournal = Journal #
data PayeeDeclarationInfo #
Constructors
| PayeeDeclarationInfo | |
Fields
| |
Instances
| ToJSON PayeeDeclarationInfo # | |||||
Defined in Hledger.Data.Json Methods toJSON :: PayeeDeclarationInfo -> Value toEncoding :: PayeeDeclarationInfo -> Encoding toJSONList :: [PayeeDeclarationInfo] -> Value toEncodingList :: [PayeeDeclarationInfo] -> Encoding omitField :: PayeeDeclarationInfo -> Bool | |||||
| NFData PayeeDeclarationInfo # | |||||
Defined in Hledger.Data.Types Methods rnf :: PayeeDeclarationInfo -> () | |||||
| Eq PayeeDeclarationInfo # | |||||
Defined in Hledger.Data.Types Methods (==) :: PayeeDeclarationInfo -> PayeeDeclarationInfo -> Bool (/=) :: PayeeDeclarationInfo -> PayeeDeclarationInfo -> Bool | |||||
| Generic PayeeDeclarationInfo # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: PayeeDeclarationInfo -> Rep PayeeDeclarationInfo x to :: Rep PayeeDeclarationInfo x -> PayeeDeclarationInfo | |||||
| Show PayeeDeclarationInfo # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> PayeeDeclarationInfo -> ShowS show :: PayeeDeclarationInfo -> String showList :: [PayeeDeclarationInfo] -> ShowS | |||||
| type Rep PayeeDeclarationInfo # | |||||
Defined in Hledger.Data.Types type Rep PayeeDeclarationInfo = D1 ('MetaData "PayeeDeclarationInfo" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "PayeeDeclarationInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "pdicomment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "pditags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag]))) | |||||
Constructors
| DayPeriod Day | |
| WeekPeriod Day | |
| MonthPeriod Year Month | |
| QuarterPeriod Year Quarter | |
| YearPeriod Year | |
| PeriodBetween Day Day | |
| PeriodFrom Day | |
| PeriodTo Day | |
| PeriodAll |
Instances
| ToJSON Period # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Period -> Encoding toJSONList :: [Period] -> Value toEncodingList :: [Period] -> Encoding | |||||
| Default Period # | |||||
Defined in Hledger.Data.Types | |||||
| Eq Period # | |||||
| Ord Period # | |||||
| Generic Period # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show Period # | |||||
| HasAmounts PostingsReportItem # | |||||
Defined in Hledger.Reports.PostingsReport Methods styleAmounts :: Map CommoditySymbol AmountStyle -> PostingsReportItem -> PostingsReportItem # | |||||
| type Rep Period # | |||||
Defined in Hledger.Data.Types type Rep Period = D1 ('MetaData "Period" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (((C1 ('MetaCons "DayPeriod" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day)) :+: C1 ('MetaCons "WeekPeriod" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day))) :+: (C1 ('MetaCons "MonthPeriod" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Year) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Month)) :+: C1 ('MetaCons "QuarterPeriod" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Year) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedUnpack) (Rec0 Quarter)))) :+: ((C1 ('MetaCons "YearPeriod" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Year)) :+: C1 ('MetaCons "PeriodBetween" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day))) :+: (C1 ('MetaCons "PeriodFrom" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day)) :+: (C1 ('MetaCons "PeriodTo" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day)) :+: C1 ('MetaCons "PeriodAll" 'PrefixI 'False) (U1 :: Type -> Type))))) | |||||
data PeriodData a #
Constructors
| PeriodData | |
Instances
| Foldable1 PeriodData # | |||||
Defined in Hledger.Data.PeriodData Methods fold1 :: Semigroup m => PeriodData m -> m foldMap1 :: Semigroup m => (a -> m) -> PeriodData a -> m foldMap1' :: Semigroup m => (a -> m) -> PeriodData a -> m toNonEmpty :: PeriodData a -> NonEmpty a maximum :: Ord a => PeriodData a -> a minimum :: Ord a => PeriodData a -> a head :: PeriodData a -> a last :: PeriodData a -> a foldrMap1 :: (a -> b) -> (a -> b -> b) -> PeriodData a -> b foldlMap1' :: (a -> b) -> (b -> a -> b) -> PeriodData a -> b foldlMap1 :: (a -> b) -> (b -> a -> b) -> PeriodData a -> b foldrMap1' :: (a -> b) -> (a -> b -> b) -> PeriodData a -> b | |||||
| Functor PeriodData # | |||||
Defined in Hledger.Data.Types Methods fmap :: (a -> b) -> PeriodData a -> PeriodData b # (<$) :: a -> PeriodData b -> PeriodData a # | |||||
| Foldable PeriodData # | |||||
Defined in Hledger.Data.PeriodData Methods fold :: Monoid m => PeriodData m -> m foldMap :: Monoid m => (a -> m) -> PeriodData a -> m foldMap' :: Monoid m => (a -> m) -> PeriodData a -> m foldr :: (a -> b -> b) -> b -> PeriodData a -> b # foldr' :: (a -> b -> b) -> b -> PeriodData a -> b foldl :: (b -> a -> b) -> b -> PeriodData a -> b # foldl' :: (b -> a -> b) -> b -> PeriodData a -> b # foldr1 :: (a -> a -> a) -> PeriodData a -> a # foldl1 :: (a -> a -> a) -> PeriodData a -> a # toList :: PeriodData a -> [a] null :: PeriodData a -> Bool # length :: PeriodData a -> Int # elem :: Eq a => a -> PeriodData a -> Bool # maximum :: Ord a => PeriodData a -> a # minimum :: Ord a => PeriodData a -> a # sum :: Num a => PeriodData a -> a # product :: Num a => PeriodData a -> a # | |||||
| Traversable PeriodData # | |||||
Defined in Hledger.Data.PeriodData Methods traverse :: Applicative f => (a -> f b) -> PeriodData a -> f (PeriodData b) sequenceA :: Applicative f => PeriodData (f a) -> f (PeriodData a) mapM :: Monad m => (a -> m b) -> PeriodData a -> m (PeriodData b) # sequence :: Monad m => PeriodData (m a) -> m (PeriodData a) # | |||||
| FromJSON a => FromJSON (PeriodData a) # | |||||
Defined in Hledger.Data.Json Methods parseJSON :: Value -> Parser (PeriodData a) parseJSONList :: Value -> Parser [PeriodData a] omittedField :: Maybe (PeriodData a) | |||||
| ToJSON a => ToJSON (PeriodData a) # | |||||
Defined in Hledger.Data.Json Methods toJSON :: PeriodData a -> Value toEncoding :: PeriodData a -> Encoding toJSONList :: [PeriodData a] -> Value toEncodingList :: [PeriodData a] -> Encoding omitField :: PeriodData a -> Bool | |||||
| Monoid a => Monoid (PeriodData a) # | |||||
Defined in Hledger.Data.PeriodData Methods mempty :: PeriodData a mappend :: PeriodData a -> PeriodData a -> PeriodData a mconcat :: [PeriodData a] -> PeriodData a | |||||
| Semigroup a => Semigroup (PeriodData a) # | |||||
Defined in Hledger.Data.PeriodData Methods (<>) :: PeriodData a -> PeriodData a -> PeriodData a sconcat :: NonEmpty (PeriodData a) -> PeriodData a stimes :: Integral b => b -> PeriodData a -> PeriodData a | |||||
| Eq a => Eq (PeriodData a) # | |||||
Defined in Hledger.Data.Types | |||||
| Ord a => Ord (PeriodData a) # | |||||
Defined in Hledger.Data.Types Methods compare :: PeriodData a -> PeriodData a -> Ordering # (<) :: PeriodData a -> PeriodData a -> Bool # (<=) :: PeriodData a -> PeriodData a -> Bool # (>) :: PeriodData a -> PeriodData a -> Bool # (>=) :: PeriodData a -> PeriodData a -> Bool # max :: PeriodData a -> PeriodData a -> PeriodData a # min :: PeriodData a -> PeriodData a -> PeriodData a # | |||||
| Generic (PeriodData a) # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show a => Show (PeriodData a) # | |||||
Defined in Hledger.Data.PeriodData Methods showsPrec :: Int -> PeriodData a -> ShowS show :: PeriodData a -> String showList :: [PeriodData a] -> ShowS | |||||
| HasAmounts a => HasAmounts (PeriodData a) # | |||||
Defined in Hledger.Data.Amount Methods styleAmounts :: Map CommoditySymbol AmountStyle -> PeriodData a -> PeriodData a # | |||||
| type Rep (PeriodData a) # | |||||
Defined in Hledger.Data.Types type Rep (PeriodData a) = D1 ('MetaData "PeriodData" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "PeriodData" 'PrefixI 'True) (S1 ('MetaSel ('Just "pdpre") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Just "pdperiods") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map Day a)))) | |||||
data PeriodicTransaction #
Constructors
| PeriodicTransaction | |
Fields
| |
Instances
| ToJSON PeriodicTransaction # | |||||
Defined in Hledger.Data.Json Methods toJSON :: PeriodicTransaction -> Value toEncoding :: PeriodicTransaction -> Encoding toJSONList :: [PeriodicTransaction] -> Value toEncodingList :: [PeriodicTransaction] -> Encoding omitField :: PeriodicTransaction -> Bool | |||||
| NFData PeriodicTransaction # | |||||
Defined in Hledger.Data.Types Methods rnf :: PeriodicTransaction -> () | |||||
| Eq PeriodicTransaction # | |||||
Defined in Hledger.Data.Types Methods (==) :: PeriodicTransaction -> PeriodicTransaction -> Bool (/=) :: PeriodicTransaction -> PeriodicTransaction -> Bool | |||||
| Generic PeriodicTransaction # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: PeriodicTransaction -> Rep PeriodicTransaction x to :: Rep PeriodicTransaction x -> PeriodicTransaction | |||||
| Show PeriodicTransaction # | |||||
Defined in Hledger.Data.PeriodicTransaction Methods showsPrec :: Int -> PeriodicTransaction -> ShowS show :: PeriodicTransaction -> String showList :: [PeriodicTransaction] -> ShowS | |||||
| type Rep PeriodicTransaction # | |||||
Defined in Hledger.Data.Types type Rep PeriodicTransaction = D1 ('MetaData "PeriodicTransaction" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "PeriodicTransaction" 'PrefixI 'True) (((S1 ('MetaSel ('Just "ptperiodexpr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ptinterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Interval)) :*: (S1 ('MetaSel ('Just "ptspan") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DateSpan) :*: (S1 ('MetaSel ('Just "ptsourcepos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (SourcePos, SourcePos)) :*: S1 ('MetaSel ('Just "ptstatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Status)))) :*: ((S1 ('MetaSel ('Just "ptcode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ptdescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "ptcomment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "pttags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag]) :*: S1 ('MetaSel ('Just "ptpostings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Posting])))))) | |||||
Constructors
| Posting | |
Fields
| |
Instances
| FromJSON Posting # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON Posting # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Posting -> Encoding toJSONList :: [Posting] -> Value toEncodingList :: [Posting] -> Encoding | |||||
| NFData Posting # | |||||
Defined in Hledger.Data.Types | |||||
| Eq Posting # | |||||
| Generic Posting # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show Posting # | |||||
| Anon Posting Source # | |||||
| HasAmounts Posting # | |||||
Defined in Hledger.Data.Posting Methods styleAmounts :: Map CommoditySymbol AmountStyle -> Posting -> Posting # | |||||
| HasAmounts PostingsReportItem # | |||||
Defined in Hledger.Reports.PostingsReport Methods styleAmounts :: Map CommoditySymbol AmountStyle -> PostingsReportItem -> PostingsReportItem # | |||||
| type Rep Posting # | |||||
Defined in Hledger.Data.Types type Rep Posting = D1 ('MetaData "Posting" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Posting" 'PrefixI 'True) (((S1 ('MetaSel ('Just "pdate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Day)) :*: S1 ('MetaSel ('Just "pdate2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Day))) :*: (S1 ('MetaSel ('Just "pstatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Status) :*: (S1 ('MetaSel ('Just "paccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccountName) :*: S1 ('MetaSel ('Just "pamount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MixedAmount)))) :*: ((S1 ('MetaSel ('Just "pcomment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "preal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PostingRealness) :*: S1 ('MetaSel ('Just "ptags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag]))) :*: (S1 ('MetaSel ('Just "pbalanceassertion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BalanceAssertion)) :*: (S1 ('MetaSel ('Just "ptransaction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Transaction)) :*: S1 ('MetaSel ('Just "poriginal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Posting))))))) | |||||
data PostingRealness #
Constructors
| RealPosting | |
| VirtualPosting | |
| BalancedVirtualPosting |
Instances
| FromJSON PostingRealness # | |||||
Defined in Hledger.Data.Json Methods parseJSON :: Value -> Parser PostingRealness parseJSONList :: Value -> Parser [PostingRealness] | |||||
| ToJSON PostingRealness # | |||||
Defined in Hledger.Data.Json Methods toJSON :: PostingRealness -> Value toEncoding :: PostingRealness -> Encoding toJSONList :: [PostingRealness] -> Value toEncodingList :: [PostingRealness] -> Encoding omitField :: PostingRealness -> Bool | |||||
| NFData PostingRealness # | |||||
Defined in Hledger.Data.Types Methods rnf :: PostingRealness -> () | |||||
| Eq PostingRealness # | |||||
Defined in Hledger.Data.Types Methods (==) :: PostingRealness -> PostingRealness -> Bool (/=) :: PostingRealness -> PostingRealness -> Bool | |||||
| Generic PostingRealness # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: PostingRealness -> Rep PostingRealness x to :: Rep PostingRealness x -> PostingRealness | |||||
| Show PostingRealness # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> PostingRealness -> ShowS show :: PostingRealness -> String showList :: [PostingRealness] -> ShowS | |||||
| type Rep PostingRealness # | |||||
Defined in Hledger.Data.Types type Rep PostingRealness = D1 ('MetaData "PostingRealness" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "RealPosting" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "VirtualPosting" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BalancedVirtualPosting" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data PriceDirective #
Constructors
| PriceDirective | |
Fields
| |
Instances
| ToJSON PriceDirective # | |||||
Defined in Hledger.Data.Json Methods toJSON :: PriceDirective -> Value toEncoding :: PriceDirective -> Encoding toJSONList :: [PriceDirective] -> Value toEncodingList :: [PriceDirective] -> Encoding omitField :: PriceDirective -> Bool | |||||
| NFData PriceDirective # | |||||
Defined in Hledger.Data.Types Methods rnf :: PriceDirective -> () | |||||
| Eq PriceDirective # | |||||
Defined in Hledger.Data.Types Methods (==) :: PriceDirective -> PriceDirective -> Bool (/=) :: PriceDirective -> PriceDirective -> Bool | |||||
| Ord PriceDirective # | |||||
Defined in Hledger.Data.Types Methods compare :: PriceDirective -> PriceDirective -> Ordering # (<) :: PriceDirective -> PriceDirective -> Bool # (<=) :: PriceDirective -> PriceDirective -> Bool # (>) :: PriceDirective -> PriceDirective -> Bool # (>=) :: PriceDirective -> PriceDirective -> Bool # max :: PriceDirective -> PriceDirective -> PriceDirective # min :: PriceDirective -> PriceDirective -> PriceDirective # | |||||
| Generic PriceDirective # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show PriceDirective # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> PriceDirective -> ShowS show :: PriceDirective -> String showList :: [PriceDirective] -> ShowS | |||||
| HasAmounts PriceDirective Source # | |||||
Defined in Hledger.Cli.Commands.Prices Methods styleAmounts :: Map CommoditySymbol AmountStyle -> PriceDirective -> PriceDirective # | |||||
| type Rep PriceDirective # | |||||
Defined in Hledger.Data.Types type Rep PriceDirective = D1 ('MetaData "PriceDirective" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "PriceDirective" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pdsourcepos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourcePos) :*: S1 ('MetaSel ('Just "pddate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day)) :*: (S1 ('MetaSel ('Just "pdcommodity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CommoditySymbol) :*: S1 ('MetaSel ('Just "pdamount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Amount)))) | |||||
data ReductionMethod #
Instances
| NFData ReductionMethod # | |||||
Defined in Hledger.Data.Types Methods rnf :: ReductionMethod -> () | |||||
| Eq ReductionMethod # | |||||
Defined in Hledger.Data.Types Methods (==) :: ReductionMethod -> ReductionMethod -> Bool (/=) :: ReductionMethod -> ReductionMethod -> Bool | |||||
| Ord ReductionMethod # | |||||
Defined in Hledger.Data.Types Methods compare :: ReductionMethod -> ReductionMethod -> Ordering # (<) :: ReductionMethod -> ReductionMethod -> Bool # (<=) :: ReductionMethod -> ReductionMethod -> Bool # (>) :: ReductionMethod -> ReductionMethod -> Bool # (>=) :: ReductionMethod -> ReductionMethod -> Bool # max :: ReductionMethod -> ReductionMethod -> ReductionMethod # min :: ReductionMethod -> ReductionMethod -> ReductionMethod # | |||||
| Generic ReductionMethod # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: ReductionMethod -> Rep ReductionMethod x to :: Rep ReductionMethod x -> ReductionMethod | |||||
| Read ReductionMethod # | |||||
Defined in Hledger.Data.Types Methods readsPrec :: Int -> ReadS ReductionMethod readList :: ReadS [ReductionMethod] readPrec :: ReadPrec ReductionMethod readListPrec :: ReadPrec [ReductionMethod] | |||||
| Show ReductionMethod # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> ReductionMethod -> ShowS show :: ReductionMethod -> String showList :: [ReductionMethod] -> ShowS | |||||
| type Rep ReductionMethod # | |||||
Defined in Hledger.Data.Types type Rep ReductionMethod = D1 ('MetaData "ReductionMethod" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (((C1 ('MetaCons "FIFO" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LIFO" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "HIFO" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AVERAGE" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "SPECID" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FIFOALL" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LIFOALL" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "HIFOALL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AVERAGEALL" 'PrefixI 'False) (U1 :: Type -> Type))))) | |||||
Constructors
| NoRounding | |
| SoftRounding | |
| HardRounding | |
| AllRounding |
Instances
| FromJSON Rounding # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON Rounding # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Rounding -> Encoding toJSONList :: [Rounding] -> Value toEncodingList :: [Rounding] -> Encoding | |||||
| NFData Rounding # | |||||
Defined in Hledger.Data.Types | |||||
| Eq Rounding # | |||||
| Ord Rounding # | |||||
Defined in Hledger.Data.Types | |||||
| Generic Rounding # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Read Rounding # | |||||
Defined in Hledger.Data.Types | |||||
| Show Rounding # | |||||
| type Rep Rounding # | |||||
Defined in Hledger.Data.Types type Rep Rounding = D1 ('MetaData "Rounding" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) ((C1 ('MetaCons "NoRounding" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SoftRounding" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "HardRounding" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AllRounding" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
Instances
| Eq SepFormat # | |
| Ord SepFormat # | |
| Show SepFormat # | |
Instances
| FromJSON Side # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON Side # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Side -> Encoding toJSONList :: [Side] -> Value toEncodingList :: [Side] -> Encoding | |||||
| NFData Side # | |||||
Defined in Hledger.Data.Types | |||||
| Eq Side # | |||||
| Ord Side # | |||||
| Generic Side # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Read Side # | |||||
Defined in Hledger.Data.Types | |||||
| Show Side # | |||||
| type Rep Side # | |||||
Defined in Hledger.Data.Types type Rep Side = D1 ('MetaData "Side" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "L" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "R" 'PrefixI 'False) (U1 :: Type -> Type)) | |||||
data SmartInterval #
Instances
| Show SmartInterval # | |
Defined in Hledger.Data.Types Methods showsPrec :: Int -> SmartInterval -> ShowS show :: SmartInterval -> String showList :: [SmartInterval] -> ShowS | |
Instances
| FromJSON Status # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON Status # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: Status -> Encoding toJSONList :: [Status] -> Value toEncodingList :: [Status] -> Encoding | |||||
| NFData Status # | |||||
Defined in Hledger.Data.Types | |||||
| Eq Status # | |||||
| Ord Status # | |||||
| Bounded Status # | |||||
Defined in Hledger.Data.Types | |||||
| Enum Status # | |||||
Defined in Hledger.Data.Types | |||||
| Generic Status # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show Status # | |||||
| type Rep Status # | |||||
Defined in Hledger.Data.Types type Rep Status = D1 ('MetaData "Status" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Unmarked" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Pending" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Cleared" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data StorageFormat #
Instances
| Eq StorageFormat # | |
Defined in Hledger.Data.Types | |
| Ord StorageFormat # | |
Defined in Hledger.Data.Types Methods compare :: StorageFormat -> StorageFormat -> Ordering # (<) :: StorageFormat -> StorageFormat -> Bool # (<=) :: StorageFormat -> StorageFormat -> Bool # (>) :: StorageFormat -> StorageFormat -> Bool # (>=) :: StorageFormat -> StorageFormat -> Bool # max :: StorageFormat -> StorageFormat -> StorageFormat # min :: StorageFormat -> StorageFormat -> StorageFormat # | |
| Show StorageFormat # | |
Defined in Hledger.Data.Types Methods showsPrec :: Int -> StorageFormat -> ShowS show :: StorageFormat -> String showList :: [StorageFormat] -> ShowS | |
data TMPostingRule #
Constructors
| TMPostingRule | |
Fields
| |
Instances
| ToJSON TMPostingRule # | |||||
Defined in Hledger.Data.Json Methods toJSON :: TMPostingRule -> Value toEncoding :: TMPostingRule -> Encoding toJSONList :: [TMPostingRule] -> Value toEncodingList :: [TMPostingRule] -> Encoding omitField :: TMPostingRule -> Bool | |||||
| NFData TMPostingRule # | |||||
Defined in Hledger.Data.Types Methods rnf :: TMPostingRule -> () | |||||
| Eq TMPostingRule # | |||||
Defined in Hledger.Data.Types | |||||
| Generic TMPostingRule # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show TMPostingRule # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> TMPostingRule -> ShowS show :: TMPostingRule -> String showList :: [TMPostingRule] -> ShowS | |||||
| type Rep TMPostingRule # | |||||
Defined in Hledger.Data.Types type Rep TMPostingRule = D1 ('MetaData "TMPostingRule" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "TMPostingRule" 'PrefixI 'True) (S1 ('MetaSel ('Just "tmprPosting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Posting) :*: S1 ('MetaSel ('Just "tmprIsMultiplier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) | |||||
newtype TagDeclarationInfo #
Constructors
| TagDeclarationInfo | |
Fields
| |
Instances
| ToJSON TagDeclarationInfo # | |||||
Defined in Hledger.Data.Json Methods toJSON :: TagDeclarationInfo -> Value toEncoding :: TagDeclarationInfo -> Encoding toJSONList :: [TagDeclarationInfo] -> Value toEncodingList :: [TagDeclarationInfo] -> Encoding omitField :: TagDeclarationInfo -> Bool | |||||
| NFData TagDeclarationInfo # | |||||
Defined in Hledger.Data.Types Methods rnf :: TagDeclarationInfo -> () | |||||
| Eq TagDeclarationInfo # | |||||
Defined in Hledger.Data.Types Methods (==) :: TagDeclarationInfo -> TagDeclarationInfo -> Bool (/=) :: TagDeclarationInfo -> TagDeclarationInfo -> Bool | |||||
| Generic TagDeclarationInfo # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: TagDeclarationInfo -> Rep TagDeclarationInfo x to :: Rep TagDeclarationInfo x -> TagDeclarationInfo | |||||
| Show TagDeclarationInfo # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> TagDeclarationInfo -> ShowS show :: TagDeclarationInfo -> String showList :: [TagDeclarationInfo] -> ShowS | |||||
| type Rep TagDeclarationInfo # | |||||
Defined in Hledger.Data.Types type Rep TagDeclarationInfo = D1 ('MetaData "TagDeclarationInfo" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'True) (C1 ('MetaCons "TagDeclarationInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "tdicomment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
data TimeclockCode #
Constructors
| SetBalance | |
| SetRequiredHours | |
| In | |
| Out | |
| FinalOut |
Instances
| ToJSON TimeclockCode # | |||||
Defined in Hledger.Data.Json Methods toJSON :: TimeclockCode -> Value toEncoding :: TimeclockCode -> Encoding toJSONList :: [TimeclockCode] -> Value toEncodingList :: [TimeclockCode] -> Encoding omitField :: TimeclockCode -> Bool | |||||
| NFData TimeclockCode # | |||||
Defined in Hledger.Data.Types Methods rnf :: TimeclockCode -> () | |||||
| Eq TimeclockCode # | |||||
Defined in Hledger.Data.Types | |||||
| Ord TimeclockCode # | |||||
Defined in Hledger.Data.Types Methods compare :: TimeclockCode -> TimeclockCode -> Ordering # (<) :: TimeclockCode -> TimeclockCode -> Bool # (<=) :: TimeclockCode -> TimeclockCode -> Bool # (>) :: TimeclockCode -> TimeclockCode -> Bool # (>=) :: TimeclockCode -> TimeclockCode -> Bool # max :: TimeclockCode -> TimeclockCode -> TimeclockCode # min :: TimeclockCode -> TimeclockCode -> TimeclockCode # | |||||
| Generic TimeclockCode # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Read TimeclockCode # | |||||
Defined in Hledger.Data.Timeclock Methods readsPrec :: Int -> ReadS TimeclockCode readList :: ReadS [TimeclockCode] readPrec :: ReadPrec TimeclockCode readListPrec :: ReadPrec [TimeclockCode] | |||||
| Show TimeclockCode # | |||||
Defined in Hledger.Data.Timeclock Methods showsPrec :: Int -> TimeclockCode -> ShowS show :: TimeclockCode -> String showList :: [TimeclockCode] -> ShowS | |||||
| type Rep TimeclockCode # | |||||
Defined in Hledger.Data.Types type Rep TimeclockCode = D1 ('MetaData "TimeclockCode" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) ((C1 ('MetaCons "SetBalance" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SetRequiredHours" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "In" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Out" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FinalOut" 'PrefixI 'False) (U1 :: Type -> Type)))) | |||||
data TimeclockEntry #
Constructors
| TimeclockEntry | |
Fields
| |
Instances
| ToJSON TimeclockEntry # | |||||
Defined in Hledger.Data.Json Methods toJSON :: TimeclockEntry -> Value toEncoding :: TimeclockEntry -> Encoding toJSONList :: [TimeclockEntry] -> Value toEncodingList :: [TimeclockEntry] -> Encoding omitField :: TimeclockEntry -> Bool | |||||
| NFData TimeclockEntry # | |||||
Defined in Hledger.Data.Types Methods rnf :: TimeclockEntry -> () | |||||
| Eq TimeclockEntry # | |||||
Defined in Hledger.Data.Types Methods (==) :: TimeclockEntry -> TimeclockEntry -> Bool (/=) :: TimeclockEntry -> TimeclockEntry -> Bool | |||||
| Ord TimeclockEntry # | |||||
Defined in Hledger.Data.Types Methods compare :: TimeclockEntry -> TimeclockEntry -> Ordering # (<) :: TimeclockEntry -> TimeclockEntry -> Bool # (<=) :: TimeclockEntry -> TimeclockEntry -> Bool # (>) :: TimeclockEntry -> TimeclockEntry -> Bool # (>=) :: TimeclockEntry -> TimeclockEntry -> Bool # max :: TimeclockEntry -> TimeclockEntry -> TimeclockEntry # min :: TimeclockEntry -> TimeclockEntry -> TimeclockEntry # | |||||
| Generic TimeclockEntry # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show TimeclockEntry # | |||||
Defined in Hledger.Data.Timeclock Methods showsPrec :: Int -> TimeclockEntry -> ShowS show :: TimeclockEntry -> String showList :: [TimeclockEntry] -> ShowS | |||||
| type Rep TimeclockEntry # | |||||
Defined in Hledger.Data.Types type Rep TimeclockEntry = D1 ('MetaData "TimeclockEntry" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "TimeclockEntry" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tlsourcepos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourcePos) :*: (S1 ('MetaSel ('Just "tlcode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TimeclockCode) :*: S1 ('MetaSel ('Just "tldatetime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LocalTime))) :*: ((S1 ('MetaSel ('Just "tlaccount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccountName) :*: S1 ('MetaSel ('Just "tldescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "tlcomment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tltags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag]))))) | |||||
data Transaction #
Constructors
| Transaction | |
Instances
| FromJSON Transaction # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON Transaction # | |||||
Defined in Hledger.Data.Json Methods toJSON :: Transaction -> Value toEncoding :: Transaction -> Encoding toJSONList :: [Transaction] -> Value toEncodingList :: [Transaction] -> Encoding omitField :: Transaction -> Bool | |||||
| NFData Transaction # | |||||
Defined in Hledger.Data.Types Methods rnf :: Transaction -> () | |||||
| Eq Transaction # | |||||
Defined in Hledger.Data.Types | |||||
| Generic Transaction # | |||||
Defined in Hledger.Data.Types Associated Types
| |||||
| Show Transaction # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> Transaction -> ShowS show :: Transaction -> String showList :: [Transaction] -> ShowS | |||||
| Anon Transaction Source # | |||||
Defined in Hledger.Cli.Anon Methods anon :: Transaction -> Transaction Source # | |||||
| HasAmounts Transaction # | |||||
Defined in Hledger.Data.Transaction Methods styleAmounts :: Map CommoditySymbol AmountStyle -> Transaction -> Transaction # | |||||
| HasAmounts AccountTransactionsReportItem # | |||||
Defined in Hledger.Reports.AccountTransactionsReport Methods styleAmounts :: Map CommoditySymbol AmountStyle -> AccountTransactionsReportItem -> AccountTransactionsReportItem # | |||||
| type Rep Transaction # | |||||
Defined in Hledger.Data.Types type Rep Transaction = D1 ('MetaData "Transaction" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "Transaction" 'PrefixI 'True) (((S1 ('MetaSel ('Just "tindex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer) :*: S1 ('MetaSel ('Just "tprecedingcomment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "tsourcepos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (SourcePos, SourcePos)) :*: (S1 ('MetaSel ('Just "tdate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Day) :*: S1 ('MetaSel ('Just "tdate2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Day))))) :*: ((S1 ('MetaSel ('Just "tstatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Status) :*: (S1 ('MetaSel ('Just "tcode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tdescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "tcomment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "ttags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag]) :*: S1 ('MetaSel ('Just "tpostings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Posting])))))) | |||||
data TransactionModifier #
Constructors
| TransactionModifier | |
Fields
| |
Instances
| ToJSON TransactionModifier # | |||||
Defined in Hledger.Data.Json Methods toJSON :: TransactionModifier -> Value toEncoding :: TransactionModifier -> Encoding toJSONList :: [TransactionModifier] -> Value toEncodingList :: [TransactionModifier] -> Encoding omitField :: TransactionModifier -> Bool | |||||
| NFData TransactionModifier # | |||||
Defined in Hledger.Data.Types Methods rnf :: TransactionModifier -> () | |||||
| Eq TransactionModifier # | |||||
Defined in Hledger.Data.Types Methods (==) :: TransactionModifier -> TransactionModifier -> Bool (/=) :: TransactionModifier -> TransactionModifier -> Bool | |||||
| Generic TransactionModifier # | |||||
Defined in Hledger.Data.Types Associated Types
Methods from :: TransactionModifier -> Rep TransactionModifier x to :: Rep TransactionModifier x -> TransactionModifier | |||||
| Show TransactionModifier # | |||||
Defined in Hledger.Data.Types Methods showsPrec :: Int -> TransactionModifier -> ShowS show :: TransactionModifier -> String showList :: [TransactionModifier] -> ShowS | |||||
| type Rep TransactionModifier # | |||||
Defined in Hledger.Data.Types type Rep TransactionModifier = D1 ('MetaData "TransactionModifier" "Hledger.Data.Types" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "TransactionModifier" 'PrefixI 'True) (S1 ('MetaSel ('Just "tmquerytxt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tmpostingrules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TMPostingRule]))) | |||||
Constructors
| PrimaryDate | |
| SecondaryDate |
data ConversionOp #
Constructors
| NoConversionOp | |
| ToCost | |
| ToTransactedCost |
Instances
| Eq ConversionOp # | |
Defined in Hledger.Data.Valuation | |
| Show ConversionOp # | |
Defined in Hledger.Data.Valuation Methods showsPrec :: Int -> ConversionOp -> ShowS show :: ConversionOp -> String showList :: [ConversionOp] -> ShowS | |
type PriceOracle = (Day, CommoditySymbol, Maybe CommoditySymbol) -> Maybe (CommoditySymbol, Quantity) #
data ValuationType #
Constructors
| AtThen (Maybe CommoditySymbol) | |
| AtEnd (Maybe CommoditySymbol) | |
| AtNow (Maybe CommoditySymbol) | |
| AtDate Day (Maybe CommoditySymbol) |
Instances
| Eq ValuationType # | |
Defined in Hledger.Data.Valuation | |
| Show ValuationType # | |
Defined in Hledger.Data.Valuation Methods showsPrec :: Int -> ValuationType -> ShowS show :: ValuationType -> String showList :: [ValuationType] -> ShowS | |
Constructors
| Any | |
| None | |
| Date DateSpan | |
| Date2 DateSpan | |
| StatusQ Status | |
| Code Regexp | |
| Desc Regexp | |
| Tag Regexp (Maybe Regexp) | |
| Acct Regexp | |
| Type [AccountType] | |
| Depth Int | |
| DepthAcct Regexp Int | |
| Real Bool | |
| Amt OrdPlus Quantity (Maybe CommoditySymbol) | |
| Cur Regexp | |
| Change OrdPlus Quantity (Maybe CommoditySymbol) | |
| Balance OrdPlus Quantity (Maybe CommoditySymbol) | |
| Find Regexp (Maybe DateSpan) | |
| Not Query | |
| And [Query] | |
| Or [Query] | |
| AnyPosting [Query] | |
| AllPostings [Query] |
Instances
data AmbiguousNumber #
Constructors
| AmbiguousNumber DigitGrp Char DigitGrp |
Instances
| Eq AmbiguousNumber # | |
Defined in Hledger.Read.Common Methods (==) :: AmbiguousNumber -> AmbiguousNumber -> Bool (/=) :: AmbiguousNumber -> AmbiguousNumber -> Bool | |
| Show AmbiguousNumber # | |
Defined in Hledger.Read.Common Methods showsPrec :: Int -> AmbiguousNumber -> ShowS show :: AmbiguousNumber -> String showList :: [AmbiguousNumber] -> ShowS | |
data AmountParseKind #
Constructors
| OrdinaryAmount | |
| MultiplierAmount | |
| StyleAmount |
Instances
| Eq AmountParseKind # | |
Defined in Hledger.Read.Common Methods (==) :: AmountParseKind -> AmountParseKind -> Bool (/=) :: AmountParseKind -> AmountParseKind -> Bool | |
| Show AmountParseKind # | |
Defined in Hledger.Read.Common Methods showsPrec :: Int -> AmountParseKind -> ShowS show :: AmountParseKind -> String showList :: [AmountParseKind] -> ShowS | |
Constructors
| DigitGrp | |
Fields
| |
type PrefixedFilePath = FilePath #
data Reader (m :: Type -> Type) #
Constructors
| Reader | |
Fields
| |
class HasInputOpts c where #
Minimal complete definition
Methods
inputOpts :: Lens' c InputOpts #
balancingopts :: Lens' c BalancingOpts #
fileoverrides :: Lens' c (Map FilePath Text) #
forecast :: Lens' c (Maybe DateSpan) #
forecastOnlyForDisplay :: Lens' c Bool #
ignore_lots :: Lens' c Bool #
infer_costs :: Lens' c Bool #
infer_equity :: Lens' c Bool #
journaldir :: Lens' c (Maybe FilePath) #
mformat :: Lens' c (Maybe StorageFormat) #
mrules_file :: Lens' c (Maybe FilePath) #
oldtimeclock :: Lens' c Bool #
reportspan :: Lens' c DateSpan #
verbose_tags :: Lens' c Bool #
Instances
| HasInputOpts CliOpts Source # | |
Defined in Hledger.Cli.CliOptions Methods inputOpts :: Lens' CliOpts InputOpts # aliases :: Lens' CliOpts [String] # anon__ :: Lens' CliOpts Bool # auto__ :: Lens' CliOpts Bool # balancingopts :: Lens' CliOpts BalancingOpts # dryrun :: Lens' CliOpts Bool # fileoverrides :: Lens' CliOpts (Map FilePath Text) # forecast :: Lens' CliOpts (Maybe DateSpan) # forecastOnlyForDisplay :: Lens' CliOpts Bool # ignore_lots :: Lens' CliOpts Bool # importing :: Lens' CliOpts Bool # infer_costs :: Lens' CliOpts Bool # infer_equity :: Lens' CliOpts Bool # journaldir :: Lens' CliOpts (Maybe FilePath) # mformat :: Lens' CliOpts (Maybe StorageFormat) # mrules_file :: Lens' CliOpts (Maybe FilePath) # new_save :: Lens' CliOpts Bool # oldtimeclock :: Lens' CliOpts Bool # pivot :: Lens' CliOpts String # reportspan :: Lens' CliOpts DateSpan # scanfiles :: Lens' CliOpts Bool # strict :: Lens' CliOpts Bool # verbose_tags :: Lens' CliOpts Bool # | |
| HasInputOpts InputOpts # | |
Defined in Hledger.Read.InputOptions Methods inputOpts :: Lens' InputOpts InputOpts # aliases :: Lens' InputOpts [String] # anon__ :: Lens' InputOpts Bool # auto__ :: Lens' InputOpts Bool # balancingopts :: Lens' InputOpts BalancingOpts # defer :: Lens' InputOpts Bool # dryrun :: Lens' InputOpts Bool # fileoverrides :: Lens' InputOpts (Map FilePath Text) # forecast :: Lens' InputOpts (Maybe DateSpan) # forecastOnlyForDisplay :: Lens' InputOpts Bool # ignore_lots :: Lens' InputOpts Bool # importing :: Lens' InputOpts Bool # infer_costs :: Lens' InputOpts Bool # infer_equity :: Lens' InputOpts Bool # ioDay :: Lens' InputOpts Day # journaldir :: Lens' InputOpts (Maybe FilePath) # mformat :: Lens' InputOpts (Maybe StorageFormat) # mrules_file :: Lens' InputOpts (Maybe FilePath) # new__ :: Lens' InputOpts Bool # new_save :: Lens' InputOpts Bool # oldtimeclock :: Lens' InputOpts Bool # pivot :: Lens' InputOpts String # reportspan :: Lens' InputOpts DateSpan # scanfiles :: Lens' InputOpts Bool # strict :: Lens' InputOpts Bool # verbose_tags :: Lens' InputOpts Bool # | |
Constructors
| InputOpts | |
Fields
| |
Instances
| Eq InputOpts # | |
| Ord InputOpts # | |
| Show InputOpts # | |
| HasBalancingOpts InputOpts # | |
Defined in Hledger.Read.InputOptions Methods balancingOpts :: Lens' InputOpts BalancingOpts # account_lots_tags :: Lens' InputOpts (Map AccountName Text) # account_types :: Lens' InputOpts (Map AccountName AccountType) # commodity_styles :: Lens' InputOpts (Maybe (Map CommoditySymbol AmountStyle)) # ignore_assertions :: Lens' InputOpts Bool # imbalance_account :: Lens' InputOpts AccountName # infer_balancing_costs :: Lens' InputOpts Bool # infer_imbalance :: Lens' InputOpts Bool # lenient_lots :: Lens' InputOpts Bool # lotful_commodities :: Lens' InputOpts (Set CommoditySymbol) # txn_balancing :: Lens' InputOpts TransactionBalancingPrecision # verbose_balancing_tags :: Lens' InputOpts Bool # | |
| HasInputOpts InputOpts # | |
Defined in Hledger.Read.InputOptions Methods inputOpts :: Lens' InputOpts InputOpts # aliases :: Lens' InputOpts [String] # anon__ :: Lens' InputOpts Bool # auto__ :: Lens' InputOpts Bool # balancingopts :: Lens' InputOpts BalancingOpts # defer :: Lens' InputOpts Bool # dryrun :: Lens' InputOpts Bool # fileoverrides :: Lens' InputOpts (Map FilePath Text) # forecast :: Lens' InputOpts (Maybe DateSpan) # forecastOnlyForDisplay :: Lens' InputOpts Bool # ignore_lots :: Lens' InputOpts Bool # importing :: Lens' InputOpts Bool # infer_costs :: Lens' InputOpts Bool # infer_equity :: Lens' InputOpts Bool # ioDay :: Lens' InputOpts Day # journaldir :: Lens' InputOpts (Maybe FilePath) # mformat :: Lens' InputOpts (Maybe StorageFormat) # mrules_file :: Lens' InputOpts (Maybe FilePath) # new__ :: Lens' InputOpts Bool # new_save :: Lens' InputOpts Bool # oldtimeclock :: Lens' InputOpts Bool # pivot :: Lens' InputOpts String # reportspan :: Lens' InputOpts DateSpan # scanfiles :: Lens' InputOpts Bool # strict :: Lens' InputOpts Bool # verbose_tags :: Lens' InputOpts Bool # | |
type LatestDates = [Day] #
data LatestDatesForFile #
Constructors
| LatestDatesForFile FilePath LatestDates |
Instances
| Show LatestDatesForFile # | |
Defined in Hledger.Read.LatestDates Methods showsPrec :: Int -> LatestDatesForFile -> ShowS show :: LatestDatesForFile -> String showList :: [LatestDatesForFile] -> ShowS | |
type AccountTransactionsReportItem = (Transaction, Transaction, Bool, [AccountName], MixedAmount, MixedAmount) #
type BalanceReport = ([BalanceReportItem], MixedAmount) #
type BalanceReportItem = (AccountName, AccountName, Int, MixedAmount) #
type BudgetAverage = Average #
type BudgetCell = (Maybe Change, Maybe BudgetGoal) #
type BudgetGoal = Change #
type BudgetTotal = Total #
type EntriesReport = [EntriesReportItem] #
type EntriesReportItem = Transaction #
type PostingsReport = [PostingsReportItem] #
type PostingsReportItem = (Maybe Day, Maybe Period, Maybe Text, Posting, MixedAmount) #
data AccountListMode #
Instances
| Default AccountListMode # | |
Defined in Hledger.Reports.ReportOptions Methods | |
| Eq AccountListMode # | |
Defined in Hledger.Reports.ReportOptions Methods (==) :: AccountListMode -> AccountListMode -> Bool (/=) :: AccountListMode -> AccountListMode -> Bool | |
| Show AccountListMode # | |
Defined in Hledger.Reports.ReportOptions Methods showsPrec :: Int -> AccountListMode -> ShowS show :: AccountListMode -> String showList :: [AccountListMode] -> ShowS | |
data BalanceAccumulation #
Constructors
| PerPeriod | |
| Cumulative | |
| Historical |
Instances
| Default BalanceAccumulation # | |
Defined in Hledger.Reports.ReportOptions Methods | |
| Eq BalanceAccumulation # | |
Defined in Hledger.Reports.ReportOptions Methods (==) :: BalanceAccumulation -> BalanceAccumulation -> Bool (/=) :: BalanceAccumulation -> BalanceAccumulation -> Bool | |
| Show BalanceAccumulation # | |
Defined in Hledger.Reports.ReportOptions Methods showsPrec :: Int -> BalanceAccumulation -> ShowS show :: BalanceAccumulation -> String showList :: [BalanceAccumulation] -> ShowS | |
data BalanceCalculation #
Instances
| Default BalanceCalculation # | |
Defined in Hledger.Reports.ReportOptions Methods | |
| Eq BalanceCalculation # | |
Defined in Hledger.Reports.ReportOptions Methods (==) :: BalanceCalculation -> BalanceCalculation -> Bool (/=) :: BalanceCalculation -> BalanceCalculation -> Bool | |
| Show BalanceCalculation # | |
Defined in Hledger.Reports.ReportOptions Methods showsPrec :: Int -> BalanceCalculation -> ShowS show :: BalanceCalculation -> String showList :: [BalanceCalculation] -> ShowS | |
class HasReportOptsNoUpdate a => HasReportOpts a where #
Minimal complete definition
Nothing
Methods
reportOpts :: ReportableLens' a ReportOpts #
period :: ReportableLens' a Period #
statuses :: ReportableLens' a [Status] #
depth :: ReportableLens' a DepthSpec #
date2 :: ReportableLens' a Bool #
real :: ReportableLens' a Bool #
querystring :: ReportableLens' a [Text] #
Instances
| HasReportOpts CliOpts Source # | |
Defined in Hledger.Cli.CliOptions Methods reportOpts :: ReportableLens' CliOpts ReportOpts # period :: ReportableLens' CliOpts Period # statuses :: ReportableLens' CliOpts [Status] # depth :: ReportableLens' CliOpts DepthSpec # date2 :: ReportableLens' CliOpts Bool # real :: ReportableLens' CliOpts Bool # querystring :: ReportableLens' CliOpts [Text] # | |
| HasReportOpts ReportOpts # | |
Defined in Hledger.Reports.ReportOptions Methods reportOpts :: ReportableLens' ReportOpts ReportOpts # period :: ReportableLens' ReportOpts Period # statuses :: ReportableLens' ReportOpts [Status] # depth :: ReportableLens' ReportOpts DepthSpec # date2 :: ReportableLens' ReportOpts Bool # real :: ReportableLens' ReportOpts Bool # querystring :: ReportableLens' ReportOpts [Text] # | |
| HasReportOpts ReportSpec # | |
Defined in Hledger.Reports.ReportOptions Methods reportOpts :: ReportableLens' ReportSpec ReportOpts # period :: ReportableLens' ReportSpec Period # statuses :: ReportableLens' ReportSpec [Status] # depth :: ReportableLens' ReportSpec DepthSpec # date2 :: ReportableLens' ReportSpec Bool # real :: ReportableLens' ReportSpec Bool # querystring :: ReportableLens' ReportSpec [Text] # | |
class HasReportOptsNoUpdate c where #
Minimal complete definition
Methods
reportOptsNoUpdate :: Lens' c ReportOpts #
accountlistmode :: Lens' c AccountListMode #
balance_base_url :: Lens' c (Maybe Text) #
balanceaccum :: Lens' c BalanceAccumulation #
balancecalc :: Lens' c BalanceCalculation #
budgetpat :: Lens' c (Maybe Text) #
conversionop :: Lens' c (Maybe ConversionOp) #
date2NoUpdate :: Lens' c Bool #
depthNoUpdate :: Lens' c DepthSpec #
fold_depth :: Lens' c (Maybe Int) #
format :: Lens' c StringFormat #
full_names :: Lens' c Bool #
infer_prices :: Lens' c Bool #
interval :: Lens' c Interval #
normalbalance :: Lens' c (Maybe NormalSign) #
periodNoUpdate :: Lens' c Period #
period_titles :: Lens' c PeriodTitles #
querystringNoUpdate :: Lens' c [Text] #
realNoUpdate :: Lens' c Bool #
show_costs :: Lens' c Bool #
sort_amount :: Lens' c Bool #
sortspec :: Lens' c SortSpec #
statusesNoUpdate :: Lens' c [Status] #
subreport_titles :: Lens' c (Maybe Text) #
summary_only :: Lens' c Bool #
title__ :: Lens' c (Maybe Text) #
translations :: Lens' c Translations #
transpose__ :: Lens' c Bool #
value :: Lens' c (Maybe ValuationType) #
Instances
| HasReportOptsNoUpdate CliOpts Source # | |
Defined in Hledger.Cli.CliOptions Methods reportOptsNoUpdate :: Lens' CliOpts ReportOpts # accountlistmode :: Lens' CliOpts AccountListMode # average :: Lens' CliOpts Bool # balance_base_url :: Lens' CliOpts (Maybe Text) # balanceaccum :: Lens' CliOpts BalanceAccumulation # balancecalc :: Lens' CliOpts BalanceCalculation # budgetpat :: Lens' CliOpts (Maybe Text) # color__ :: Lens' CliOpts Bool # conversionop :: Lens' CliOpts (Maybe ConversionOp) # date2NoUpdate :: Lens' CliOpts Bool # declared :: Lens' CliOpts Bool # depthNoUpdate :: Lens' CliOpts DepthSpec # empty__ :: Lens' CliOpts Bool # fold_depth :: Lens' CliOpts (Maybe Int) # format :: Lens' CliOpts StringFormat # full_names :: Lens' CliOpts Bool # infer_prices :: Lens' CliOpts Bool # interval :: Lens' CliOpts Interval # invert :: Lens' CliOpts Bool # layout :: Lens' CliOpts Layout # no_elide :: Lens' CliOpts Bool # no_total :: Lens' CliOpts Bool # normalbalance :: Lens' CliOpts (Maybe NormalSign) # percent :: Lens' CliOpts Bool # periodNoUpdate :: Lens' CliOpts Period # period_titles :: Lens' CliOpts PeriodTitles # pretty :: Lens' CliOpts Bool # querystringNoUpdate :: Lens' CliOpts [Text] # realNoUpdate :: Lens' CliOpts Bool # related :: Lens' CliOpts Bool # row_total :: Lens' CliOpts Bool # show_costs :: Lens' CliOpts Bool # sort_amount :: Lens' CliOpts Bool # sortspec :: Lens' CliOpts SortSpec # statusesNoUpdate :: Lens' CliOpts [Status] # subreport_titles :: Lens' CliOpts (Maybe Text) # summary_only :: Lens' CliOpts Bool # title__ :: Lens' CliOpts (Maybe Text) # translations :: Lens' CliOpts Translations # transpose__ :: Lens' CliOpts Bool # txn_dates :: Lens' CliOpts Bool # value :: Lens' CliOpts (Maybe ValuationType) # | |
| HasReportOptsNoUpdate ReportOpts # | |
Defined in Hledger.Reports.ReportOptions Methods reportOptsNoUpdate :: Lens' ReportOpts ReportOpts # accountlistmode :: Lens' ReportOpts AccountListMode # average :: Lens' ReportOpts Bool # balance_base_url :: Lens' ReportOpts (Maybe Text) # balanceaccum :: Lens' ReportOpts BalanceAccumulation # balancecalc :: Lens' ReportOpts BalanceCalculation # budgetpat :: Lens' ReportOpts (Maybe Text) # color__ :: Lens' ReportOpts Bool # conversionop :: Lens' ReportOpts (Maybe ConversionOp) # date2NoUpdate :: Lens' ReportOpts Bool # declared :: Lens' ReportOpts Bool # depthNoUpdate :: Lens' ReportOpts DepthSpec # drop__ :: Lens' ReportOpts Int # empty__ :: Lens' ReportOpts Bool # fold_depth :: Lens' ReportOpts (Maybe Int) # format :: Lens' ReportOpts StringFormat # full_names :: Lens' ReportOpts Bool # infer_prices :: Lens' ReportOpts Bool # interval :: Lens' ReportOpts Interval # invert :: Lens' ReportOpts Bool # layout :: Lens' ReportOpts Layout # no_elide :: Lens' ReportOpts Bool # no_total :: Lens' ReportOpts Bool # normalbalance :: Lens' ReportOpts (Maybe NormalSign) # percent :: Lens' ReportOpts Bool # periodNoUpdate :: Lens' ReportOpts Period # period_titles :: Lens' ReportOpts PeriodTitles # pretty :: Lens' ReportOpts Bool # querystringNoUpdate :: Lens' ReportOpts [Text] # realNoUpdate :: Lens' ReportOpts Bool # related :: Lens' ReportOpts Bool # row_total :: Lens' ReportOpts Bool # show_costs :: Lens' ReportOpts Bool # sort_amount :: Lens' ReportOpts Bool # sortspec :: Lens' ReportOpts SortSpec # statusesNoUpdate :: Lens' ReportOpts [Status] # subreport_titles :: Lens' ReportOpts (Maybe Text) # summary_only :: Lens' ReportOpts Bool # title__ :: Lens' ReportOpts (Maybe Text) # translations :: Lens' ReportOpts Translations # transpose__ :: Lens' ReportOpts Bool # txn_dates :: Lens' ReportOpts Bool # value :: Lens' ReportOpts (Maybe ValuationType) # | |
| HasReportOptsNoUpdate ReportSpec # | |
Defined in Hledger.Reports.ReportOptions Methods reportOptsNoUpdate :: Lens' ReportSpec ReportOpts # accountlistmode :: Lens' ReportSpec AccountListMode # average :: Lens' ReportSpec Bool # balance_base_url :: Lens' ReportSpec (Maybe Text) # balanceaccum :: Lens' ReportSpec BalanceAccumulation # balancecalc :: Lens' ReportSpec BalanceCalculation # budgetpat :: Lens' ReportSpec (Maybe Text) # color__ :: Lens' ReportSpec Bool # conversionop :: Lens' ReportSpec (Maybe ConversionOp) # date2NoUpdate :: Lens' ReportSpec Bool # declared :: Lens' ReportSpec Bool # depthNoUpdate :: Lens' ReportSpec DepthSpec # drop__ :: Lens' ReportSpec Int # empty__ :: Lens' ReportSpec Bool # fold_depth :: Lens' ReportSpec (Maybe Int) # format :: Lens' ReportSpec StringFormat # full_names :: Lens' ReportSpec Bool # infer_prices :: Lens' ReportSpec Bool # interval :: Lens' ReportSpec Interval # invert :: Lens' ReportSpec Bool # layout :: Lens' ReportSpec Layout # no_elide :: Lens' ReportSpec Bool # no_total :: Lens' ReportSpec Bool # normalbalance :: Lens' ReportSpec (Maybe NormalSign) # percent :: Lens' ReportSpec Bool # periodNoUpdate :: Lens' ReportSpec Period # period_titles :: Lens' ReportSpec PeriodTitles # pretty :: Lens' ReportSpec Bool # querystringNoUpdate :: Lens' ReportSpec [Text] # realNoUpdate :: Lens' ReportSpec Bool # related :: Lens' ReportSpec Bool # row_total :: Lens' ReportSpec Bool # show_costs :: Lens' ReportSpec Bool # sort_amount :: Lens' ReportSpec Bool # sortspec :: Lens' ReportSpec SortSpec # statusesNoUpdate :: Lens' ReportSpec [Status] # subreport_titles :: Lens' ReportSpec (Maybe Text) # summary_only :: Lens' ReportSpec Bool # title__ :: Lens' ReportSpec (Maybe Text) # translations :: Lens' ReportSpec Translations # transpose__ :: Lens' ReportSpec Bool # txn_dates :: Lens' ReportSpec Bool # value :: Lens' ReportSpec (Maybe ValuationType) # | |
class HasReportSpec c where #
Minimal complete definition
Methods
reportSpec :: Lens' c ReportSpec #
rsQueryOpts :: Lens' c [QueryOpt] #
rsReportOpts :: Lens' c ReportOpts #
rsRowQuery :: Lens' c Query #
Instances
| HasReportSpec CliOpts Source # | |
Defined in Hledger.Cli.CliOptions Methods reportSpec :: Lens' CliOpts ReportSpec # rsQuery :: Lens' CliOpts Query # rsQueryOpts :: Lens' CliOpts [QueryOpt] # rsReportOpts :: Lens' CliOpts ReportOpts # rsRowQuery :: Lens' CliOpts Query # | |
| HasReportSpec ReportSpec # | |
Defined in Hledger.Reports.ReportOptions Methods reportSpec :: Lens' ReportSpec ReportSpec # rsDay :: Lens' ReportSpec Day # rsQuery :: Lens' ReportSpec Query # rsQueryOpts :: Lens' ReportSpec [QueryOpt] # rsReportOpts :: Lens' ReportSpec ReportOpts # rsRowQuery :: Lens' ReportSpec Query # | |
Constructors
| LayoutWide (Maybe Int) | |
| LayoutTall | |
| LayoutBare | |
| LayoutBareWide | |
| LayoutTidy |
data PeriodTitles #
Instances
| Default PeriodTitles # | |
Defined in Hledger.Reports.ReportOptions Methods def :: PeriodTitles | |
| Eq PeriodTitles # | |
Defined in Hledger.Reports.ReportOptions | |
| Show PeriodTitles # | |
Defined in Hledger.Reports.ReportOptions Methods showsPrec :: Int -> PeriodTitles -> ShowS show :: PeriodTitles -> String showList :: [PeriodTitles] -> ShowS | |
data ReportOpts #
Constructors
| ReportOpts | |
Fields
| |
Instances
| Default ReportOpts # | |
Defined in Hledger.Reports.ReportOptions Methods def :: ReportOpts | |
| Show ReportOpts # | |
Defined in Hledger.Reports.ReportOptions Methods showsPrec :: Int -> ReportOpts -> ShowS show :: ReportOpts -> String showList :: [ReportOpts] -> ShowS | |
| HasReportOpts ReportOpts # | |
Defined in Hledger.Reports.ReportOptions Methods reportOpts :: ReportableLens' ReportOpts ReportOpts # period :: ReportableLens' ReportOpts Period # statuses :: ReportableLens' ReportOpts [Status] # depth :: ReportableLens' ReportOpts DepthSpec # date2 :: ReportableLens' ReportOpts Bool # real :: ReportableLens' ReportOpts Bool # querystring :: ReportableLens' ReportOpts [Text] # | |
| HasReportOptsNoUpdate ReportOpts # | |
Defined in Hledger.Reports.ReportOptions Methods reportOptsNoUpdate :: Lens' ReportOpts ReportOpts # accountlistmode :: Lens' ReportOpts AccountListMode # average :: Lens' ReportOpts Bool # balance_base_url :: Lens' ReportOpts (Maybe Text) # balanceaccum :: Lens' ReportOpts BalanceAccumulation # balancecalc :: Lens' ReportOpts BalanceCalculation # budgetpat :: Lens' ReportOpts (Maybe Text) # color__ :: Lens' ReportOpts Bool # conversionop :: Lens' ReportOpts (Maybe ConversionOp) # date2NoUpdate :: Lens' ReportOpts Bool # declared :: Lens' ReportOpts Bool # depthNoUpdate :: Lens' ReportOpts DepthSpec # drop__ :: Lens' ReportOpts Int # empty__ :: Lens' ReportOpts Bool # fold_depth :: Lens' ReportOpts (Maybe Int) # format :: Lens' ReportOpts StringFormat # full_names :: Lens' ReportOpts Bool # infer_prices :: Lens' ReportOpts Bool # interval :: Lens' ReportOpts Interval # invert :: Lens' ReportOpts Bool # layout :: Lens' ReportOpts Layout # no_elide :: Lens' ReportOpts Bool # no_total :: Lens' ReportOpts Bool # normalbalance :: Lens' ReportOpts (Maybe NormalSign) # percent :: Lens' ReportOpts Bool # periodNoUpdate :: Lens' ReportOpts Period # period_titles :: Lens' ReportOpts PeriodTitles # pretty :: Lens' ReportOpts Bool # querystringNoUpdate :: Lens' ReportOpts [Text] # realNoUpdate :: Lens' ReportOpts Bool # related :: Lens' ReportOpts Bool # row_total :: Lens' ReportOpts Bool # show_costs :: Lens' ReportOpts Bool # sort_amount :: Lens' ReportOpts Bool # sortspec :: Lens' ReportOpts SortSpec # statusesNoUpdate :: Lens' ReportOpts [Status] # subreport_titles :: Lens' ReportOpts (Maybe Text) # summary_only :: Lens' ReportOpts Bool # title__ :: Lens' ReportOpts (Maybe Text) # translations :: Lens' ReportOpts Translations # transpose__ :: Lens' ReportOpts Bool # txn_dates :: Lens' ReportOpts Bool # value :: Lens' ReportOpts (Maybe ValuationType) # | |
data ReportSpec #
Constructors
| ReportSpec | |
Fields
| |
Instances
| Default ReportSpec # | |
Defined in Hledger.Reports.ReportOptions Methods def :: ReportSpec | |
| Show ReportSpec # | |
Defined in Hledger.Reports.ReportOptions Methods showsPrec :: Int -> ReportSpec -> ShowS show :: ReportSpec -> String showList :: [ReportSpec] -> ShowS | |
| HasReportOpts ReportSpec # | |
Defined in Hledger.Reports.ReportOptions Methods reportOpts :: ReportableLens' ReportSpec ReportOpts # period :: ReportableLens' ReportSpec Period # statuses :: ReportableLens' ReportSpec [Status] # depth :: ReportableLens' ReportSpec DepthSpec # date2 :: ReportableLens' ReportSpec Bool # real :: ReportableLens' ReportSpec Bool # querystring :: ReportableLens' ReportSpec [Text] # | |
| HasReportOptsNoUpdate ReportSpec # | |
Defined in Hledger.Reports.ReportOptions Methods reportOptsNoUpdate :: Lens' ReportSpec ReportOpts # accountlistmode :: Lens' ReportSpec AccountListMode # average :: Lens' ReportSpec Bool # balance_base_url :: Lens' ReportSpec (Maybe Text) # balanceaccum :: Lens' ReportSpec BalanceAccumulation # balancecalc :: Lens' ReportSpec BalanceCalculation # budgetpat :: Lens' ReportSpec (Maybe Text) # color__ :: Lens' ReportSpec Bool # conversionop :: Lens' ReportSpec (Maybe ConversionOp) # date2NoUpdate :: Lens' ReportSpec Bool # declared :: Lens' ReportSpec Bool # depthNoUpdate :: Lens' ReportSpec DepthSpec # drop__ :: Lens' ReportSpec Int # empty__ :: Lens' ReportSpec Bool # fold_depth :: Lens' ReportSpec (Maybe Int) # format :: Lens' ReportSpec StringFormat # full_names :: Lens' ReportSpec Bool # infer_prices :: Lens' ReportSpec Bool # interval :: Lens' ReportSpec Interval # invert :: Lens' ReportSpec Bool # layout :: Lens' ReportSpec Layout # no_elide :: Lens' ReportSpec Bool # no_total :: Lens' ReportSpec Bool # normalbalance :: Lens' ReportSpec (Maybe NormalSign) # percent :: Lens' ReportSpec Bool # periodNoUpdate :: Lens' ReportSpec Period # period_titles :: Lens' ReportSpec PeriodTitles # pretty :: Lens' ReportSpec Bool # querystringNoUpdate :: Lens' ReportSpec [Text] # realNoUpdate :: Lens' ReportSpec Bool # related :: Lens' ReportSpec Bool # row_total :: Lens' ReportSpec Bool # show_costs :: Lens' ReportSpec Bool # sort_amount :: Lens' ReportSpec Bool # sortspec :: Lens' ReportSpec SortSpec # statusesNoUpdate :: Lens' ReportSpec [Status] # subreport_titles :: Lens' ReportSpec (Maybe Text) # summary_only :: Lens' ReportSpec Bool # title__ :: Lens' ReportSpec (Maybe Text) # translations :: Lens' ReportSpec Translations # transpose__ :: Lens' ReportSpec Bool # txn_dates :: Lens' ReportSpec Bool # value :: Lens' ReportSpec (Maybe ValuationType) # | |
| HasReportSpec ReportSpec # | |
Defined in Hledger.Reports.ReportOptions Methods reportSpec :: Lens' ReportSpec ReportSpec # rsDay :: Lens' ReportSpec Day # rsQuery :: Lens' ReportSpec Query # rsQueryOpts :: Lens' ReportSpec [QueryOpt] # rsReportOpts :: Lens' ReportSpec ReportOpts # rsRowQuery :: Lens' ReportSpec Query # | |
Constructors
| AbsAmount' Bool | |
| Account' Bool | |
| Amount' Bool | |
| Date' Bool | |
| Description' Bool |
type Average = MixedAmount #
type Balance = MixedAmount #
data CBCSubreportSpec a #
Constructors
| CBCSubreportSpec | |
type Change = MixedAmount #
data CompoundPeriodicReport a b #
Constructors
| CompoundPeriodicReport | |
Fields
| |
Instances
| Functor (CompoundPeriodicReport a) # | |||||
Defined in Hledger.Reports.ReportTypes Methods fmap :: (a0 -> b) -> CompoundPeriodicReport a a0 -> CompoundPeriodicReport a b # (<$) :: a0 -> CompoundPeriodicReport a b -> CompoundPeriodicReport a a0 # | |||||
| (ToJSON b, ToJSON a) => ToJSON (CompoundPeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods toJSON :: CompoundPeriodicReport a b -> Value toEncoding :: CompoundPeriodicReport a b -> Encoding toJSONList :: [CompoundPeriodicReport a b] -> Value toEncodingList :: [CompoundPeriodicReport a b] -> Encoding omitField :: CompoundPeriodicReport a b -> Bool | |||||
| Generic (CompoundPeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes Associated Types
Methods from :: CompoundPeriodicReport a b -> Rep (CompoundPeriodicReport a b) x to :: Rep (CompoundPeriodicReport a b) x -> CompoundPeriodicReport a b | |||||
| (Show a, Show b) => Show (CompoundPeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods showsPrec :: Int -> CompoundPeriodicReport a b -> ShowS show :: CompoundPeriodicReport a b -> String showList :: [CompoundPeriodicReport a b] -> ShowS | |||||
| HasAmounts b => HasAmounts (CompoundPeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods styleAmounts :: Map CommoditySymbol AmountStyle -> CompoundPeriodicReport a b -> CompoundPeriodicReport a b # | |||||
| type Rep (CompoundPeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes type Rep (CompoundPeriodicReport a b) = D1 ('MetaData "CompoundPeriodicReport" "Hledger.Reports.ReportTypes" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "CompoundPeriodicReport" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cbrTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "cbrDates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DateSpan])) :*: (S1 ('MetaSel ('Just "cbrSubreports") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Text, PeriodicReport a b, Bool)]) :*: S1 ('MetaSel ('Just "cbrTotals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PeriodicReportRow () b))))) | |||||
data DisplayName #
Constructors
| DisplayName | |
Fields
| |
Instances
| ToJSON DisplayName # | |
Defined in Hledger.Reports.ReportTypes Methods toJSON :: DisplayName -> Value toEncoding :: DisplayName -> Encoding toJSONList :: [DisplayName] -> Value toEncodingList :: [DisplayName] -> Encoding omitField :: DisplayName -> Bool | |
| Eq DisplayName # | |
Defined in Hledger.Reports.ReportTypes | |
| Ord DisplayName # | |
Defined in Hledger.Reports.ReportTypes Methods compare :: DisplayName -> DisplayName -> Ordering # (<) :: DisplayName -> DisplayName -> Bool # (<=) :: DisplayName -> DisplayName -> Bool # (>) :: DisplayName -> DisplayName -> Bool # (>=) :: DisplayName -> DisplayName -> Bool # max :: DisplayName -> DisplayName -> DisplayName # min :: DisplayName -> DisplayName -> DisplayName # | |
| Show DisplayName # | |
Defined in Hledger.Reports.ReportTypes Methods showsPrec :: Int -> DisplayName -> ShowS show :: DisplayName -> String showList :: [DisplayName] -> ShowS | |
type Percentage = Decimal #
data PeriodicReport a b #
Constructors
| PeriodicReport | |
Fields
| |
Instances
| Bifunctor PeriodicReport # | |||||
Defined in Hledger.Reports.ReportTypes Methods bimap :: (a -> b) -> (c -> d) -> PeriodicReport a c -> PeriodicReport b d first :: (a -> b) -> PeriodicReport a c -> PeriodicReport b c second :: (b -> c) -> PeriodicReport a b -> PeriodicReport a c | |||||
| Functor (PeriodicReport a) # | |||||
Defined in Hledger.Reports.ReportTypes Methods fmap :: (a0 -> b) -> PeriodicReport a a0 -> PeriodicReport a b # (<$) :: a0 -> PeriodicReport a b -> PeriodicReport a a0 # | |||||
| (ToJSON b, ToJSON a) => ToJSON (PeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods toJSON :: PeriodicReport a b -> Value toEncoding :: PeriodicReport a b -> Encoding toJSONList :: [PeriodicReport a b] -> Value toEncodingList :: [PeriodicReport a b] -> Encoding omitField :: PeriodicReport a b -> Bool | |||||
| Generic (PeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes Associated Types
Methods from :: PeriodicReport a b -> Rep (PeriodicReport a b) x to :: Rep (PeriodicReport a b) x -> PeriodicReport a b | |||||
| (Show a, Show b) => Show (PeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods showsPrec :: Int -> PeriodicReport a b -> ShowS show :: PeriodicReport a b -> String showList :: [PeriodicReport a b] -> ShowS | |||||
| HasAmounts b => HasAmounts (PeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods styleAmounts :: Map CommoditySymbol AmountStyle -> PeriodicReport a b -> PeriodicReport a b # | |||||
| HasAmounts b => HasAmounts (Text, PeriodicReport a b, Bool) # | |||||
Defined in Hledger.Reports.ReportTypes Methods styleAmounts :: Map CommoditySymbol AmountStyle -> (Text, PeriodicReport a b, Bool) -> (Text, PeriodicReport a b, Bool) # | |||||
| type Rep (PeriodicReport a b) # | |||||
Defined in Hledger.Reports.ReportTypes type Rep (PeriodicReport a b) = D1 ('MetaData "PeriodicReport" "Hledger.Reports.ReportTypes" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "PeriodicReport" 'PrefixI 'True) (S1 ('MetaSel ('Just "prDates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DateSpan]) :*: (S1 ('MetaSel ('Just "prRows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PeriodicReportRow a b]) :*: S1 ('MetaSel ('Just "prTotals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PeriodicReportRow () b))))) | |||||
data PeriodicReportRow a b #
Constructors
| PeriodicReportRow | |
Fields
| |
Instances
| Bifunctor PeriodicReportRow # | |||||
Defined in Hledger.Reports.ReportTypes Methods bimap :: (a -> b) -> (c -> d) -> PeriodicReportRow a c -> PeriodicReportRow b d first :: (a -> b) -> PeriodicReportRow a c -> PeriodicReportRow b c second :: (b -> c) -> PeriodicReportRow a b -> PeriodicReportRow a c | |||||
| Functor (PeriodicReportRow a) # | |||||
Defined in Hledger.Reports.ReportTypes Methods fmap :: (a0 -> b) -> PeriodicReportRow a a0 -> PeriodicReportRow a b # (<$) :: a0 -> PeriodicReportRow a b -> PeriodicReportRow a a0 # | |||||
| (ToJSON a, ToJSON b) => ToJSON (PeriodicReportRow a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods toJSON :: PeriodicReportRow a b -> Value toEncoding :: PeriodicReportRow a b -> Encoding toJSONList :: [PeriodicReportRow a b] -> Value toEncodingList :: [PeriodicReportRow a b] -> Encoding omitField :: PeriodicReportRow a b -> Bool | |||||
| Semigroup b => Semigroup (PeriodicReportRow a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods (<>) :: PeriodicReportRow a b -> PeriodicReportRow a b -> PeriodicReportRow a b sconcat :: NonEmpty (PeriodicReportRow a b) -> PeriodicReportRow a b stimes :: Integral b0 => b0 -> PeriodicReportRow a b -> PeriodicReportRow a b | |||||
| Generic (PeriodicReportRow a b) # | |||||
Defined in Hledger.Reports.ReportTypes Associated Types
Methods from :: PeriodicReportRow a b -> Rep (PeriodicReportRow a b) x to :: Rep (PeriodicReportRow a b) x -> PeriodicReportRow a b | |||||
| (Show a, Show b) => Show (PeriodicReportRow a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods showsPrec :: Int -> PeriodicReportRow a b -> ShowS show :: PeriodicReportRow a b -> String showList :: [PeriodicReportRow a b] -> ShowS | |||||
| HasAmounts b => HasAmounts (PeriodicReportRow a b) # | |||||
Defined in Hledger.Reports.ReportTypes Methods styleAmounts :: Map CommoditySymbol AmountStyle -> PeriodicReportRow a b -> PeriodicReportRow a b # | |||||
| type Rep (PeriodicReportRow a b) # | |||||
Defined in Hledger.Reports.ReportTypes type Rep (PeriodicReportRow a b) = D1 ('MetaData "PeriodicReportRow" "Hledger.Reports.ReportTypes" "hledger-lib-2.0-5NBavNmBvhzFPKtDMBoaVJ" 'False) (C1 ('MetaCons "PeriodicReportRow" 'PrefixI 'True) ((S1 ('MetaSel ('Just "prrName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "prrAmounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [b])) :*: (S1 ('MetaSel ('Just "prrTotal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 b) :*: S1 ('MetaSel ('Just "prrAverage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 b)))) | |||||
type Total = MixedAmount #
data GhcDebugMode #
Constructors
| GDNotSupported | |
| GDDisabled | |
| GDNoPause | |
| GDPauseAtStart | |
| GDPauseAtEnd |
Instances
| Eq GhcDebugMode # | |
Defined in Hledger.Utils.Debug | |
| Ord GhcDebugMode # | |
Defined in Hledger.Utils.Debug Methods compare :: GhcDebugMode -> GhcDebugMode -> Ordering # (<) :: GhcDebugMode -> GhcDebugMode -> Bool # (<=) :: GhcDebugMode -> GhcDebugMode -> Bool # (>) :: GhcDebugMode -> GhcDebugMode -> Bool # (>=) :: GhcDebugMode -> GhcDebugMode -> Bool # max :: GhcDebugMode -> GhcDebugMode -> GhcDebugMode # min :: GhcDebugMode -> GhcDebugMode -> GhcDebugMode # | |
| Show GhcDebugMode # | |
Defined in Hledger.Utils.Debug Methods showsPrec :: Int -> GhcDebugMode -> ShowS show :: GhcDebugMode -> String showList :: [GhcDebugMode] -> ShowS | |
data FinalParseError' e #
Instances
| Monoid (FinalParseError' e) # | |
Defined in Hledger.Utils.Parse Methods mempty :: FinalParseError' e mappend :: FinalParseError' e -> FinalParseError' e -> FinalParseError' e mconcat :: [FinalParseError' e] -> FinalParseError' e | |
| Semigroup (FinalParseError' e) # | |
Defined in Hledger.Utils.Parse Methods (<>) :: FinalParseError' e -> FinalParseError' e -> FinalParseError' e sconcat :: NonEmpty (FinalParseError' e) -> FinalParseError' e stimes :: Integral b => b -> FinalParseError' e -> FinalParseError' e | |
| Show e => Show (FinalParseError' e) # | |
Defined in Hledger.Utils.Parse Methods showsPrec :: Int -> FinalParseError' e -> ShowS show :: FinalParseError' e -> String showList :: [FinalParseError' e] -> ShowS | |
data FinalParseErrorBundle' e #
Instances
| Show e => Show (FinalParseErrorBundle' e) # | |
Defined in Hledger.Utils.Parse Methods showsPrec :: Int -> FinalParseErrorBundle' e -> ShowS show :: FinalParseErrorBundle' e -> String showList :: [FinalParseErrorBundle' e] -> ShowS | |
data HledgerParseErrorData #
Instances
| Eq HledgerParseErrorData # | |
Defined in Hledger.Utils.Parse Methods (==) :: HledgerParseErrorData -> HledgerParseErrorData -> Bool (/=) :: HledgerParseErrorData -> HledgerParseErrorData -> Bool | |
| Ord HledgerParseErrorData # | |
Defined in Hledger.Utils.Parse Methods compare :: HledgerParseErrorData -> HledgerParseErrorData -> Ordering # (<) :: HledgerParseErrorData -> HledgerParseErrorData -> Bool # (<=) :: HledgerParseErrorData -> HledgerParseErrorData -> Bool # (>) :: HledgerParseErrorData -> HledgerParseErrorData -> Bool # (>=) :: HledgerParseErrorData -> HledgerParseErrorData -> Bool # max :: HledgerParseErrorData -> HledgerParseErrorData -> HledgerParseErrorData # min :: HledgerParseErrorData -> HledgerParseErrorData -> HledgerParseErrorData # | |
| Show HledgerParseErrorData # | |
Defined in Hledger.Utils.Parse Methods showsPrec :: Int -> HledgerParseErrorData -> ShowS show :: HledgerParseErrorData -> String showList :: [HledgerParseErrorData] -> ShowS | |
| ShowErrorComponent HledgerParseErrorData # | |
Defined in Hledger.Utils.Parse Methods showErrorComponent :: HledgerParseErrorData -> String errorComponentLen :: HledgerParseErrorData -> Int | |
| Ord (ParseError Text HledgerParseErrorData) # | |
Defined in Hledger.Utils.Parse Methods compare :: ParseError Text HledgerParseErrorData -> ParseError Text HledgerParseErrorData -> Ordering # (<) :: ParseError Text HledgerParseErrorData -> ParseError Text HledgerParseErrorData -> Bool # (<=) :: ParseError Text HledgerParseErrorData -> ParseError Text HledgerParseErrorData -> Bool # (>) :: ParseError Text HledgerParseErrorData -> ParseError Text HledgerParseErrorData -> Bool # (>=) :: ParseError Text HledgerParseErrorData -> ParseError Text HledgerParseErrorData -> Bool # max :: ParseError Text HledgerParseErrorData -> ParseError Text HledgerParseErrorData -> ParseError Text HledgerParseErrorData # min :: ParseError Text HledgerParseErrorData -> ParseError Text HledgerParseErrorData -> ParseError Text HledgerParseErrorData # | |
type HledgerParseErrors = ParseErrorBundle Text HledgerParseErrorData #
type SimpleStringParser a = Parsec HledgerParseErrorData String a #
type SimpleTextParser = Parsec HledgerParseErrorData Text #
data SourceExcerpt #
type TextParser (m :: Type -> Type) a = ParsecT HledgerParseErrorData Text m a #
type RegexError = String #
Instances
| ToJSON Regexp # | |
Defined in Hledger.Utils.Regex Methods toEncoding :: Regexp -> Encoding toJSONList :: [Regexp] -> Value toEncodingList :: [Regexp] -> Encoding | |
| NFData Regexp # | |
Defined in Hledger.Utils.Regex | |
| Eq Regexp # | |
| Ord Regexp # | |
| Read Regexp # | |
Defined in Hledger.Utils.Regex | |
| Show Regexp # | |
| RegexLike Regexp String # | |
Defined in Hledger.Utils.Regex Methods matchOnce :: Regexp -> String -> Maybe MatchArray matchAll :: Regexp -> String -> [MatchArray] matchCount :: Regexp -> String -> Int matchTest :: Regexp -> String -> Bool matchAllText :: Regexp -> String -> [MatchText String] matchOnceText :: Regexp -> String -> Maybe (String, MatchText String, String) | |
| RegexContext Regexp String String # | |
type Replacement = String #
data WideBuilder #
Constructors
| WideBuilder | |
Instances
| Monoid WideBuilder # | |
Defined in Text.WideString | |
| Semigroup WideBuilder # | |
Defined in Text.WideString Methods (<>) :: WideBuilder -> WideBuilder -> WideBuilder sconcat :: NonEmpty WideBuilder -> WideBuilder stimes :: Integral b => b -> WideBuilder -> WideBuilder | |
| Show WideBuilder # | |
Defined in Text.WideString Methods showsPrec :: Int -> WideBuilder -> ShowS show :: WideBuilder -> String showList :: [WideBuilder] -> ShowS | |
Constructors
| SourcePos | |
Fields
| |
Instances
| FromJSON SourcePos # | |||||
Defined in Hledger.Data.Json | |||||
| ToJSON SourcePos # | |||||
Defined in Hledger.Data.Json Methods toEncoding :: SourcePos -> Encoding toJSONList :: [SourcePos] -> Value toEncodingList :: [SourcePos] -> Encoding | |||||
| NFData SourcePos # | |||||
Defined in Text.Megaparsec.Pos | |||||
| Eq SourcePos # | |||||
| Ord SourcePos # | |||||
| Data SourcePos # | |||||
Defined in Text.Megaparsec.Pos Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SourcePos -> c SourcePos gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SourcePos toConstr :: SourcePos -> Constr dataTypeOf :: SourcePos -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SourcePos) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SourcePos) gmapT :: (forall b. Data b => b -> b) -> SourcePos -> SourcePos gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SourcePos -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SourcePos -> r gmapQ :: (forall d. Data d => d -> u) -> SourcePos -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> SourcePos -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> SourcePos -> m SourcePos gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SourcePos -> m SourcePos gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SourcePos -> m SourcePos | |||||
| Generic SourcePos # | |||||
Defined in Text.Megaparsec.Pos Associated Types
| |||||
| Read SourcePos # | |||||
Defined in Text.Megaparsec.Pos | |||||
| Show SourcePos # | |||||
| type Rep SourcePos # | |||||
Defined in Text.Megaparsec.Pos type Rep SourcePos = D1 ('MetaData "SourcePos" "Text.Megaparsec.Pos" "megaparsec-9.8.3-3Zvp5reuTK9FnjvhWkcJFI" 'False) (C1 ('MetaCons "SourcePos" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just "sourceLine") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Pos) :*: S1 ('MetaSel ('Just "sourceColumn") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Pos)))) | |||||
data DependencyType #
Constructors
| AllSucceed | |
| AllFinish |
Instances
| Eq DependencyType # | |
Defined in Test.Tasty.Core Methods (==) :: DependencyType -> DependencyType -> Bool (/=) :: DependencyType -> DependencyType -> Bool | |
| Read DependencyType # | |
Defined in Test.Tasty.Core Methods readsPrec :: Int -> ReadS DependencyType readList :: ReadS [DependencyType] readPrec :: ReadPrec DependencyType readListPrec :: ReadPrec [DependencyType] | |
| Show DependencyType # | |
Defined in Test.Tasty.Core Methods showsPrec :: Int -> DependencyType -> ShowS show :: DependencyType -> String showList :: [DependencyType] -> ShowS | |
Instances
| Eq Timeout # | |
| Ord Timeout # | |
Defined in Test.Tasty.Options.Core | |
| Show Timeout # | |
| IsOption Timeout # | |
Defined in Test.Tasty.Options.Core Methods parseValue :: String -> Maybe Timeout optionName :: Tagged Timeout String optionHelp :: Tagged Timeout String showDefaultValue :: Timeout -> Maybe String optionCLParser :: Parser Timeout | |
class Assertable t where #
Instances
| Assertable String # | |
Defined in Test.Tasty.HUnit.Orig | |
| Assertable () # | |
Defined in Test.Tasty.HUnit.Orig | |
| Assertable Bool # | |
Defined in Test.Tasty.HUnit.Orig | |
| Assertable t => Assertable (IO t) # | |
Defined in Test.Tasty.HUnit.Orig | |
class AssertionPredicable t where #
Methods
assertionPredicate :: t -> IO Bool #
Instances
| AssertionPredicable Bool # | |
Defined in Test.Tasty.HUnit.Orig Methods assertionPredicate :: Bool -> IO Bool # | |
| AssertionPredicable t => AssertionPredicable (IO t) # | |
Defined in Test.Tasty.HUnit.Orig Methods assertionPredicate :: IO t -> IO Bool # | |
type AssertionPredicate = IO Bool #
data HUnitFailure #
Constructors
| HUnitFailure (Maybe SrcLoc) String |
Instances
| Eq HUnitFailure # | |
Defined in Test.Tasty.HUnit.Orig | |
| Exception HUnitFailure # | |
Defined in Test.Tasty.HUnit.Orig Methods toException :: HUnitFailure -> SomeException fromException :: SomeException -> Maybe HUnitFailure displayException :: HUnitFailure -> String backtraceDesired :: HUnitFailure -> Bool | |
| Show HUnitFailure # | |
Defined in Test.Tasty.HUnit.Orig Methods showsPrec :: Int -> HUnitFailure -> ShowS show :: HUnitFailure -> String showList :: [HUnitFailure] -> ShowS | |
System.Console.CmdArgs.Explicit
flagHelpFormat :: (HelpFormat -> TextFormat -> a -> a) -> Flag a #
flagHelpSimple :: (a -> a) -> Flag a #
flagNumericVersion :: (a -> a) -> Flag a #
flagVersion :: (a -> a) -> Flag a #
flagsVerbosity :: (Verbosity -> a -> a) -> [Flag a] #
processArgs :: Mode a -> IO a #
processValue :: Mode a -> [String] -> a #
processValueIO :: Mode a -> [String] -> IO a #
expandArgsAt :: [String] -> IO [String] #
helpText :: [String] -> HelpFormat -> Mode a -> [Text] #
fromFlagOpt :: FlagInfo -> String #
remapUpdate :: (a -> b) -> (b -> (a, a -> b)) -> Update a -> Update b #
Constructors
| CompleteValue String | |
| CompleteFile String FilePath | |
| CompleteDir String FilePath |
data HelpFormat #
Instances
| Default HelpFormat # | |
Defined in System.Console.CmdArgs.Explicit.Help Methods def :: HelpFormat | |
| Eq HelpFormat # | |
Defined in System.Console.CmdArgs.Explicit.Help | |
| Ord HelpFormat # | |
Defined in System.Console.CmdArgs.Explicit.Help Methods compare :: HelpFormat -> HelpFormat -> Ordering # (<) :: HelpFormat -> HelpFormat -> Bool # (<=) :: HelpFormat -> HelpFormat -> Bool # (>) :: HelpFormat -> HelpFormat -> Bool # (>=) :: HelpFormat -> HelpFormat -> Bool # max :: HelpFormat -> HelpFormat -> HelpFormat # min :: HelpFormat -> HelpFormat -> HelpFormat # | |
| Bounded HelpFormat # | |
Defined in System.Console.CmdArgs.Explicit.Help | |
| Enum HelpFormat # | |
Defined in System.Console.CmdArgs.Explicit.Help Methods succ :: HelpFormat -> HelpFormat pred :: HelpFormat -> HelpFormat toEnum :: Int -> HelpFormat fromEnum :: HelpFormat -> Int enumFrom :: HelpFormat -> [HelpFormat] enumFromThen :: HelpFormat -> HelpFormat -> [HelpFormat] enumFromTo :: HelpFormat -> HelpFormat -> [HelpFormat] enumFromThenTo :: HelpFormat -> HelpFormat -> HelpFormat -> [HelpFormat] | |
| Read HelpFormat # | |
Defined in System.Console.CmdArgs.Explicit.Help Methods readsPrec :: Int -> ReadS HelpFormat readList :: ReadS [HelpFormat] readPrec :: ReadPrec HelpFormat readListPrec :: ReadPrec [HelpFormat] | |
| Show HelpFormat # | |
Defined in System.Console.CmdArgs.Explicit.Help Methods showsPrec :: Int -> HelpFormat -> ShowS show :: HelpFormat -> String showList :: [HelpFormat] -> ShowS | |
Instances
| Remap Arg # | |
Defined in System.Console.CmdArgs.Explicit.Type | |
| Packer a => Packer (Arg a) # | |
Defined in System.Console.CmdArgs.Helper | |
| Show (Arg a) # | |
Constructors
| Flag | |
Instances
| Remap Flag # | |
Defined in System.Console.CmdArgs.Explicit.Type | |
| Packer a => Packer (Flag a) # | |
Defined in System.Console.CmdArgs.Helper | |
| Show (Flag a) # | |
Constructors
| FlagReq | |
| FlagOpt String | |
| FlagOptRare String | |
| FlagNone |
Constructors
| Group | |
Fields
| |
Constructors
| Mode | |
Fields
| |
Instances
| Remap Mode # | |
Defined in System.Console.CmdArgs.Explicit.Type | |
| Packer a => Packer (Mode a) # | |
Defined in System.Console.CmdArgs.Helper | |
| Show (Mode a) # | |
class Remap (m :: Type -> Type) where #
Instances
| Remap Arg # | |
Defined in System.Console.CmdArgs.Explicit.Type | |
| Remap Flag # | |
Defined in System.Console.CmdArgs.Explicit.Type | |
| Remap Mode # | |
Defined in System.Console.CmdArgs.Explicit.Type | |