SuffixHandler: add Suffix newtype
commit65905b980e5c79362cfe62416720aee3f78e5628
authorsheaf <sam.derbyshire@gmail.com>
Tue, 19 Dec 2023 13:25:38 +0000 (19 14:25 +0100)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Wed, 21 Feb 2024 15:32:31 +0000 (21 15:32 +0000)
treebf47879d7630ad68055eba77f157ab80baad1452
parent2acae632a0d625cd5b54aeb257fc83188344fa03
SuffixHandler: add Suffix newtype

This commit adds a Suffix newtype to describe suffixes as handled
by suffix handlers & preprocessors, and changes the PPSuffixHandler
type definition to use it.

It also moves some type definitions from Distribution.Simple.PreProcess
to the new module Distribution.Simple.PreProcess.Types.

As this commit changes the definition of PPSuffixHandler, it will
break custom Setup scripts which use the 'hookedPreProcessors'
functionality.
14 files changed:
Cabal/Cabal.cabal
Cabal/src/Distribution/Simple/BuildPaths.hs
Cabal/src/Distribution/Simple/Errors.hs
Cabal/src/Distribution/Simple/GHC.hs
Cabal/src/Distribution/Simple/GHC/Build/Link.hs
Cabal/src/Distribution/Simple/GHCJS.hs
Cabal/src/Distribution/Simple/PreProcess.hs
Cabal/src/Distribution/Simple/PreProcess/Types.hs [new file with mode: 0644]
Cabal/src/Distribution/Simple/SrcDist.hs
Cabal/src/Distribution/Simple/Utils.hs
cabal-install/src/Distribution/Client/RebuildMonad.hs
cabal-install/src/Distribution/Client/SourceFiles.hs
cabal-testsuite/PackageTests/AutogenModulesToggling/Setup.hs
cabal-testsuite/PackageTests/CustomPreProcess/Setup.hs