hledger/hledger-lib
Simon Michael a97daaf322 lib: replace pretty-show with pretty-simple
pretty-simple, already used in .ghci, will hopefully give nicer debug
output, including for values which don't have Read-able Show output.
This should mean that we can start removing custom string-like Show
instances that were a workaround for pretty-show.

We are using the latest version (4.0.0.0) to get compact output.
Here's some old pretty-show output:

 CsvRules
   { rdirectives = [ ( "skip" , "1" ) ]
   , rcsvfieldindexes = [ ( "date" , 1 ) , ( "amount" , 2 ) ]
   , rassignments = [ ( "amount" , "%2" ) , ( "date" , "%1" ) ]
   , rconditionalblocks = []
   }

And the new pretty-simple output:

 CsvRules
   { rdirectives=
     [ ( "skip", "1" ) ]
   , rcsvfieldindexes=
     [ ( "date", 1 ), ( "amount", 2 ) ]
   , rassignments=
     [ ( "amount", "%2" ), ( "date", "%1" ) ]
   , rconditionalblocks= []
   }

Non-compact pretty-simple output would be:

 CsvRules
     { rdirectives=
         [
             ( "skip"
             , "1B"
             )
         ]
     , rcsvfieldindexes=
         [
             ( "date"
             , 1
             )
         ,
             ( "amount"
             , 2
             )
         ]
     , rassignments=
         [
             ( "amount"
             , "%2"
             )
         ,
             ( "date"
             , "%1"
             )
         ]
     , rconditionalblocks=[]
     }

Also:

- Account's Show instance no longer converts : to _ in account names

- drop unused pretty-show dependency from hledger, hledger-ui packages

- regenerate hledger-lib with the older hpack that's shipped in stack
2020-11-10 08:06:11 -08:00
..
Hledger lib: replace pretty-show with pretty-simple 2020-11-10 08:06:11 -08:00
other/ledger-parse lib: restrict imports, avoiding GHCI clashes 2016-11-20 10:27:16 -08:00
test ci: --pedantic is too much for now 2020-03-07 14:53:12 -08:00
Text lib: Expand Tabular.AsciiWide to allow multiline cells, either top or bottom aligned. 2020-11-04 14:25:21 +11:00
.ghci tools: .ghci for each package, sets shorter prompt 2016-04-15 16:06:45 -07:00
.version ; bump hledger-lib, hledger, hledger-ui, hledger-web version to 1.19.99 2020-09-07 12:16:12 -07:00
CHANGES.md ;update changelogs 2020-11-04 06:52:15 -10:00
defs.m4 ;update manuals 2020-10-18 16:01:59 -07:00
hledger_csv.5 ;update manuals 2020-11-09 11:09:55 -08:00
hledger_csv.info ;update manuals 2020-11-09 11:09:55 -08:00
hledger_csv.m4.md csv: decimal-mark rule to help with number parsing 2020-11-08 16:39:03 -08:00
hledger_csv.txt ;update manuals 2020-11-09 11:09:55 -08:00
hledger_journal.5 ;update manuals 2020-11-09 17:14:38 -08:00
hledger_journal.info ;update manuals 2020-11-09 17:14:38 -08:00
hledger_journal.m4.md ;doc: journal: amount display style -> commodity display style 2020-11-09 17:14:37 -08:00
hledger_journal.txt ;update manuals 2020-11-09 17:14:38 -08:00
hledger_timeclock.5 ;update manuals 2020-10-18 16:01:59 -07:00
hledger_timeclock.info ;update manuals 2020-09-07 12:17:35 -07:00
hledger_timeclock.m4.md ;doc: drop redundant version message from web manuals 2020-01-25 19:33:12 -08:00
hledger_timeclock.txt ;update manuals 2020-10-18 16:01:59 -07:00
hledger_timedot.5 ;update manuals 2020-10-18 16:01:59 -07:00
hledger_timedot.info ;update manuals 2020-09-07 12:17:35 -07:00
hledger_timedot.m4.md ;timedot: update docs 2020-03-01 14:06:29 -08:00
hledger_timedot.txt ;update manuals 2020-10-18 16:01:59 -07:00
hledger-lib.cabal lib: replace pretty-show with pretty-simple 2020-11-10 08:06:11 -08:00
Hledger.hs rename easytests_* to tests_* 2018-09-06 13:13:26 -07:00
LICENSE split off hledger-lib package, containing core types & utils 2010-03-22 01:44:59 +00:00
package.yaml lib: replace pretty-show with pretty-simple 2020-11-10 08:06:11 -08:00
README.md ;doc: more tweaks to package readmes, hackage descriptions 2020-03-22 10:49:02 -07:00
Setup.hs Revert "remove Setup.hs files again, fixing a yesod devel warning" 2014-05-24 13:39:09 -07:00

hledger-lib

A reusable library containing hledgers core functionality. This is used by most hledger* packages so that they support the same common file formats, command line options, reports etc.

See also: the project README and home page.