/usr/share/doc/libghc-hledger-lib-doc/html/Hledger-Read-JournalReader.html is in libghc-hledger-lib-doc 1.0.1-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 23 24 25 26 27 28 29 30 31 32 33 34 35 | <!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.Read.JournalReader</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Hledger-Read-JournalReader.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Hledger-Read-JournalReader.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-1.0.1: Core data types, parsers and functionality for the hledger accounting tools</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Hledger.Read.JournalReader</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Reader</a></li><li><a href="#g:2">Parsing utils</a></li><li><a href="#g:3">Parsers used elsewhere</a></li><li><a href="#g:4">Tests</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A reader for hledger's journal file format
(<a href="http://hledger.org/MANUAL.html#the-journal-file">http://hledger.org/MANUAL.html#the-journal-file</a>). hledger's journal
format is a compatible subset of c++ ledger's
(<a href="http://ledger-cli.org/3.0/doc/ledger3.html#Journal-Format">http://ledger-cli.org/3.0/doc/ledger3.html#Journal-Format</a>), so this
reader should handle many ledger files as well. Example:</p><pre>2012/3/24 gift
expenses:gifts $10
assets:cash
</pre><p>Journal format supports the include directive which can read files in
other formats, so the other file format readers need to be importable
here. Some low-level journal syntax parsers which those readers also
use are therefore defined separately in Hledger.Read.Common, avoiding
import cycles.</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:reader">reader</a> :: <a href="Hledger-Data-Types.html#t:Reader">Reader</a></li><li class="src short"><a href="#v:genericSourcePos">genericSourcePos</a> :: <a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Pos.html#t:SourcePos">SourcePos</a> -> <a href="Hledger-Data-Types.html#t:GenericSourcePos">GenericSourcePos</a></li><li class="src short"><a href="#v:parseAndFinaliseJournal">parseAndFinaliseJournal</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:ParsedJournal">ParsedJournal</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="Hledger-Data-Types.html#t:Journal">Journal</a></li><li class="src short"><a href="#v:runJournalParser">runJournalParser</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Hledger-Utils-Parse.html#t:TextParser">TextParser</a> m a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> (<a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Error.html#t:ParseError">ParseError</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> <a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Error.html#t:Dec">Dec</a>) a)</li><li class="src short"><a href="#v:rjp">rjp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Hledger-Utils-Parse.html#t:TextParser">TextParser</a> m a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> (<a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Error.html#t:ParseError">ParseError</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> <a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Error.html#t:Dec">Dec</a>) a)</li><li class="src short"><a href="#v:runErroringJournalParser">runErroringJournalParser</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> a)</li><li class="src short"><a href="#v:rejp">rejp</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> a)</li><li class="src short"><a href="#v:getParentAccount">getParentAccount</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a></li><li class="src short"><a href="#v:journalp">journalp</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:ParsedJournal">ParsedJournal</a></li><li class="src short"><a href="#v:directivep">directivep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> ()</li><li class="src short"><a href="#v:defaultyeardirectivep">defaultyeardirectivep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> ()</li><li class="src short"><a href="#v:marketpricedirectivep">marketpricedirectivep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:MarketPrice">MarketPrice</a></li><li class="src short"><a href="#v:datetimep">datetimep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a></li><li class="src short"><a href="#v:datep">datep</a> :: <a href="Hledger-Utils-Parse.html#t:JournalStateParser">JournalStateParser</a> m <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-Calendar.html#t:Day">Day</a></li><li class="src short"><a href="#v:modifiedaccountnamep">modifiedaccountnamep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a></li><li class="src short"><a href="#v:postingp">postingp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:Posting">Posting</a></li><li class="src short"><a href="#v:statusp">statusp</a> :: <a href="Hledger-Utils-Parse.html#t:TextParser">TextParser</a> m <a href="Hledger-Data-Types.html#t:ClearedStatus">ClearedStatus</a></li><li class="src short"><a href="#v:emptyorcommentlinep">emptyorcommentlinep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> ()</li><li class="src short"><a href="#v:followingcommentp">followingcommentp</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li class="src short"><a href="#v:accountaliasp">accountaliasp</a> :: <a href="Hledger-Utils-Parse.html#t:TextParser">TextParser</a> m <a href="Hledger-Data-Types.html#t:AccountAlias">AccountAlias</a></li><li class="src short"><a href="#v:tests_Hledger_Read_JournalReader">tests_Hledger_Read_JournalReader</a> :: <a href="file:///usr/share/doc/libghc-hunit-doc/html/Test-HUnit-Base.html#t:Test">Test</a></li></ul></div><div id="interface"><h1 id="g:1">Reader</h1><div class="top"><p class="src"><a id="v:reader" class="def">reader</a> :: <a href="Hledger-Data-Types.html#t:Reader">Reader</a> <a href="src/Hledger-Read-JournalReader.html#reader" class="link">Source</a> <a href="#v:reader" class="selflink">#</a></p></div><h1 id="g:2">Parsing utils</h1><div class="top"><p class="src"><a id="v:genericSourcePos" class="def">genericSourcePos</a> :: <a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Pos.html#t:SourcePos">SourcePos</a> -> <a href="Hledger-Data-Types.html#t:GenericSourcePos">GenericSourcePos</a> <a href="src/Hledger-Read-Common.html#genericSourcePos" class="link">Source</a> <a href="#v:genericSourcePos" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:parseAndFinaliseJournal" class="def">parseAndFinaliseJournal</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:ParsedJournal">ParsedJournal</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> <a href="Hledger-Data-Types.html#t:Journal">Journal</a> <a href="src/Hledger-Read-Common.html#parseAndFinaliseJournal" class="link">Source</a> <a href="#v:parseAndFinaliseJournal" class="selflink">#</a></p><div class="doc"><p>Given a parsec ParsedJournal parser, file path and data string,
parse and post-process a ready-to-use Journal, or give an error.</p></div></div><div class="top"><p class="src"><a id="v:runJournalParser" class="def">runJournalParser</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Hledger-Utils-Parse.html#t:TextParser">TextParser</a> m a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> (<a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Error.html#t:ParseError">ParseError</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> <a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Error.html#t:Dec">Dec</a>) a) <a href="src/Hledger-Read-Common.html#runJournalParser" class="link">Source</a> <a href="#v:runJournalParser" class="selflink">#</a></p><div class="doc"><p>Run a journal parser with a null journal-parsing state.</p></div></div><div class="top"><p class="src"><a id="v:rjp" class="def">rjp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Hledger-Utils-Parse.html#t:TextParser">TextParser</a> m a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> (<a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Error.html#t:ParseError">ParseError</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> <a href="file:///usr/share/doc/libghc-megaparsec-doc/html/Text-Megaparsec-Error.html#t:Dec">Dec</a>) a) <a href="src/Hledger-Read-Common.html#rjp" class="link">Source</a> <a href="#v:rjp" class="selflink">#</a></p><div class="doc"><p>Run a journal parser with a null journal-parsing state.</p></div></div><div class="top"><p class="src"><a id="v:runErroringJournalParser" class="def">runErroringJournalParser</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> a) <a href="src/Hledger-Read-Common.html#runErroringJournalParser" class="link">Source</a> <a href="#v:runErroringJournalParser" class="selflink">#</a></p><div class="doc"><p>Run an error-raising journal parser with a null journal-parsing state.</p></div></div><div class="top"><p class="src"><a id="v:rejp" class="def">rejp</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> a -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> a) <a href="src/Hledger-Read-Common.html#rejp" class="link">Source</a> <a href="#v:rejp" class="selflink">#</a></p><div class="doc"><p>Run an error-raising journal parser with a null journal-parsing state.</p></div></div><h1 id="g:3">Parsers used elsewhere</h1><div class="top"><p class="src"><a id="v:getParentAccount" class="def">getParentAccount</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> <a href="src/Hledger-Read-Common.html#getParentAccount" class="link">Source</a> <a href="#v:getParentAccount" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:journalp" class="def">journalp</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:ParsedJournal">ParsedJournal</a> <a href="src/Hledger-Read-JournalReader.html#journalp" class="link">Source</a> <a href="#v:journalp" class="selflink">#</a></p><div class="doc"><p>A journal parser. Accumulates and returns a <a href="ParsedJournal.html">ParsedJournal</a>,
which should be finalised/validated before use.</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>rejp (journalp <* eof) "2015/1/1\n a 0\n"
</code></strong>Right Journal with 1 transactions, 1 accounts
</pre></div></div><div class="top"><p class="src"><a id="v:directivep" class="def">directivep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> () <a href="src/Hledger-Read-JournalReader.html#directivep" class="link">Source</a> <a href="#v:directivep" class="selflink">#</a></p><div class="doc"><p>Parse any journal directive and update the parse state accordingly.
Cf <a href="http://hledger.org/manual.html#directives">http://hledger.org/manual.html#directives</a>,
<a href="http://ledger-cli.org/3.0/doc/ledger3.html#Command-Directives">http://ledger-cli.org/3.0/doc/ledger3.html#Command-Directives</a></p></div></div><div class="top"><p class="src"><a id="v:defaultyeardirectivep" class="def">defaultyeardirectivep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> () <a href="src/Hledger-Read-JournalReader.html#defaultyeardirectivep" class="link">Source</a> <a href="#v:defaultyeardirectivep" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:marketpricedirectivep" class="def">marketpricedirectivep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:MarketPrice">MarketPrice</a> <a href="src/Hledger-Read-JournalReader.html#marketpricedirectivep" class="link">Source</a> <a href="#v:marketpricedirectivep" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:datetimep" class="def">datetimep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a> <a href="src/Hledger-Read-Common.html#datetimep" class="link">Source</a> <a href="#v:datetimep" class="selflink">#</a></p><div class="doc"><p>Parse a date and time in YYYY<em>MM</em>DD HH:MM[:SS][+-ZZZZ] format.
Hyphen (-) and period (.) are also allowed as date separators.
The year may be omitted if a default year has been set.
Seconds are optional.
The timezone is optional and ignored (the time is always interpreted as a local time).
Leading zeroes may be omitted (except in a timezone).</p></div></div><div class="top"><p class="src"><a id="v:datep" class="def">datep</a> :: <a href="Hledger-Utils-Parse.html#t:JournalStateParser">JournalStateParser</a> m <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-Calendar.html#t:Day">Day</a> <a href="src/Hledger-Read-Common.html#datep" class="link">Source</a> <a href="#v:datep" class="selflink">#</a></p><div class="doc"><p>Parse a date in YYYY<em>MM</em>DD format.
Hyphen (-) and period (.) are also allowed as separators.
The year may be omitted if a default year has been set.
Leading zeroes may be omitted.</p></div></div><div class="top"><p class="src"><a id="v:modifiedaccountnamep" class="def">modifiedaccountnamep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:AccountName">AccountName</a> <a href="src/Hledger-Read-Common.html#modifiedaccountnamep" class="link">Source</a> <a href="#v:modifiedaccountnamep" class="selflink">#</a></p><div class="doc"><pre>> parsewith twoorthreepartdatestringp "2016/01/2"</pre><p>Right "2016<em>01</em>2"
twoorthreepartdatestringp = do
n1 <- some digitChar
c <- datesepchar
n2 <- some digitChar
mn3 <a href="-">optional $ char c</a>> some digitChar
return $ n1 ++ c:n2 ++ maybe "" (c:) mn3</p><p>Parse an account name, then apply any parent account prefix and/or account aliases currently in effect.</p></div></div><div class="top"><p class="src"><a id="v:postingp" class="def">postingp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.6.0.1/Data-Time-Calendar.html#t:Day">Day</a> -> <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="Hledger-Data-Types.html#t:Posting">Posting</a> <a href="src/Hledger-Read-JournalReader.html#postingp" class="link">Source</a> <a href="#v:postingp" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:statusp" class="def">statusp</a> :: <a href="Hledger-Utils-Parse.html#t:TextParser">TextParser</a> m <a href="Hledger-Data-Types.html#t:ClearedStatus">ClearedStatus</a> <a href="src/Hledger-Read-Common.html#statusp" class="link">Source</a> <a href="#v:statusp" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:emptyorcommentlinep" class="def">emptyorcommentlinep</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> () <a href="src/Hledger-Read-Common.html#emptyorcommentlinep" class="link">Source</a> <a href="#v:emptyorcommentlinep" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:followingcommentp" class="def">followingcommentp</a> :: <a href="Hledger-Utils-Parse.html#t:ErroringJournalParser">ErroringJournalParser</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/Hledger-Read-Common.html#followingcommentp" class="link">Source</a> <a href="#v:followingcommentp" class="selflink">#</a></p><div class="doc"><p>Parse a possibly multi-line comment following a semicolon.</p></div></div><div class="top"><p class="src"><a id="v:accountaliasp" class="def">accountaliasp</a> :: <a href="Hledger-Utils-Parse.html#t:TextParser">TextParser</a> m <a href="Hledger-Data-Types.html#t:AccountAlias">AccountAlias</a> <a href="src/Hledger-Read-JournalReader.html#accountaliasp" class="link">Source</a> <a href="#v:accountaliasp" class="selflink">#</a></p></div><h1 id="g:4">Tests</h1><div class="top"><p class="src"><a id="v:tests_Hledger_Read_JournalReader" class="def">tests_Hledger_Read_JournalReader</a> :: <a href="file:///usr/share/doc/libghc-hunit-doc/html/Test-HUnit-Base.html#t:Test">Test</a> <a href="src/Hledger-Read-JournalReader.html#tests_Hledger_Read_JournalReader" class="link">Source</a> <a href="#v:tests_Hledger_Read_JournalReader" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|