This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample.ledger: | |
2008/01/01 income | |
assets:bank:checking $1 | |
income:salary | |
2008/06/01 gift | |
assets:bank:checking $1 | |
income:gifts | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat t.ledger | |
2008/1/1 one | |
test:a 1 | |
test:b | |
$ ledger -f t.ledger bal | |
1 a | |
-1 b | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/src/hledger$ cat tttt.ledger | |
2009/1/1 a | |
expenses:food 10 | |
assets:bank | |
~/src/hledger$ ledger -f tttt.ledger bal o --depth 1 | |
10 expenses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
,"entriesFromTimeLogEntries" ~: do | |
-- setup common to entriesFromTimeLogEntries tests | |
today ← getCurrentDay | |
now ← getCurrentTime | |
tz ← getCurrentTimeZone | |
let clockin t a = TimeLogEntry 'i' t a | |
clockout t = TimeLogEntry 'o' t "" | |
yesterday = prevday today | |
mktime d s = LocalTime d $ fromMaybe midnight $ parseTime defaultTimeLocale "%H:%M:%S" s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample.ledger | |
------------- | |
2008/01/01 income | |
assets:bank:checking $1 | |
income:salary | |
2008/06/01 gift | |
assets:bank:checking $1 | |
income:gifts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cabal haddock | |
cabal haddock | |
Preprocessing library hledger-0.3.98... | |
Preprocessing executables for hledger-0.3.98... | |
Running Haddock for hledger-0.3.98... | |
Warning: The documentation for the following packages are not installed. No | |
links will be generated to these packages: HJScript-0.4.4, HJavaScript-0.4.4, | |
HStringTemplate-0.4.3, HaXml-1.13.3, MaybeT-0.1.2, binary-0.5.0.1, cpphs-1.6, | |
extensible-exceptions-0.1.1.0, happstack-0.2.1, happstack-data-0.2.1, | |
happstack-ixset-0.2.1, happstack-server-0.2.1, happstack-state-0.2.1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sha1 <- case (pgSelectedTab layout, rev) of | |
(EditTab,Nothing) -> liftIO $ catch (latest fs $ pathForPage page) | |
(\e -> if e == NotFound | |
then return "" | |
else throwIO e) | |
(EditTab,Just r) -> return r | |
otherwise -> return "" | |
let maybeSetSha1 | null sha1 = id | |
| otherwise = T.setAttribute "sha1" sha1 | |
let filledTemp = T.render $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
end of formattedPage: | |
... | |
templ <- queryAppState template | |
sha1 <- case (pgSelectedTab layout, rev) of | |
(EditTab,Nothing) -> liftIO $ catch (latest fs $ pathForPage page) | |
(\e -> if e == NotFound | |
then return "" | |
else throwIO e) | |
(EditTab,Just r) -> return r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~$ sudo port install gtk2 cairo librsvg libglade2 gtksourceview2 gtk-chtheme gtk2-clearlooks ---> Building py25-libxml2 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/optlocalvarmacportssourcesrsync.macports.orgreleaseportspythonpy25-libxml2/work/libxml2-python-2.6.21" && /opt/local/bin/python2.5 setup.py --no-user-cfg build " returned error 1 Command output: /opt/local/lib/python2.5/distutils/dist.py:247: UserWarning: 'licence' distribution option is deprecated; use 'license' warnings.warn(msg) usage: setup.py [globalopts] cmd1 [cmd1opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help | |
error: option --no-user-cfg not recognized | |
Error: The following dependencies failed to build: gtk-doc gnome-doc-utils py25-libxml2 rarian jasper Error: Status 1 encountered during processing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2009-05-22 10:00:41 PDT LOG: received fast shutdown request | |
2009-05-22 10:00:41 PDT LOG: aborting any active transactions | |
2009-05-22 10:00:41 PDT FATAL: terminating connection due to administrator command | |
2009-05-22 10:00:41 PDT LOG: shutting down | |
2009-05-22 10:00:41 PDT LOG: database system is shut down | |
2009-05-22 10:00:42 PDT LOG: logger shutting down | |
postgres@joyful:/var/log/postgres8.2/pg_log$ pg_ctlcluster 8.2 main start | |
The PostgreSQL server failed to start. Please check the log output. |
OlderNewer