From 7780c5c561ce1ebfca1adfc753ffc0c3cf436938 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 1 Oct 2008 08:42:08 +0000 Subject: [PATCH] sample.ledger for easy start --- hledger.cabal | 5 +++-- sample.ledger | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 sample.ledger diff --git a/hledger.cabal b/hledger.cabal index e6dae7f20..a9209625a 100644 --- a/hledger.cabal +++ b/hledger.cabal @@ -7,13 +7,14 @@ Description: This is a minimal haskell clone of John Wiegley's ledger register & balance reporting from a plain text ledger file, and demonstrates a (naive) purely functional implementation of ledger. License: GPL -License-File: LICENSE +Stability: alpha Author: Simon Michael Maintainer: Simon Michael Homepage: http://joyful.com/Ledger#hledger Tested-With: GHC Build-Type: Simple -Extra-Source-Files: +License-File: LICENSE +Extra-Source-Files: sample.ledger Extra-Tmp-Files: Cabal-Version: >= 1.2 diff --git a/sample.ledger b/sample.ledger new file mode 100644 index 000000000..2abf1ca96 --- /dev/null +++ b/sample.ledger @@ -0,0 +1,35 @@ +; A sample ledger file. +; +; Sets up this account tree: +; assets +; cash +; checking +; saving +; expenses +; banking +; food +; supplies +; income +; salary +; liabilities +; debts + +2007/01/01 save + assets:saving $1000 + income:salary + +2007/01/01 * eat & shop + expenses:food $1 + expenses:supplies $1 + assets:cash + +2008/1/1 * pay off + liabilities:debts $0.99 + assets:checking + +2008/01/21 atm + assets:cash $40.00 + expenses:banking $2.00 + expenses:banking $2.00 + assets:checking $-44.00 +