Commit Graph

22 Commits

Author SHA1 Message Date
Simon Michael
be8e64e498 imp: lib: export more terminal size, ANSI style/color helpers
Hledger.Utils.IO (and therefore Hledger and Hledger.Cli.Script) added:

    getTerminalHeightWidth
    getTerminalHeight
    getTerminalWidth
    Color(..)
    ColorIntensity(..)
    bold'
    faint'
    black'
    red'
    green'
    yellow'
    blue'
    magenta'
    cyan'
    white'
    brightBlack'
    brightRed'
    brightGreen'
    brightYellow'
    brightBlue'
    brightMagenta'
    brightCyan'
    brightWhite'
    rgb'
2023-03-18 19:59:00 -10:00
Simon Michael
c2e7cc5700 pkg: update stackage resolvers, extra deps 2023-03-10 18:58:22 -10:00
Simon Michael
dc35fd173b pkg: stack: another extra dep needed 2023-01-26 22:25:24 -10:00
Simon Michael
4387e6ffb5 pkg: stack: bump to latest snapshots, depend on text-ansi, add extra deps 2023-01-25 19:15:45 -10:00
Simon Michael
fa8f6ae302 lib: Debug: breakpoint doesn't support windows yet, drop for now 2022-12-01 12:20:29 -08:00
Simon Michael
7bba7e79af dev: ui: support/require brick 1.5, as in latest stackage nightly 2022-11-26 00:12:28 -05:00
Simon Michael
45ee5d125d imp: ui: support/require fsnotify 0.4.x 2022-09-19 18:18:50 -10:00
Simon Michael
9584ebb439 imp: lib: Hledger.Utils.Debug: re-export Debug.Breakpoint
And add breakpoint as a dependency and enable its GHC plugin in all
the hledger packages, so that breakpoint's helpers can be used easily.
2022-08-23 02:02:19 +01:00
Simon Michael
fcdc07b55e stack: use brick 1.0 with older GHCs also 2022-08-17 15:57:27 +01:00
Simon Michael
2aa7fb9a09 stack: 810, 90 updates 2021-12-16 12:51:05 -10:00
Stephen Morgan
d1ae0c10d6 pkg: Bump stack lts and nightlies. 2021-11-11 18:29:50 -10:00
Simon Michael
3ef9958041 test: doctest cleanups, use latest 2021-07-20 20:38:39 -10:00
Simon Michael
dd8d6336a1 stack: 8.10: rename yaml file 2021-07-20 20:38:39 -10:00
Simon Michael
31868a6892 ;stack: build with lts-17/ghc-8.10.3 by default 2021-01-29 15:13:06 -08:00
Simon Michael
c005655311 ;stack: 8.10: bump to current nightly 2021-01-28 13:57:35 -08:00
Simon Michael
c20c1b4e2d stack: 8.10: bump to latest nightly and ghc 8.10.3 2021-01-10 07:56:18 -08:00
Simon Michael
7e667238db add missing dep for other stack snapshots; also bump GHC 8.10 to .2 2020-11-11 12:52:44 -08:00
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
Simon Michael
3575cd5958 stack: simplify 8.10 stack file, use stackage nightly 2020-07-05 06:52:16 -07:00
Simon Michael
bebd6d3184 ;stack8.10: bump to ghc 8.10.1 release 2020-06-08 15:03:04 -07:00
Simon Michael
204b747664 ;stack: drop old probably wrong note 2020-06-06 13:31:05 -07:00
Simon Michael
7b8f0d16fd ;simplify stack.yaml filenames 2020-03-30 15:35:53 -07:00