This file is indexed.

/usr/share/doc/libghc-hledger-lib-doc/html/Hledger-Data-Posting.html is in libghc-hledger-lib-doc 0.17-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Hledger.Data.Posting</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Hledger-Data-Posting.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Hledger-Data-Posting.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hledger-lib-0.17: Core data types, parsers and utilities for the hledger accounting tool.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Hledger.Data.Posting</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A <code><a href="Hledger-Data-Types.html#t:Posting">Posting</a></code> represents a <code><a href="Hledger-Data-Types.html#t:MixedAmount">MixedAmount</a></code> being added to or subtracted from a
single <code><a href="Hledger-Data-Types.html#t:Account">Account</a></code>.  Each <code><a href="Hledger-Data-Types.html#t:Transaction">Transaction</a></code> contains two or more postings which
should add up to 0. Postings also reference their parent transaction, so
we can get a date or description for a posting (from the transaction).
Strictly speaking, &quot;entry&quot; is probably a better name for these.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:nullposting">nullposting</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a></li><li class="src short"><a href="#v:showPosting">showPosting</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:showPostingForRegister">showPostingForRegister</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:isReal">isReal</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:isVirtual">isVirtual</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:isBalancedVirtual">isBalancedVirtual</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:hasAmount">hasAmount</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:accountNamesFromPostings">accountNamesFromPostings</a> :: [<a href="Hledger-Data-Types.html#t:Posting">Posting</a>] -&gt; [<a href="Hledger-Data-Types.html#t:AccountName">AccountName</a>]</li><li class="src short"><a href="#v:sumPostings">sumPostings</a> :: [<a href="Hledger-Data-Types.html#t:Posting">Posting</a>] -&gt; <a href="Hledger-Data-Types.html#t:MixedAmount">MixedAmount</a></li><li class="src short"><a href="#v:postingDate">postingDate</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:postingCleared">postingCleared</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:isPostingInDateSpan">isPostingInDateSpan</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -&gt; <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:isEmptyPosting">isEmptyPosting</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:postingsDateSpan">postingsDateSpan</a> :: [<a href="Hledger-Data-Types.html#t:Posting">Posting</a>] -&gt; <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a></li><li class="src short"><a href="#v:accountNamePostingType">accountNamePostingType</a> :: <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:PostingType">PostingType</a></li><li class="src short"><a href="#v:accountNameWithoutPostingType">accountNameWithoutPostingType</a> :: <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a></li><li class="src short"><a href="#v:accountNameWithPostingType">accountNameWithPostingType</a> :: <a href="Hledger-Data-Types.html#t:PostingType">PostingType</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a></li><li class="src short"><a href="#v:joinAccountNames">joinAccountNames</a> :: <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a></li><li class="src short"><a href="#v:concatAccountNames">concatAccountNames</a> :: [<a href="Hledger-Data-Types.html#t:AccountName">AccountName</a>] -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a></li><li class="src short"><a href="#v:accountNameApplyAliases">accountNameApplyAliases</a> :: [(<a href="Hledger-Data-Types.html#t:AccountName">AccountName</a>, <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a>)] -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a></li><li class="src short"><a href="#v:tests_Hledger_Data_Posting">tests_Hledger_Data_Posting</a> :: <a href="/usr/share/doc/libghc-hunit-doc/html/Test-HUnit-Base.html#t:Test">Test</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:nullposting" class="def">nullposting</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a><a href="src/Hledger-Data-Posting.html#nullposting" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:showPosting" class="def">showPosting</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Hledger-Data-Posting.html#showPosting" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:showPostingForRegister" class="def">showPostingForRegister</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Hledger-Data-Posting.html#showPostingForRegister" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:isReal" class="def">isReal</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Posting.html#isReal" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:isVirtual" class="def">isVirtual</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Posting.html#isVirtual" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:isBalancedVirtual" class="def">isBalancedVirtual</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Posting.html#isBalancedVirtual" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:hasAmount" class="def">hasAmount</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Posting.html#hasAmount" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:accountNamesFromPostings" class="def">accountNamesFromPostings</a> :: [<a href="Hledger-Data-Types.html#t:Posting">Posting</a>] -&gt; [<a href="Hledger-Data-Types.html#t:AccountName">AccountName</a>]<a href="src/Hledger-Data-Posting.html#accountNamesFromPostings" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:sumPostings" class="def">sumPostings</a> :: [<a href="Hledger-Data-Types.html#t:Posting">Posting</a>] -&gt; <a href="Hledger-Data-Types.html#t:MixedAmount">MixedAmount</a><a href="src/Hledger-Data-Posting.html#sumPostings" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:postingDate" class="def">postingDate</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4/Data-Time-Calendar.html#t:Day">Day</a><a href="src/Hledger-Data-Posting.html#postingDate" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:postingCleared" class="def">postingCleared</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Posting.html#postingCleared" class="link">Source</a></p><div class="doc"><p>Is this posting cleared? If this posting was individually marked
 as cleared, returns True. Otherwise, return the parent
 transaction's cleared status or, if there is no parent
 transaction, return False.
</p></div></div><div class="top"><p class="src"><a name="v:isPostingInDateSpan" class="def">isPostingInDateSpan</a> :: <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a> -&gt; <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Posting.html#isPostingInDateSpan" class="link">Source</a></p><div class="doc"><p>Does this posting fall within the given date span ?
</p></div></div><div class="top"><p class="src"><a name="v:isEmptyPosting" class="def">isEmptyPosting</a> :: <a href="Hledger-Data-Types.html#t:Posting">Posting</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Posting.html#isEmptyPosting" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:postingsDateSpan" class="def">postingsDateSpan</a> :: [<a href="Hledger-Data-Types.html#t:Posting">Posting</a>] -&gt; <a href="Hledger-Data-Types.html#t:DateSpan">DateSpan</a><a href="src/Hledger-Data-Posting.html#postingsDateSpan" class="link">Source</a></p><div class="doc"><p>Get the minimal date span which contains all the postings, or
 DateSpan Nothing Nothing if there are none.
</p></div></div><div class="top"><p class="src"><a name="v:accountNamePostingType" class="def">accountNamePostingType</a> :: <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:PostingType">PostingType</a><a href="src/Hledger-Data-Posting.html#accountNamePostingType" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:accountNameWithoutPostingType" class="def">accountNameWithoutPostingType</a> :: <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a><a href="src/Hledger-Data-Posting.html#accountNameWithoutPostingType" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:accountNameWithPostingType" class="def">accountNameWithPostingType</a> :: <a href="Hledger-Data-Types.html#t:PostingType">PostingType</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a><a href="src/Hledger-Data-Posting.html#accountNameWithPostingType" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:joinAccountNames" class="def">joinAccountNames</a> :: <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a><a href="src/Hledger-Data-Posting.html#joinAccountNames" class="link">Source</a></p><div class="doc"><p>Prefix one account name to another, preserving posting type
 indicators like concatAccountNames.
</p></div></div><div class="top"><p class="src"><a name="v:concatAccountNames" class="def">concatAccountNames</a> :: [<a href="Hledger-Data-Types.html#t:AccountName">AccountName</a>] -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a><a href="src/Hledger-Data-Posting.html#concatAccountNames" class="link">Source</a></p><div class="doc"><p>Join account names into one. If any of them has () or [] posting type
 indicators, these (the first type encountered) will also be applied to
 the resulting account name.
</p></div></div><div class="top"><p class="src"><a name="v:accountNameApplyAliases" class="def">accountNameApplyAliases</a> :: [(<a href="Hledger-Data-Types.html#t:AccountName">AccountName</a>, <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a>)] -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> -&gt; <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a><a href="src/Hledger-Data-Posting.html#accountNameApplyAliases" class="link">Source</a></p><div class="doc"><p>Rewrite an account name using the first applicable alias from the given list, if any.
</p></div></div><div class="top"><p class="src"><a name="v:tests_Hledger_Data_Posting" class="def">tests_Hledger_Data_Posting</a> :: <a href="/usr/share/doc/libghc-hunit-doc/html/Test-HUnit-Base.html#t:Test">Test</a><a href="src/Hledger-Data-Posting.html#tests_Hledger_Data_Posting" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>