diff --git a/hledger/Hledger/Cli/Commands/Add.md b/hledger/Hledger/Cli/Commands/Add.md index 4bfdfa154..d3de10f18 100644 --- a/hledger/Hledger/Cli/Commands/Add.md +++ b/hledger/Hledger/Cli/Commands/Add.md @@ -41,6 +41,9 @@ Notes: It does not do this; we assume that if you are using a `D` directive you prefer not to see the commodity symbol repeated on amounts in the journal. - `add` creates entries in journal format; it won't work with timeclock or timedot files. +- There is a known issue on Windows if this hledger version is built from stackage: the prompts will show ANSI junk instead of colours (#2410). + You can avoid this by using official hledger release binaries or by building it with haskeline >=0.8.4; + or by running `add` with `--color=no`, perhaps configured in your config file. Examples: diff --git a/hledger/hledger.cabal b/hledger/hledger.cabal index 84fc82dd5..077c21a22 100644 --- a/hledger/hledger.cabal +++ b/hledger/hledger.cabal @@ -167,7 +167,7 @@ library , filepath , githash >=0.1.6.2 , hashable >=1.2.4 - , haskeline >=0.8.4.0 + , haskeline >=0.6 , hledger-lib >=1.51.99 && <1.52 , http-client , http-types @@ -222,7 +222,7 @@ executable hledger , extra >=1.7.11 , filepath , githash >=0.1.6.2 - , haskeline >=0.8.4.0 + , haskeline >=0.6 , hledger , hledger-lib >=1.51.99 && <1.52 , http-client @@ -273,7 +273,7 @@ test-suite unittest , extra >=1.7.11 , filepath , githash >=0.1.6.2 - , haskeline >=0.8.4.0 + , haskeline >=0.6 , hledger , hledger-lib >=1.51.99 && <1.52 , http-client @@ -325,7 +325,7 @@ benchmark bench , extra >=1.7.11 , filepath , githash >=0.1.6.2 - , haskeline >=0.8.4.0 + , haskeline >=0.6 , hledger , hledger-lib >=1.51.99 && <1.52 , html diff --git a/hledger/package.yaml b/hledger/package.yaml index 8e1f00d6d..5890feef7 100644 --- a/hledger/package.yaml +++ b/hledger/package.yaml @@ -114,7 +114,10 @@ dependencies: - extra >=1.7.11 - filepath - githash >=0.1.6.2 -- haskeline >=0.8.4.0 +# haskeline 0.8.4.0 fixes https://github.com/haskell/haskeline/issues/130 and https://github.com/simonmichael/hledger/issues/2410, +# but isn't yet shipped with GHC. Dev and release builds can require it, +# but for hledger in stackage we must allow older haskeline and live with #2410 for now. +- haskeline >=0.6 - http-client - http-types - megaparsec >=7.0.0 && <9.8