hledger/hledger-lib/Hledger/Data
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
..
Account.hs lib: replace pretty-show with pretty-simple 2020-11-10 08:06:11 -08:00
AccountName.hs make account type autodetection (& hledger-smooth) case insensitive again (#1341) 2020-09-03 09:52:00 -07:00
Amount.hs lib: When calculating elisions, don't skip over some amounts. 2020-11-04 14:25:21 +11:00
Commodity.hs ;review, tag all error calls with an easier to find PARTIAL: comment (#1312) 2020-08-05 16:08:33 -07:00
Dates.hs lib: replace pretty-show with pretty-simple 2020-11-10 08:06:11 -08:00
Journal.hs lib: global commodity display styles can be set in InputOpts or Journal, overriding all others 2020-11-09 17:14:37 -08:00
Json.hs lib,cli: Get rid of magic values for asprecision, use a sum type instead. 2020-08-30 23:00:35 +10:00
Ledger.hs lib,cli,ui,web: Make Regexp a wrapper for Regex. 2020-08-31 12:04:45 +10:00
Period.hs lib: Replace some fromIntegral with toInteger. 2020-08-30 22:20:58 +10:00
PeriodicTransaction.hs lib,cli: Replace parsedate and mkdatespan with direct applications of fromGregorian, transaction now takes Day instead of a date string. 2020-08-29 15:08:28 -07:00
Posting.hs lib: Remove some uses of pad(Left|Right)Wide to ensure we're using the 2020-11-04 14:25:20 +11:00
RawOptions.hs lib,cli,ui: Remove redundant Typeable and Data instances. 2020-08-31 15:41:30 +10:00
StringFormat.hs lib: Improve documentation for StringFormat, remove type alias for Valuation. 2020-10-23 14:14:11 -07:00
Timeclock.hs lib,cli,ui: Remove old CPP directives made redundant by version bounds. 2020-08-29 15:08:28 -07:00
Transaction.hs lib: Align postings to unnormalised amount widths. 2020-11-04 14:25:20 +11:00
TransactionModifier.hs fix doctest breakage (#1312) 2020-08-08 08:53:55 -07:00
Types.hs ;lib: drop a todo, seems ok 2020-11-09 17:14:38 -08:00
Valuation.hs journal: fix error when P directive has a zero price (#1373) 2020-10-18 20:48:14 -07:00