Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6a806edc410677c1fd1cd473b6901408 > files > 76

ghc-hledger-lib-devel-0.14-2.fc15.i686.rpm

<!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.Utils</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-Utils.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Hledger-Data-Utils.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.14: Reusable types and utilities for the hledger accounting tool and financial apps in general.</p></div><div id="content"><div id="module-header"><p class="caption">Hledger.Data.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Standard imports and utilities which are useful everywhere, or needed low
in the module hierarchy. This is the bottom of hledger's module graph.
</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">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html">Data.Char</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad.html">Control.Monad</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-List.html">Data.List</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html">Data.Maybe</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html">Data.Ord</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html">Data.Tree</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-Clock.html">Data.Time.Clock</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-Calendar.html">Data.Time.Calendar</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-LocalTime.html">Data.Time.LocalTime</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Debug-Trace.html">Debug.Trace</a></li><li class="src short"><a href="#v:underline">underline</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:unbracket">unbracket</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:concatTopPadded">concatTopPadded</a> :: [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:concatBottomPadded">concatBottomPadded</a> :: [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:vConcatRightAligned">vConcatRightAligned</a> :: [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:padtop">padtop</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:padbottom">padbottom</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:padleft">padleft</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:padright">padright</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:cliptopleft">cliptopleft</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:fitto">fitto</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:PlatformString">PlatformString</a> = <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:fromPlatformString">fromPlatformString</a> :: <a href="Hledger-Data-Utils.html#t:PlatformString">PlatformString</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:toPlatformString">toPlatformString</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Hledger-Data-Utils.html#t:PlatformString">PlatformString</a></li><li class="src short"><a href="#v:error-39-">error'</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; a</li><li class="src short"><a href="#v:userError-39-">userError'</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO-Error.html#t:IOError">IOError</a></li><li class="src short"><a href="#v:difforzero">difforzero</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Num">Num</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; a -&gt; a -&gt; a</li><li class="src short"><a href="#v:containsRegex">containsRegex</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:splitAtElement">splitAtElement</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; a -&gt; [a] -&gt; [[a]]</li><li class="src short"><a href="#v:leaves">leaves</a> ::  <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; [a]</li><li class="src short"><a href="#v:subtreeat">subtreeat</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; a -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a)</li><li class="src short"><a href="#v:subtreeinforest">subtreeinforest</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; a -&gt; [<a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a)</li><li class="src short"><a href="#v:treeprune">treeprune</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a</li><li class="src short"><a href="#v:treemap">treemap</a> ::  (a -&gt; b) -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> b</li><li class="src short"><a href="#v:treefilter">treefilter</a> ::  (a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a</li><li class="src short"><a href="#v:treeany">treeany</a> ::  (a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:showtree">showtree</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:showforest">showforest</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Forest">Forest</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:strace">strace</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; a -&gt; a</li><li class="src short"><a href="#v:ltrace">ltrace</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; a -&gt; a</li><li class="src short"><a href="#v:mtrace">mtrace</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a) =&gt; a -&gt; m a</li><li class="src short"><a href="#v:choice-39-">choice'</a> ::  [<a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> tok st a] -&gt; <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> tok st a</li><li class="src short"><a href="#v:parsewith">parsewith</a> ::  <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:Parser">Parser</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a</li><li class="src short"><a href="#v:parseWithCtx">parseWithCtx</a> ::  b -&gt; <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a> b a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a</li><li class="src short"><a href="#v:fromparse">fromparse</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a -&gt; a</li><li class="src short"><a href="#v:nonspace">nonspace</a> ::  <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a> st <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:spacenonewline">spacenonewline</a> ::  <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a> st <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:restofline">restofline</a> ::  <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a> st <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:getCurrentLocalTime">getCurrentLocalTime</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a></li><li class="src short"><a href="#v:tname">tname</a> :: <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:tflatten">tflatten</a> :: <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a>]</li><li class="src short"><a href="#v:tfilter">tfilter</a> :: (<a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a></li><li class="src short"><a href="#v:is">is</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a) =&gt; a -&gt; a -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Lang.html#t:Assertion">Assertion</a></li><li class="src short"><a href="#v:assertParse">assertParse</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Lang.html#t:Assertion">Assertion</a></li><li class="src short"><a href="#v:assertParseEqual">assertParseEqual</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a -&gt; a -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Lang.html#t:Assertion">Assertion</a></li><li class="src short"><a href="#v:printParseError">printParseError</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:isLeft">isLeft</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> a b -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:isRight">isRight</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> a b -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:applyN">applyN</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; (a -&gt; a) -&gt; a -&gt; a</li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Printf.html">Text.Printf</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/regexpr-0.5.3/Text-RegexPR.html">Text.RegexPR</a></li><li class="src short">module <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit.html">Test.HUnit</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html">Data.Char</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad.html">Control.Monad</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-List.html">Data.List</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html">Data.Maybe</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html">Data.Ord</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html">Data.Tree</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-Clock.html">Data.Time.Clock</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-Calendar.html">Data.Time.Calendar</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-LocalTime.html">Data.Time.LocalTime</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Debug-Trace.html">Debug.Trace</a></p></div><div class="top"><p class="src"><a name="v:underline" class="def">underline</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#underline" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:unbracket" class="def">unbracket</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#unbracket" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:concatTopPadded" class="def">concatTopPadded</a> :: [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#concatTopPadded" class="link">Source</a></p><div class="doc"><p>Join multi-line strings as side-by-side rectangular strings of the same height, top-padded.
</p></div></div><div class="top"><p class="src"><a name="v:concatBottomPadded" class="def">concatBottomPadded</a> :: [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#concatBottomPadded" class="link">Source</a></p><div class="doc"><p>Join multi-line strings as side-by-side rectangular strings of the same height, bottom-padded.
</p></div></div><div class="top"><p class="src"><a name="v:vConcatRightAligned" class="def">vConcatRightAligned</a> :: [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#vConcatRightAligned" class="link">Source</a></p><div class="doc"><p>Compose strings vertically and right-aligned.
</p></div></div><div class="top"><p class="src"><a name="v:padtop" class="def">padtop</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#padtop" class="link">Source</a></p><div class="doc"><p>Convert a multi-line string to a rectangular string top-padded to the specified height.
</p></div></div><div class="top"><p class="src"><a name="v:padbottom" class="def">padbottom</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#padbottom" class="link">Source</a></p><div class="doc"><p>Convert a multi-line string to a rectangular string bottom-padded to the specified height.
</p></div></div><div class="top"><p class="src"><a name="v:padleft" class="def">padleft</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#padleft" class="link">Source</a></p><div class="doc"><p>Convert a multi-line string to a rectangular string left-padded to the specified width.
</p></div></div><div class="top"><p class="src"><a name="v:padright" class="def">padright</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#padright" class="link">Source</a></p><div class="doc"><p>Convert a multi-line string to a rectangular string right-padded to the specified width.
</p></div></div><div class="top"><p class="src"><a name="v:cliptopleft" class="def">cliptopleft</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#cliptopleft" class="link">Source</a></p><div class="doc"><p>Clip a multi-line string to the specified width and height from the top left.
</p></div></div><div class="top"><p class="src"><a name="v:fitto" class="def">fitto</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#fitto" class="link">Source</a></p><div class="doc"><p>Clip and pad a multi-line string to fill the specified width and height.
</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:PlatformString" class="def">PlatformString</a> = <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#PlatformString" class="link">Source</a></p><div class="doc"><p>A platform string is a string value from or for the operating system,
 such as a file path or command-line argument (or environment variable's
 name or value ?). On some platforms (such as unix) these are not real
 unicode strings but have some encoding such as UTF-8. This alias does
 no type enforcement but aids code clarity.
</p></div></div><div class="top"><p class="src"><a name="v:fromPlatformString" class="def">fromPlatformString</a> :: <a href="Hledger-Data-Utils.html#t:PlatformString">PlatformString</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#fromPlatformString" class="link">Source</a></p><div class="doc"><p>Convert a possibly encoded platform string to a real unicode string.
 We decode the UTF-8 encoding recommended for unix systems
 (cf http:<em></em>www.dwheeler.com<em>essays</em>fixing-unix-linux-filenames.html)
 and leave anything else unchanged.
</p></div></div><div class="top"><p class="src"><a name="v:toPlatformString" class="def">toPlatformString</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Hledger-Data-Utils.html#t:PlatformString">PlatformString</a><a href="src/Hledger-Data-Utils.html#toPlatformString" class="link">Source</a></p><div class="doc"><p>Convert a unicode string to a possibly encoded platform string.
 On unix we encode with the recommended UTF-8
 (cf http:<em></em>www.dwheeler.com<em>essays</em>fixing-unix-linux-filenames.html)
 and elsewhere we leave it unchanged.
</p></div></div><div class="top"><p class="src"><a name="v:error-39-" class="def">error'</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; a<a href="src/Hledger-Data-Utils.html#error%27" class="link">Source</a></p><div class="doc"><p>A version of error that's better at displaying unicode.
</p></div></div><div class="top"><p class="src"><a name="v:userError-39-" class="def">userError'</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO-Error.html#t:IOError">IOError</a><a href="src/Hledger-Data-Utils.html#userError%27" class="link">Source</a></p><div class="doc"><p>A version of userError that's better at displaying unicode.
</p></div></div><div class="top"><p class="src"><a name="v:difforzero" class="def">difforzero</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Num">Num</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; a -&gt; a -&gt; a<a href="src/Hledger-Data-Utils.html#difforzero" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:containsRegex" class="def">containsRegex</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Utils.html#containsRegex" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:splitAtElement" class="def">splitAtElement</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; a -&gt; [a] -&gt; [[a]]<a href="src/Hledger-Data-Utils.html#splitAtElement" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:leaves" class="def">leaves</a> ::  <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; [a]<a href="src/Hledger-Data-Utils.html#leaves" class="link">Source</a></p><div class="doc"><p>List just the leaf nodes of a tree
</p></div></div><div class="top"><p class="src"><a name="v:subtreeat" class="def">subtreeat</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; a -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a)<a href="src/Hledger-Data-Utils.html#subtreeat" class="link">Source</a></p><div class="doc"><p>get the sub-tree rooted at the first (left-most, depth-first) occurrence
 of the specified node value
</p></div></div><div class="top"><p class="src"><a name="v:subtreeinforest" class="def">subtreeinforest</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; a -&gt; [<a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a)<a href="src/Hledger-Data-Utils.html#subtreeinforest" class="link">Source</a></p><div class="doc"><p>get the sub-tree for the specified node value in the first tree in
 forest in which it occurs.
</p></div></div><div class="top"><p class="src"><a name="v:treeprune" class="def">treeprune</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a<a href="src/Hledger-Data-Utils.html#treeprune" class="link">Source</a></p><div class="doc"><p>remove all nodes past a certain depth
</p></div></div><div class="top"><p class="src"><a name="v:treemap" class="def">treemap</a> ::  (a -&gt; b) -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> b<a href="src/Hledger-Data-Utils.html#treemap" class="link">Source</a></p><div class="doc"><p>apply f to all tree nodes
</p></div></div><div class="top"><p class="src"><a name="v:treefilter" class="def">treefilter</a> ::  (a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a<a href="src/Hledger-Data-Utils.html#treefilter" class="link">Source</a></p><div class="doc"><p>remove all subtrees whose nodes do not fulfill predicate
</p></div></div><div class="top"><p class="src"><a name="v:treeany" class="def">treeany</a> ::  (a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Utils.html#treeany" class="link">Source</a></p><div class="doc"><p>is predicate true in any node of tree ?
</p></div></div><div class="top"><p class="src"><a name="v:showtree" class="def">showtree</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#showtree" class="link">Source</a></p><div class="doc"><p>show a compact ascii representation of a tree
</p></div></div><div class="top"><p class="src"><a name="v:showforest" class="def">showforest</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Forest">Forest</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#showforest" class="link">Source</a></p><div class="doc"><p>show a compact ascii representation of a forest
</p></div></div><div class="top"><p class="src"><a name="v:strace" class="def">strace</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; a -&gt; a<a href="src/Hledger-Data-Utils.html#strace" class="link">Source</a></p><div class="doc"><p>trace (print on stdout at runtime) a showable expression
 (for easily tracing in the middle of a complex expression)
</p></div></div><div class="top"><p class="src"><a name="v:ltrace" class="def">ltrace</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; a -&gt; a<a href="src/Hledger-Data-Utils.html#ltrace" class="link">Source</a></p><div class="doc"><p>labelled trace - like strace, with a label prepended
</p></div></div><div class="top"><p class="src"><a name="v:mtrace" class="def">mtrace</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a) =&gt; a -&gt; m a<a href="src/Hledger-Data-Utils.html#mtrace" class="link">Source</a></p><div class="doc"><p>monadic trace - like strace, but works as a standalone line in a monad
</p></div></div><div class="top"><p class="src"><a name="v:choice-39-" class="def">choice'</a> ::  [<a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> tok st a] -&gt; <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> tok st a<a href="src/Hledger-Data-Utils.html#choice%27" class="link">Source</a></p><div class="doc"><p>trace an expression using a custom show function
</p></div></div><div class="top"><p class="src"><a name="v:parsewith" class="def">parsewith</a> ::  <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:Parser">Parser</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a<a href="src/Hledger-Data-Utils.html#parsewith" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parseWithCtx" class="def">parseWithCtx</a> ::  b -&gt; <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a> b a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a<a href="src/Hledger-Data-Utils.html#parseWithCtx" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fromparse" class="def">fromparse</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a -&gt; a<a href="src/Hledger-Data-Utils.html#fromparse" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:nonspace" class="def">nonspace</a> ::  <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a> st <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a><a href="src/Hledger-Data-Utils.html#nonspace" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:spacenonewline" class="def">spacenonewline</a> ::  <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a> st <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a><a href="src/Hledger-Data-Utils.html#spacenonewline" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:restofline" class="def">restofline</a> ::  <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-String.html#t:GenParser">GenParser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:Char">Char</a> st <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#restofline" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:getCurrentLocalTime" class="def">getCurrentLocalTime</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/time-1.2.0.3/Data-Time-LocalTime.html#t:LocalTime">LocalTime</a><a href="src/Hledger-Data-Utils.html#getCurrentLocalTime" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:tname" class="def">tname</a> :: <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Hledger-Data-Utils.html#tname" class="link">Source</a></p><div class="doc"><p>Get a Test's label, or the empty string.
</p></div></div><div class="top"><p class="src"><a name="v:tflatten" class="def">tflatten</a> :: <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a>]<a href="src/Hledger-Data-Utils.html#tflatten" class="link">Source</a></p><div class="doc"><p>Flatten a Test containing TestLists into a list of single tests.
</p></div></div><div class="top"><p class="src"><a name="v:tfilter" class="def">tfilter</a> :: (<a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Base.html#t:Test">Test</a><a href="src/Hledger-Data-Utils.html#tfilter" class="link">Source</a></p><div class="doc"><p>Filter TestLists in a Test, recursively, preserving the structure.
</p></div></div><div class="top"><p class="src"><a name="v:is" class="def">is</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a) =&gt; a -&gt; a -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Lang.html#t:Assertion">Assertion</a><a href="src/Hledger-Data-Utils.html#is" class="link">Source</a></p><div class="doc"><p>Simple way to assert something is some expected value, with no label.
</p></div></div><div class="top"><p class="src"><a name="v:assertParse" class="def">assertParse</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Lang.html#t:Assertion">Assertion</a><a href="src/Hledger-Data-Utils.html#assertParse" class="link">Source</a></p><div class="doc"><p>Assert a parse result is successful, printing the parse error on failure.
</p></div></div><div class="top"><p class="src"><a name="v:assertParseEqual" class="def">assertParseEqual</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> a) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.1/Text-Parsec-Error.html#t:ParseError">ParseError</a> a -&gt; a -&gt; <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit-Lang.html#t:Assertion">Assertion</a><a href="src/Hledger-Data-Utils.html#assertParseEqual" class="link">Source</a></p><div class="doc"><p>Assert a parse result is some expected value, printing the parse error on failure.
</p></div></div><div class="top"><p class="src"><a name="v:printParseError" class="def">printParseError</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> a =&gt; a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Hledger-Data-Utils.html#printParseError" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:isLeft" class="def">isLeft</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> a b -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Utils.html#isLeft" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:isRight" class="def">isRight</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> a b -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Hledger-Data-Utils.html#isRight" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:applyN" class="def">applyN</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; (a -&gt; a) -&gt; a -&gt; a<a href="src/Hledger-Data-Utils.html#applyN" class="link">Source</a></p><div class="doc"><p>Apply a function the specified number of times. Possibly uses O(n) stack ?
</p></div></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Printf.html">Text.Printf</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/regexpr-0.5.3/Text-RegexPR.html">Text.RegexPR</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/HUnit-1.2.2.3/Test-HUnit.html">Test.HUnit</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>