From d346e56b795a805c7b575bbf80e66cffe8cee948 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 27 Feb 2025 13:32:07 -1000 Subject: [PATCH] dev: fix warnings, update yaml file, edit [#2340] --- hledger-lib/Hledger/Utils/IO.hs | 3 +-- hledger/Hledger/Cli/CliOptions.hs | 3 +-- hledger/package.yaml | 7 ------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/hledger-lib/Hledger/Utils/IO.hs b/hledger-lib/Hledger/Utils/IO.hs index 857b4df38..ac6b92337 100644 --- a/hledger-lib/Hledger/Utils/IO.hs +++ b/hledger-lib/Hledger/Utils/IO.hs @@ -429,8 +429,7 @@ hasOutputFile = do -- in some places, it's not guaranteed to work) -- -- In any case, $LINES/$COLUMNS should not be used as a source for the terminal --- size -- that is a bashism, and in particular they aren't updated as the --- terminal is resized. +-- size - they are not available or do not update reliably in all shells. -- -- See #2332 for details diff --git a/hledger/Hledger/Cli/CliOptions.hs b/hledger/Hledger/Cli/CliOptions.hs index 98fd4176b..9cf447310 100644 --- a/hledger/Hledger/Cli/CliOptions.hs +++ b/hledger/Hledger/Cli/CliOptions.hs @@ -94,7 +94,7 @@ import Data.Char import Data.Default import Data.Either (isRight) import Data.List.Extra (groupSortOn, intercalate, isInfixOf, nubSort) -import qualified Data.List.NonEmpty as NE (NonEmpty, fromList, head, nonEmpty) +import qualified Data.List.NonEmpty as NE (NonEmpty, fromList, nonEmpty) import Data.List.Split (splitOn) import Data.Maybe --import Data.String.Here @@ -107,7 +107,6 @@ import String.ANSI import System.Console.CmdArgs hiding (Default,def) import System.Console.CmdArgs.Explicit import System.Console.CmdArgs.Text -import Hledger.Utils.IO (getTerminalWidth) import System.Directory import System.Environment import System.Exit (exitSuccess) diff --git a/hledger/package.yaml b/hledger/package.yaml index 2c877f34f..53b2a311d 100644 --- a/hledger/package.yaml +++ b/hledger/package.yaml @@ -92,10 +92,6 @@ extra-source-files: #data-files: flags: - terminfo: - description: On POSIX systems, build with the terminfo lib for detecting terminal width - default: true - manual: false threaded: description: Build with support for multithreaded execution default: true @@ -158,9 +154,6 @@ dependencies: - wizards >=1.0 when: -- condition: (!(os(windows))) && (flag(terminfo)) - dependencies: - - terminfo - condition: (flag(debug)) cpp-options: -DDEBUG # - condition: (flag(ghcdebug))