Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-cabal-install-solver for 
openSUSE:Factory checked in at 2026-11-24 12:26:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-cabal-install-solver (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-cabal-install-solver.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-cabal-install-solver"

Tue Nov 24 12:26:47 2026 rev:7 rq:1399096 version:3.16.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-cabal-install-solver/ghc-cabal-install-solver.changes
        2026-06-10 15:58:48.066760878 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-cabal-install-solver.new.1340718/ghc-cabal-install-solver.changes
   2026-11-24 12:30:36.887085212 +0100
@@ -1,0 +2,9 @@
+Thu Jan  1 17:17:53 UTC 2026 - Peter Simons <[email protected]>
+
+- Update cabal-install-solver to version 3.16.0.0 revision 1.
+  Upstream has edited the change log file since the last release in
+  a non-trivial way, i.e. they did more than just add a new entry
+  at the top. You can review the file at:
+  
http://hackage.haskell.org/package/cabal-install-solver-3.16.0.0/src/ChangeLog.md
+
+-------------------------------------------------------------------

Old:
----
  cabal-install-solver-3.14.1.0.tar.gz

New:
----
  cabal-install-solver-3.16.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-cabal-install-solver.spec ++++++
--- /var/tmp/diff_new_pack.hTPgp9/_old  2026-11-24 12:30:38.743163814 +0100
+++ /var/tmp/diff_new_pack.hTPgp9/_new  2026-11-24 12:30:38.745163898 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-cabal-install-solver
 #
-# Copyright (c) 2026 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,54 +17,59 @@
 
 
 %global pkg_name cabal-install-solver
-%global pkgver %{pkg_name}-%{version}
+%bcond_with ghc_prof
 %bcond_with tests
-Name:           ghc-%{pkg_name}
-Version:        3.14.1.0
+Name:           ghc-%pkg_name
+Version:        3.16.0.0
 Release:        0
+%global pkgver %pkg_name-%{version}
 Summary:        The solver component of cabal-install
 License:        BSD-3-Clause
-URL:            https://hackage.haskell.org/package/%{pkg_name}
-Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
+URL:            https://hackage.haskell.org/package/%pkg_name
+Source0:        
https://hackage.haskell.org/package/%pkg_name-%{version}/%pkg_name-%{version}.tar.gz
+Source1:        
https://hackage.haskell.org/package/%pkg_name-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-Cabal-prof
 BuildRequires:  ghc-Cabal-syntax-devel
-BuildRequires:  ghc-Cabal-syntax-prof
 BuildRequires:  ghc-array-devel
-BuildRequires:  ghc-array-prof
 BuildRequires:  ghc-base-devel
-BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-bytestring-devel
-BuildRequires:  ghc-bytestring-prof
 BuildRequires:  ghc-containers-devel
-BuildRequires:  ghc-containers-prof
 BuildRequires:  ghc-directory-devel
-BuildRequires:  ghc-directory-prof
 BuildRequires:  ghc-edit-distance-devel
-BuildRequires:  ghc-edit-distance-prof
 BuildRequires:  ghc-filepath-devel
-BuildRequires:  ghc-filepath-prof
 BuildRequires:  ghc-mtl-devel
-BuildRequires:  ghc-mtl-prof
 BuildRequires:  ghc-network-uri-devel
-BuildRequires:  ghc-network-uri-prof
 BuildRequires:  ghc-pretty-devel
-BuildRequires:  ghc-pretty-prof
-BuildRequires:  ghc-rpm-macros
+BuildRequires:  ghc-rpm-macros >= 2.9.2
 BuildRequires:  ghc-text-devel
-BuildRequires:  ghc-text-prof
 BuildRequires:  ghc-transformers-devel
-BuildRequires:  ghc-transformers-prof
 ExcludeArch:    %{ix86}
+%if %{with ghc_prof}
+BuildRequires:  ghc-Cabal-prof
+BuildRequires:  ghc-Cabal-syntax-prof
+BuildRequires:  ghc-array-prof
+BuildRequires:  ghc-base-prof
+BuildRequires:  ghc-bytestring-prof
+BuildRequires:  ghc-containers-prof
+BuildRequires:  ghc-directory-prof
+BuildRequires:  ghc-edit-distance-prof
+BuildRequires:  ghc-filepath-prof
+BuildRequires:  ghc-mtl-prof
+BuildRequires:  ghc-network-uri-prof
+BuildRequires:  ghc-pretty-prof
+BuildRequires:  ghc-text-prof
+BuildRequires:  ghc-transformers-prof
+%endif
 %if %{with tests}
 BuildRequires:  ghc-tasty-devel
 BuildRequires:  ghc-tasty-hunit-devel
+BuildRequires:  ghc-tasty-quickcheck-devel
+%if %{with ghc_prof}
 BuildRequires:  ghc-tasty-hunit-prof
 BuildRequires:  ghc-tasty-prof
-BuildRequires:  ghc-tasty-quickcheck-devel
 BuildRequires:  ghc-tasty-quickcheck-prof
 %endif
+%endif
 
 %description
 The solver component used in the cabal-install command-line program.
@@ -80,25 +85,28 @@
 This package provides the Haskell %{pkg_name} library development
 files.
 
-%package -n ghc-%{pkg_name}-doc
+%package -n ghc-%pkg_name-doc
 Summary:        Haskell %{pkg_name} library documentation
 Requires:       ghc-filesystem
 BuildArch:      noarch
 
-%description -n ghc-%{pkg_name}-doc
+%description -n ghc-%pkg_name-doc
 This package provides the Haskell %{pkg_name} library documentation.
 
-%package -n ghc-%{pkg_name}-prof
+%if %{with ghc_prof}
+%package -n ghc-%pkg_name-prof
 Summary:        Haskell %{pkg_name} profiling library
-Requires:       ghc-%{pkg_name}-devel = %{version}-%{release}
-Supplements:    (ghc-%{pkg_name}-devel and ghc-prof)
+Requires:       ghc-%pkg_name-devel = %{version}-%{release}
+Supplements:    (ghc-%pkg_name-devel and ghc-prof)
 
-%description -n ghc-%{pkg_name}-prof
+%description -n ghc-%pkg_name-prof
 This package provides the Haskell %{pkg_name} profiling library.
+%endif
+
 
 %prep
-%autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
+%autosetup -p1 -n %pkg_name-%{version}
+cp -p %{SOURCE1} %pkg_name.cabal
 
 %build
 %ghc_lib_build
@@ -121,8 +129,10 @@
 %files devel -f %{name}-devel.files
 %doc ChangeLog.md
 
-%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
+%files -n ghc-%pkg_name-doc -f ghc-%pkg_name-doc.files
 %license LICENSE
 
-%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+%if %{with ghc_prof}
+%files -n ghc-%pkg_name-prof -f ghc-%pkg_name-prof.files
+%endif
 

++++++ cabal-install-solver-3.14.1.0.tar.gz -> 
cabal-install-solver-3.16.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cabal-install-solver-3.14.1.0/ChangeLog.md 
new/cabal-install-solver-3.16.0.0/ChangeLog.md
--- old/cabal-install-solver-3.14.1.0/ChangeLog.md      2001-09-09 
03:46:40.000000000 +0200
+++ new/cabal-install-solver-3.16.0.0/ChangeLog.md      2001-09-09 
03:46:40.000000000 +0200
@@ -1 +1 @@
-Please see 
https://github.com/haskell/cabal/blob/master/release-notes/cabal-install-3.14.1.0.md
+Please see 
https://github.com/haskell/cabal/blob/master/release-notes/cabal-install-3.16.0.0.md
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cabal-install-solver-3.14.1.0/LICENSE 
new/cabal-install-solver-3.16.0.0/LICENSE
--- old/cabal-install-solver-3.14.1.0/LICENSE   2001-09-09 03:46:40.000000000 
+0200
+++ new/cabal-install-solver-3.16.0.0/LICENSE   2001-09-09 03:46:40.000000000 
+0200
@@ -1,4 +1,4 @@
-Copyright (c) 2003-2024, Cabal Development Team.
+Copyright (c) 2003-2025, Cabal Development Team.
 See the AUTHORS file for the full list of copyright holders.
 
 See */LICENSE for the copyright holders of the subcomponents.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/cabal-install-solver.cabal 
new/cabal-install-solver-3.16.0.0/cabal-install-solver.cabal
--- old/cabal-install-solver-3.14.1.0/cabal-install-solver.cabal        
2001-09-09 03:46:40.000000000 +0200
+++ new/cabal-install-solver-3.16.0.0/cabal-install-solver.cabal        
2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
-cabal-version: 2.2
+cabal-version: 3.6
 name:          cabal-install-solver
-version:       3.14.1.0
+version:       3.16.0.0
 synopsis:      The solver component of cabal-install
 description:
   The solver component used in the cabal-install command-line program.
@@ -11,7 +11,7 @@
 license-file:  LICENSE
 author:        Cabal Development Team (see AUTHORS file)
 maintainer:    Cabal Development Team <[email protected]>
-copyright:     2003-2024, Cabal Development Team
+copyright:     2003-2025, Cabal Development Team
 category:      Distribution
 build-type:    Simple
 extra-doc-files:
@@ -38,7 +38,7 @@
   hs-source-dirs:   src-assertion
   ghc-options:
     -Wall -Wcompat -Wnoncanonical-monad-instances
-    -fwarn-tabs -fwarn-incomplete-uni-patterns
+    -Wtabs -Wincomplete-uni-patterns
 
   if impl(ghc < 8.8)
     ghc-options: -Wnoncanonical-monadfail-instances
@@ -101,9 +101,9 @@
     , array         >=0.4      && <0.6
     , base          >=4.13     && <4.22
     , bytestring    >=0.10.6.0 && <0.13
-    , Cabal         ^>=3.14
-    , Cabal-syntax  ^>=3.14
-    , containers    >=0.5.6.2  && <0.8
+    , Cabal         ^>=3.16
+    , Cabal-syntax  ^>=3.16
+    , containers    >=0.5.6.2  && <0.9
     , edit-distance ^>= 0.2.2
     , directory     >= 1.3.7.0  && < 1.4
     , filepath      ^>=1.4.0.0 || ^>=1.5.0.0
@@ -118,7 +118,8 @@
 
   if flag(debug-tracetree)
     cpp-options:   -DDEBUG_TRACETREE
-    build-depends: tracetree ^>=0.1
+    build-depends:
+      , tracetree ^>=0.1
 
 Test-Suite unit-tests
    default-language: Haskell2010
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Compat/Prelude.hs 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Compat/Prelude.hs
--- old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Compat/Prelude.hs 
2001-09-09 03:46:40.000000000 +0200
+++ new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Compat/Prelude.hs 
2001-09-09 03:46:40.000000000 +0200
@@ -1,5 +1,5 @@
 -- to suppress WARNING in "Distribution.Compat.Prelude.Internal"
-{-# OPTIONS_GHC -fno-warn-deprecations #-}
+{-# OPTIONS_GHC -Wno-deprecations #-}
 
 -- | This module does two things:
 --
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/Linking.hs 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/Linking.hs
--- 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/Linking.hs    
    2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/Linking.hs    
    2001-09-09 03:46:40.000000000 +0200
@@ -2,7 +2,7 @@
 {-# LANGUAGE MultiParamTypeClasses #-}
 
 -- TODO: remove this
-{-# OPTIONS -fno-warn-incomplete-uni-patterns #-}
+{-# OPTIONS -Wno-incomplete-uni-patterns #-}
 module Distribution.Solver.Modular.Linking (
     validateLinking
   ) where
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/Message.hs 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/Message.hs
--- 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/Message.hs    
    2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/Message.hs    
    2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,5 @@
 {-# LANGUAGE BangPatterns #-}
 {-# LANGUAGE LambdaCase #-}
-{-# LANGUAGE ViewPatterns #-}
 
 module Distribution.Solver.Modular.Message (
     Message(..),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/PSQ.hs 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/PSQ.hs
--- old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/PSQ.hs    
2001-09-09 03:46:40.000000000 +0200
+++ new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/PSQ.hs    
2001-09-09 03:46:40.000000000 +0200
@@ -1,4 +1,4 @@
-{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
+{-# LANGUAGE DeriveTraversable #-}
 module Distribution.Solver.Modular.PSQ
     ( PSQ(..)  -- Unit test needs constructor access
     , casePSQ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/Solver.hs 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/Solver.hs
--- old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/Solver.hs 
2001-09-09 03:46:40.000000000 +0200
+++ new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/Solver.hs 
2001-09-09 03:46:40.000000000 +0200
@@ -1,7 +1,7 @@
 {-# LANGUAGE CPP #-}
 #ifdef DEBUG_TRACETREE
 {-# LANGUAGE FlexibleInstances #-}
-{-# OPTIONS_GHC -fno-warn-orphans #-}
+{-# OPTIONS_GHC -Wno-orphans #-}
 #endif
 module Distribution.Solver.Modular.Solver
     ( SolverConfig(..)
@@ -171,6 +171,7 @@
 --
 -- This only does something if the @debug-tracetree@ configure argument was
 -- given; otherwise this is just the identity function.
+{- FOURMOLU_DISABLE -}
 traceTree ::
 #ifdef DEBUG_TRACETREE
   GSimpleTree a =>
@@ -183,6 +184,7 @@
 #else
 traceTree _ _ = id
 #endif
+{- FOURMOLU_ENABLE -}
 
 #ifdef DEBUG_TRACETREE
 instance GSimpleTree (Tree d c) where
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/Tree.hs 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/Tree.hs
--- old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/Tree.hs   
2001-09-09 03:46:40.000000000 +0200
+++ new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/Tree.hs   
2001-09-09 03:46:40.000000000 +0200
@@ -1,4 +1,4 @@
-{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
+{-# LANGUAGE DeriveTraversable #-}
 module Distribution.Solver.Modular.Tree
     ( POption(..)
     , Tree(..)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/WeightedPSQ.hs
 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/WeightedPSQ.hs
--- 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Modular/WeightedPSQ.hs
    2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Modular/WeightedPSQ.hs
    2001-09-09 03:46:40.000000000 +0200
@@ -1,4 +1,4 @@
-{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
+{-# LANGUAGE DeriveTraversable #-}
 {-# LANGUAGE ScopedTypeVariables #-}
 {-# LANGUAGE TupleSections #-}
 module Distribution.Solver.Modular.WeightedPSQ (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/ConstraintSource.hs
 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/ConstraintSource.hs
--- 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/ConstraintSource.hs
 2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/ConstraintSource.hs
 2001-09-09 03:46:40.000000000 +0200
@@ -6,7 +6,8 @@
 
 import Distribution.Solver.Compat.Prelude
 import Distribution.Solver.Types.ProjectConfigPath (ProjectConfigPath, 
docProjectConfigPath)
-import Text.PrettyPrint (render)
+import Distribution.Pretty (Pretty(pretty), prettyShow)
+import Text.PrettyPrint (text)
 
 -- | Source of a 'PackageConstraint'.
 data ConstraintSource =
@@ -41,6 +42,10 @@
   -- from Cabal >= 3.11
   | ConstraintSourceMultiRepl
 
+  -- | Constraint introduced by --with-repl, which requires features
+  -- from Cabal >= 3.15
+  | ConstraintSourceWithRepl
+
   -- | Constraint introduced by --enable-profiling-shared, which requires 
features
   -- from Cabal >= 3.13
   | ConstraintSourceProfiledDynamic
@@ -55,31 +60,37 @@
   -- | An internal constraint due to compatibility issues with the Setup.hs
   -- command line interface requires a maximum upper bound on Cabal
   | ConstraintSetupCabalMaxVersion
-  deriving (Eq, Show, Generic)
+  deriving (Show, Eq, Generic)
 
 instance Binary ConstraintSource
 instance Structured ConstraintSource
 
 -- | Description of a 'ConstraintSource'.
 showConstraintSource :: ConstraintSource -> String
-showConstraintSource (ConstraintSourceMainConfig path) =
-    "main config " ++ path
-showConstraintSource (ConstraintSourceProjectConfig path) =
-    "project config " ++ render (docProjectConfigPath path)
-showConstraintSource (ConstraintSourceUserConfig path)= "user config " ++ path
-showConstraintSource ConstraintSourceCommandlineFlag = "command line flag"
-showConstraintSource ConstraintSourceUserTarget = "user target"
-showConstraintSource ConstraintSourceNonReinstallablePackage =
-    "non-reinstallable package"
-showConstraintSource ConstraintSourceFreeze = "cabal freeze"
-showConstraintSource ConstraintSourceConfigFlagOrTarget =
-    "config file, command line flag, or user target"
-showConstraintSource ConstraintSourceMultiRepl =
-    "--enable-multi-repl"
-showConstraintSource ConstraintSourceProfiledDynamic =
-    "--enable-profiling-shared"
-showConstraintSource ConstraintSourceUnknown = "unknown source"
-showConstraintSource ConstraintSetupCabalMinVersion =
-    "minimum version of Cabal used by Setup.hs"
-showConstraintSource ConstraintSetupCabalMaxVersion =
-    "maximum version of Cabal used by Setup.hs"
+showConstraintSource = prettyShow
+
+instance Pretty ConstraintSource where
+  pretty constraintSource = case constraintSource of
+    (ConstraintSourceMainConfig path) ->
+      text "main config" <+> text path
+    (ConstraintSourceProjectConfig path) ->
+      text "project config" <+> docProjectConfigPath path
+    (ConstraintSourceUserConfig path)-> text "user config " <+> text path
+    ConstraintSourceCommandlineFlag -> text "command line flag"
+    ConstraintSourceUserTarget -> text "user target"
+    ConstraintSourceNonReinstallablePackage ->
+      text "non-reinstallable package"
+    ConstraintSourceFreeze -> text "cabal freeze"
+    ConstraintSourceConfigFlagOrTarget ->
+      text "config file, command line flag, or user target"
+    ConstraintSourceMultiRepl ->
+      text "--enable-multi-repl"
+    ConstraintSourceWithRepl ->
+      text "--with-repl"
+    ConstraintSourceProfiledDynamic ->
+      text "--enable-profiling-shared"
+    ConstraintSourceUnknown -> text "unknown source"
+    ConstraintSetupCabalMinVersion ->
+      text "minimum version of Cabal used by Setup.hs"
+    ConstraintSetupCabalMaxVersion ->
+      text "maximum version of Cabal used by Setup.hs"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/OptionalStanza.hs
 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/OptionalStanza.hs
--- 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/OptionalStanza.hs
   2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/OptionalStanza.hs
   2001-09-09 03:46:40.000000000 +0200
@@ -1,4 +1,3 @@
-{-# LANGUAGE DeriveDataTypeable #-}
 {-# LANGUAGE DeriveGeneric      #-}
 module Distribution.Solver.Types.OptionalStanza (
     -- * OptionalStanza
@@ -38,7 +37,7 @@
 data OptionalStanza
     = TestStanzas
     | BenchStanzas
-  deriving (Eq, Ord, Enum, Bounded, Show, Generic, Typeable)
+  deriving (Eq, Ord, Enum, Bounded, Show, Generic)
 
 -- | String representation of an OptionalStanza.
 showStanza :: OptionalStanza -> String
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/PackageConstraint.hs
 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/PackageConstraint.hs
--- 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/PackageConstraint.hs
        2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/PackageConstraint.hs
        2001-09-09 03:46:40.000000000 +0200
@@ -11,9 +11,7 @@
     scopeToPackageName,
     constraintScopeMatches,
     PackageProperty(..),
-    dispPackageProperty,
     PackageConstraint(..),
-    dispPackageConstraint,
     showPackageConstraint,
     packageConstraintToDependency
   ) where
@@ -23,7 +21,7 @@
 
 import Distribution.Package                        (PackageName)
 import Distribution.PackageDescription             (FlagAssignment, 
dispFlagAssignment)
-import Distribution.Pretty                         (flatStyle, pretty)
+import Distribution.Pretty                         (flatStyle, Pretty(pretty))
 import Distribution.Types.PackageVersionConstraint (PackageVersionConstraint 
(..))
 import Distribution.Version                        (VersionRange, 
simplifyVersionRange)
 
@@ -82,12 +80,11 @@
   in setup pp && pn == pn'
 constraintScopeMatches (ScopeAnyQualifier pn) (Q _ pn') = pn == pn'
 
--- | Pretty-prints a constraint scope.
-dispConstraintScope :: ConstraintScope -> Disp.Doc
-dispConstraintScope (ScopeTarget pn) = pretty pn <<>> Disp.text "." <<>> 
pretty pn
-dispConstraintScope (ScopeQualified q pn) = dispQualifier q <<>> pretty pn
-dispConstraintScope (ScopeAnySetupQualifier pn) = Disp.text "setup." <<>> 
pretty pn
-dispConstraintScope (ScopeAnyQualifier pn) = Disp.text "any." <<>> pretty pn
+instance Pretty ConstraintScope where
+  pretty (ScopeTarget pn) = pretty pn <<>> Disp.text "." <<>> pretty pn
+  pretty (ScopeQualified q pn) = dispQualifier q <<>> pretty pn
+  pretty (ScopeAnySetupQualifier pn) = Disp.text "setup." <<>> pretty pn
+  pretty (ScopeAnyQualifier pn) = Disp.text "any." <<>> pretty pn
 
 -- | A package property is a logical predicate on packages.
 data PackageProperty
@@ -101,24 +98,22 @@
 instance Binary PackageProperty
 instance Structured PackageProperty
 
--- | Pretty-prints a package property.
-dispPackageProperty :: PackageProperty -> Disp.Doc
-dispPackageProperty (PackagePropertyVersion verrange) = pretty verrange
-dispPackageProperty PackagePropertyInstalled          = Disp.text "installed"
-dispPackageProperty PackagePropertySource             = Disp.text "source"
-dispPackageProperty (PackagePropertyFlags flags)      = dispFlagAssignment 
flags
-dispPackageProperty (PackagePropertyStanzas stanzas)  =
-  Disp.hsep $ map (Disp.text . showStanza) stanzas
+instance Pretty PackageProperty where
+  pretty (PackagePropertyVersion verrange) = pretty verrange
+  pretty PackagePropertyInstalled          = Disp.text "installed"
+  pretty PackagePropertySource             = Disp.text "source"
+  pretty (PackagePropertyFlags flags)      = dispFlagAssignment flags
+  pretty (PackagePropertyStanzas stanzas)  =
+    Disp.hsep $ map (Disp.text . showStanza) stanzas
 
 -- | A package constraint consists of a scope plus a property
 -- that must hold for all packages within that scope.
 data PackageConstraint = PackageConstraint ConstraintScope PackageProperty
   deriving (Eq, Show)
 
--- | Pretty-prints a package constraint.
-dispPackageConstraint :: PackageConstraint -> Disp.Doc
-dispPackageConstraint (PackageConstraint scope prop) =
-  dispConstraintScope scope <+> dispPackageProperty prop
+instance Pretty PackageConstraint where
+  pretty (PackageConstraint scope prop) =
+    pretty scope <+> pretty prop
 
 -- | Alternative textual representation of a package constraint
 -- for debugging purposes (slightly more verbose than that
@@ -126,7 +121,7 @@
 --
 showPackageConstraint :: PackageConstraint -> String
 showPackageConstraint pc@(PackageConstraint scope prop) =
-  Disp.renderStyle flatStyle . postprocess $ dispPackageConstraint pc2
+  Disp.renderStyle flatStyle . postprocess $ pretty pc2
   where
     pc2 = case prop of
       PackagePropertyVersion vr ->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/PkgConfigDb.hs 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/PkgConfigDb.hs
--- 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/PkgConfigDb.hs  
    2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/PkgConfigDb.hs  
    2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,4 @@
-{-# LANGUAGE DeriveDataTypeable #-}
 {-# LANGUAGE DeriveGeneric      #-}
-{-# LANGUAGE LambdaCase         #-}
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Distribution.Solver.Types.PkgConfigDb
@@ -53,7 +51,7 @@
 -- but we don't know the exact version (because parsing of the version number
 -- failed).
 newtype PkgConfigDb = PkgConfigDb (M.Map PkgconfigName (Maybe 
PkgconfigVersion))
-     deriving (Show, Generic, Typeable)
+     deriving (Show, Generic)
 
 instance Binary PkgConfigDb
 instance Structured PkgConfigDb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/ProjectConfigPath.hs
 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/ProjectConfigPath.hs
--- 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/ProjectConfigPath.hs
        2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/ProjectConfigPath.hs
        2001-09-09 03:46:40.000000000 +0200
@@ -1,4 +1,5 @@
 {-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE ViewPatterns #-}
 
 module Distribution.Solver.Types.ProjectConfigPath
     (
@@ -7,31 +8,42 @@
     , projectConfigPathRoot
     , nullProjectConfigPath
     , consProjectConfigPath
+    , unconsProjectConfigPath
 
     -- * Messages
     , docProjectConfigPath
-    , docProjectConfigPaths
+    , docProjectConfigFiles
     , cyclicalImportMsg
+    , untrimmedUriImportMsg
     , docProjectConfigPathFailReason
+    , quoteUntrimmed
 
     -- * Checks and Normalization
     , isCyclicConfigPath
     , isTopLevelConfigPath
+    , isUntrimmedUriConfigPath
     , canonicalizeConfigPath
     ) where
 
 import Distribution.Solver.Compat.Prelude hiding (toList, (<>))
+import qualified Distribution.Solver.Compat.Prelude as P ((<>))
 import Prelude (sequence)
 
 import Data.Coerce (coerce)
 import Data.List.NonEmpty ((<|))
-import Network.URI (parseURI)
+import Network.URI (parseURI, parseAbsoluteURI)
 import System.Directory
-import System.FilePath
+import System.FilePath hiding (splitPath)
+import qualified System.FilePath as FP (splitPath)
+import qualified System.FilePath.Posix as Posix
+import qualified System.FilePath.Windows as Windows
 import qualified Data.List.NonEmpty as NE
 import Distribution.Solver.Modular.Version (VR)
-import Distribution.Pretty (prettyShow)
+import Distribution.Pretty (prettyShow, Pretty(..))
+import Distribution.Utils.String (trim)
 import Text.PrettyPrint
+import Distribution.Simple.Utils (ordNub)
+import Distribution.System (OS(Windows), buildOS)
 
 -- | Path to a configuration file, either a singleton project root, or a longer
 -- list representing a path to an import.  The path is a non-empty list that we
@@ -45,40 +57,99 @@
 -- List elements are relative to each other but once canonicalized, elements 
are
 -- relative to the directory of the project root.
 newtype ProjectConfigPath = ProjectConfigPath (NonEmpty FilePath)
-    deriving (Eq, Ord, Show, Generic)
+    deriving (Eq, Show, Generic)
+
+instance Pretty ProjectConfigPath where
+  pretty = docProjectConfigPath
+
+-- | Sorts URIs after local file paths and longer file paths after shorter ones
+-- as measured by the number of path segments. If still equal, then sorting is
+-- lexical.
+--
+-- The project itself, a single element root path, compared to any of the
+-- configuration paths it imports, should always sort first. Comparing one
+-- project root path against another is done lexically.
+--
+-- For comparison purposes, path separators are normalized to the @buildOS@
+-- platform's path separator.
+--
+-- >>> let abFwd = ProjectConfigPath $ "a/b.config" :| []
+-- >>> let abBwd = ProjectConfigPath $ "a\\b.config" :| []
+-- >>> compare abFwd abBwd
+-- EQ
+instance Ord ProjectConfigPath where
+    compare pa@(ProjectConfigPath (NE.toList -> as)) pb@(ProjectConfigPath 
(NE.toList -> bs)) =
+        case (as, bs) of
+            -- There should only ever be one root project path, only one path
+            -- with length 1. Comparing it to itself should be EQ. Don't assume
+            -- this though, do a comparison anyway when both sides have length
+            -- 1.  The root path, the project itself, should always be the 
first
+            -- path in a sorted listing.
+            ([a], [b]) -> compare (splitPath a) (splitPath b)
+            ([_], _) -> LT
+            (_, [_]) -> GT
+
+            (a:_, b:_) -> case (parseAbsoluteURI a, parseAbsoluteURI b) of
+                (Just ua, Just ub) -> compare ua ub P.<> compare aImporters 
bImporters
+                (Just _, Nothing) -> GT
+                (Nothing, Just _) -> LT
+                (Nothing, Nothing) -> compare (splitPath a) (splitPath b) P.<> 
compare aImporters bImporters
+            _ ->
+                compare (length as) (length bs)
+                P.<> compare (length aPaths) (length bPaths)
+                P.<> compare aPaths bPaths
+        where
+            splitPath = FP.splitPath . normSep where
+                normSep p =
+                    if buildOS == Windows
+                        then
+                            Windows.joinPath $ Windows.splitDirectories
+                            [if Posix.isPathSeparator c then 
Windows.pathSeparator else c| c <- p]
+                        else
+                            Posix.joinPath $ Posix.splitDirectories
+                            [if Windows.isPathSeparator c then 
Posix.pathSeparator else c| c <- p]
+
+            aPaths = splitPath <$> as
+            bPaths = splitPath <$> bs
+            aImporters = snd $ unconsProjectConfigPath pa
+            bImporters = snd $ unconsProjectConfigPath pb
 
 instance Binary ProjectConfigPath
 instance Structured ProjectConfigPath
 
 -- | Renders the path like this;
--- @
--- D.config
---   imported by: C.config
---   imported by: B.config
---   imported by: A.project
--- @
+--
+-- >D.config
+-- >  imported by: C.config
+-- >  imported by: B.config
+-- >  imported by: A.project
+--
 -- >>> render . docProjectConfigPath $ ProjectConfigPath $ "D.config" :| 
["C.config", "B.config", "A.project"]
 -- "D.config\n  imported by: C.config\n  imported by: B.config\n  imported by: 
A.project"
 docProjectConfigPath :: ProjectConfigPath -> Doc
-docProjectConfigPath (ProjectConfigPath (p :| [])) = text p
-docProjectConfigPath (ProjectConfigPath (p :| ps)) = vcat $
-    text p : [ text " " <+> text "imported by:" <+> text l | l <- ps ]
+docProjectConfigPath (ProjectConfigPath (p :| [])) = quoteUntrimmed p
+docProjectConfigPath (ProjectConfigPath (p :| ps)) = vcat $ quoteUntrimmed p :
+    [ text " " <+> text "imported by:" <+> quoteUntrimmed l | l <- ps ]
+
+-- | If the path has leading or trailing spaces then show it quoted.
+quoteUntrimmed :: FilePath -> Doc
+quoteUntrimmed s = if trim s /= s then quotes (text s) else text s
 
 -- | Renders the paths as a list without showing which path imports another,
 -- like this;
--- @
--- - cabal.project
--- - project-cabal/constraints.config
--- - project-cabal/ghc-latest.config
--- - project-cabal/ghc-options.config
--- - project-cabal/pkgs.config
--- - project-cabal/pkgs/benchmarks.config
--- - project-cabal/pkgs/buildinfo.config
--- - project-cabal/pkgs/cabal.config
--- - project-cabal/pkgs/install.config
--- - project-cabal/pkgs/integration-tests.config
--- - project-cabal/pkgs/tests.config
--- @
+--
+-- >- cabal.project
+-- >- project-cabal/constraints.config
+-- >- project-cabal/ghc-latest.config
+-- >- project-cabal/ghc-options.config
+-- >- project-cabal/pkgs.config
+-- >- project-cabal/pkgs/benchmarks.config
+-- >- project-cabal/pkgs/buildinfo.config
+-- >- project-cabal/pkgs/cabal.config
+-- >- project-cabal/pkgs/install.config
+-- >- project-cabal/pkgs/integration-tests.config
+-- >- project-cabal/pkgs/tests.config
+--
 --
 -- >>> :{
 --   do
@@ -95,15 +166,16 @@
 --              , ProjectConfigPath 
("project-cabal/pkgs/integration-tests.config" :| 
["project-cabal/pkgs.config","cabal.project"])
 --              , ProjectConfigPath ("project-cabal/pkgs/tests.config" :| 
["project-cabal/pkgs.config","cabal.project"])
 --              ]
---     return . render $ docProjectConfigPaths ps
+--     return . render $ docProjectConfigFiles ps
 -- :}
 -- "- cabal.project\n- project-cabal/constraints.config\n- 
project-cabal/ghc-latest.config\n- project-cabal/ghc-options.config\n- 
project-cabal/pkgs.config\n- project-cabal/pkgs/benchmarks.config\n- 
project-cabal/pkgs/buildinfo.config\n- project-cabal/pkgs/cabal.config\n- 
project-cabal/pkgs/install.config\n- 
project-cabal/pkgs/integration-tests.config\n- project-cabal/pkgs/tests.config"
-docProjectConfigPaths :: [ProjectConfigPath] -> Doc
-docProjectConfigPaths ps = vcat
-    [ text "-" <+> text p | ProjectConfigPath (p :| _) <- ps ]
+docProjectConfigFiles :: [ProjectConfigPath] -> Doc
+docProjectConfigFiles ps = vcat
+    [ text "-" <+> text p
+    | p <- ordNub [ p | ProjectConfigPath (p :| _) <- ps ]
+    ]
 
--- | A message for a cyclical import, assuming the head of the path is the
--- duplicate.
+-- | A message for a cyclical import, a "cyclical import of".
 cyclicalImportMsg :: ProjectConfigPath -> Doc
 cyclicalImportMsg path@(ProjectConfigPath (duplicate :| _)) =
     vcat
@@ -111,6 +183,14 @@
     , nest 2 (docProjectConfigPath path)
     ]
 
+-- | A message for an import that has leading or trailing spaces.
+untrimmedUriImportMsg :: Doc -> ProjectConfigPath -> Doc
+untrimmedUriImportMsg intro path =
+    vcat
+    [ intro <+> text "import has leading or trailing whitespace" <> semi
+    , nest 2 (docProjectConfigPath path)
+    ]
+
 docProjectConfigPathFailReason :: VR -> ProjectConfigPath -> Doc
 docProjectConfigPathFailReason vr pcp
     | ProjectConfigPath (p :| []) <- pcp =
@@ -139,6 +219,11 @@
 isCyclicConfigPath :: ProjectConfigPath -> Bool
 isCyclicConfigPath (ProjectConfigPath p) = length p /= length (NE.nub p)
 
+-- | Check if the last segment of the path (root or importee) is a URI that has
+-- leading or trailing spaces.
+isUntrimmedUriConfigPath :: ProjectConfigPath -> Bool
+isUntrimmedUriConfigPath (ProjectConfigPath (p :| _)) = let p' = trim p in p' 
/= p && isURI p'
+
 -- | Check if the project config path is top-level, meaning it was not 
included by
 -- some other project config.
 isTopLevelConfigPath :: ProjectConfigPath -> Bool
@@ -148,12 +233,16 @@
 consProjectConfigPath :: FilePath -> ProjectConfigPath -> ProjectConfigPath
 consProjectConfigPath p ps = ProjectConfigPath (p <| coerce ps)
 
+-- | Split the path into the importee and the importer path.
+unconsProjectConfigPath :: ProjectConfigPath -> (FilePath, Maybe 
ProjectConfigPath)
+unconsProjectConfigPath ps = fmap ProjectConfigPath <$> NE.uncons (coerce ps)
+
 -- | Make paths relative to the directory of the root of the project, not
 -- relative to the file they were imported from.
 makeRelativeConfigPath :: FilePath -> ProjectConfigPath -> ProjectConfigPath
 makeRelativeConfigPath dir (ProjectConfigPath p) =
     ProjectConfigPath
-    $ (\segment -> (if isURI segment then segment else makeRelative dir 
segment))
+    $ (\segment@(trim -> trimSegment) -> (if isURI trimSegment then 
trimSegment else makeRelative dir segment))
     <$> p
 
 -- | Normalizes and canonicalizes a path removing '.' and '..' indirections.
@@ -161,32 +250,30 @@
 -- instead of relative to the file it was imported from.
 --
 -- It converts paths like this:
--- @
--- └─ hops-0.project
---    └─ hops/hops-1.config
---       └─ ../hops-2.config
---          └─ hops/hops-3.config
---             └─ ../hops-4.config
---                └─ hops/hops-5.config
---                   └─ ../hops-6.config
---                      └─ hops/hops-7.config
---                         └─ ../hops-8.config
---                            └─ hops/hops-9.config
--- @
+--
+-- >   hops-0.project
+-- >   └─ hops/hops-1.config
+-- >      └─ ../hops-2.config
+-- >         └─ hops/hops-3.config
+-- >            └─ ../hops-4.config
+-- >               └─ hops/hops-5.config
+-- >                  └─ ../hops-6.config
+-- >                     └─ hops/hops-7.config
+-- >                        └─ ../hops-8.config
+-- >                           └─ hops/hops-9.config
 --
 -- Into paths like this:
--- @
--- └─ hops-0.project
---    └─ hops/hops-1.config
---       └─ hops-2.config
---          └─ hops/hops-3.config
---             └─ hops-4.config
---                └─ hops/hops-5.config
---                   └─ hops-6.config
---                      └─ hops/hops-7.config
---                         └─ hops-8.config
---                            └─ hops/hops-9.config
--- @
+--
+-- >   hops-0.project
+-- >   └─ hops/hops-1.config
+-- >      └─ hops-2.config
+-- >         └─ hops/hops-3.config
+-- >            └─ hops-4.config
+-- >               └─ hops/hops-5.config
+-- >                  └─ hops-6.config
+-- >                     └─ hops/hops-7.config
+-- >                        └─ hops-8.config
+-- >                           └─ hops/hops-9.config
 --
 -- That way we have @hops-8.config@ instead of
 -- @./hops/../hops/../hops/../hops/../hops-8.config@.
@@ -232,11 +319,25 @@
 --     return $ expected == render (docProjectConfigPath p) ++ "\n"
 -- :}
 -- True
+--
+-- "A string is a valid URL potentially surrounded by spaces if, after 
stripping leading and trailing whitespace from it, it is a valid URL."
+-- [W3C/HTML5/URLs](https://www.w3.org/TR/2010/WD-html5-20100624/urls.html)
+--
+-- Trailing spaces for @ProjectConfigPath@ URLs are trimmed.
+--
+-- >>> p <- canonicalizeConfigPath "" (ProjectConfigPath $ 
("https://www.stackage.org/nightly-2024-12-05/cabal.config ") :| [])
+-- >>> render $ docProjectConfigPath p
+-- "https://www.stackage.org/nightly-2024-12-05/cabal.config";
+--
+-- >>> let d = testDir
+-- >>> p <- canonicalizeConfigPath d (ProjectConfigPath $ 
("https://www.stackage.org/nightly-2024-12-05/cabal.config ") :| [d </> 
"cabal.project"])
+-- >>> render $ docProjectConfigPath p
+-- "https://www.stackage.org/nightly-2024-12-05/cabal.config\n  imported by: 
cabal.project"
 canonicalizeConfigPath :: FilePath -> ProjectConfigPath -> IO ProjectConfigPath
 canonicalizeConfigPath d (ProjectConfigPath p) = do
-    xs <- sequence $ NE.scanr (\importee -> (>>= \importer ->
-            if isURI importee
-                then pure importee
+    xs <- sequence $ NE.scanr (\importee@(trim -> trimImportee) -> (>>= 
\importer@(trim -> trimImporter) ->
+            if isURI trimImportee || isURI trimImporter
+                then pure trimImportee
                 else canonicalizePath $ d </> takeDirectory importer </> 
importee))
             (pure ".") p
     return . makeRelativeConfigPath d . ProjectConfigPath . NE.fromList $ 
NE.init xs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/SourcePackage.hs
 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/SourcePackage.hs
--- 
old/cabal-install-solver-3.14.1.0/src/Distribution/Solver/Types/SourcePackage.hs
    2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/src/Distribution/Solver/Types/SourcePackage.hs
    2001-09-09 03:46:40.000000000 +0200
@@ -1,5 +1,4 @@
 {-# LANGUAGE DeriveGeneric #-}
-{-# LANGUAGE DeriveDataTypeable #-}
 module Distribution.Solver.Types.SourcePackage
     ( PackageDescriptionOverride
     , SourcePackage(..)
@@ -25,7 +24,7 @@
   , srcpkgSource        :: loc
   , srcpkgDescrOverride :: PackageDescriptionOverride
   }
-  deriving (Eq, Show, Generic, Typeable)
+  deriving (Eq, Show, Generic)
 
 instance Binary loc => Binary (SourcePackage loc)
 instance Structured loc => Structured (SourcePackage loc)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cabal-install-solver-3.14.1.0/tests/UnitTests/Distribution/Solver/Modular/MessageUtils.hs
 
new/cabal-install-solver-3.16.0.0/tests/UnitTests/Distribution/Solver/Modular/MessageUtils.hs
--- 
old/cabal-install-solver-3.14.1.0/tests/UnitTests/Distribution/Solver/Modular/MessageUtils.hs
       2001-09-09 03:46:40.000000000 +0200
+++ 
new/cabal-install-solver-3.16.0.0/tests/UnitTests/Distribution/Solver/Modular/MessageUtils.hs
       2001-09-09 03:46:40.000000000 +0200
@@ -58,9 +58,9 @@
 isOutOfBounds range a b = not $ withinRange range a b
 
 testRange :: Int -> [String] -> String ->  Assertion
-testRange range elems erronousElement = assertBool "String should be out of 
bounds to make a spelling suggestion" (isOutOfBounds range erronousElement 
suggestion)
+testRange range elems erroneousElement = assertBool "String should be out of 
bounds to make a spelling suggestion" (isOutOfBounds range erroneousElement 
suggestion)
   where
-    suggestion = mostSimilarElement erronousElement elems
+    suggestion = mostSimilarElement erroneousElement elems
 
 outOfBounds :: [String]
 outOfBounds =

++++++ cabal-install-solver.cabal ++++++
--- /var/tmp/diff_new_pack.hTPgp9/_old  2026-11-24 12:30:38.995174486 +0100
+++ /var/tmp/diff_new_pack.hTPgp9/_new  2026-11-24 12:30:39.002174782 +0100
@@ -1,6 +1,6 @@
-cabal-version: 2.2
+cabal-version: 3.6
 name:          cabal-install-solver
-version:       3.14.1.0
+version:       3.16.0.0
 x-revision: 1
 synopsis:      The solver component of cabal-install
 description:
@@ -12,7 +12,7 @@
 license-file:  LICENSE
 author:        Cabal Development Team (see AUTHORS file)
 maintainer:    Cabal Development Team <[email protected]>
-copyright:     2003-2024, Cabal Development Team
+copyright:     2003-2025, Cabal Development Team
 category:      Distribution
 build-type:    Simple
 extra-doc-files:
@@ -39,7 +39,7 @@
   hs-source-dirs:   src-assertion
   ghc-options:
     -Wall -Wcompat -Wnoncanonical-monad-instances
-    -fwarn-tabs -fwarn-incomplete-uni-patterns
+    -Wtabs -Wincomplete-uni-patterns
 
   if impl(ghc < 8.8)
     ghc-options: -Wnoncanonical-monadfail-instances
@@ -102,9 +102,9 @@
     , array         >=0.4      && <0.6
     , base          >=4.13     && <4.23
     , bytestring    >=0.10.6.0 && <0.13
-    , Cabal         ^>=3.14
-    , Cabal-syntax  ^>=3.14
-    , containers    >=0.5.6.2  && <0.8
+    , Cabal         ^>=3.16
+    , Cabal-syntax  ^>=3.16
+    , containers    >=0.5.6.2  && <0.9
     , edit-distance ^>= 0.2.2
     , directory     >= 1.3.7.0  && < 1.4
     , filepath      ^>=1.4.0.0 || ^>=1.5.0.0
@@ -119,7 +119,8 @@
 
   if flag(debug-tracetree)
     cpp-options:   -DDEBUG_TRACETREE
-    build-depends: tracetree ^>=0.1
+    build-depends:
+      , tracetree ^>=0.1
 
 Test-Suite unit-tests
    default-language: Haskell2010

Reply via email to