Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for [`process` package](http://hackage.haskell.org/package/process)

## 1.6.26.2 *March 2026*

* Fix `@since` annotations

## 1.6.26.1 *May 2025*

* Regenerate `configure` script (#343)
Expand Down
2 changes: 1 addition & 1 deletion process.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: process
version: 1.6.26.1
version: 1.6.26.2
-- NOTE: Don't forget to update ./changelog.md
license: BSD-3-Clause
license-file: LICENSE
Expand Down
18 changes: 16 additions & 2 deletions test/Setup.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -Wall #-}

module Main (main) where
Expand Down Expand Up @@ -31,6 +32,10 @@ import Distribution.Types.TargetInfo
( targetComponent )
import Distribution.Types.UnqualComponentName
( unUnqualComponentName )
#if MIN_VERSION_Cabal(3,16,0)
import Distribution.Utils.Path
( SymbolicPathX, interpretSymbolicPathCWD)
#endif

-- directory
import System.Directory
Expand All @@ -45,6 +50,15 @@ import System.FilePath
main :: IO ()
main = defaultMainWithHooks testProcessHooks

#if MIN_VERSION_Cabal(3,16,0)
pathToString ::
SymbolicPathX allowAbsolute from to -> String
pathToString = interpretSymbolicPathCWD
#else
pathToString :: String -> String
pathToString = id
#endif

-- The following code works around Cabal bug #9854.
--
-- The process-tests package has an executable component named "cli-child",
Expand All @@ -57,7 +71,7 @@ testProcessHooks =
simpleUserHooks
{ buildHook = \ pd lbi userHooks buildFlags ->
withTestLBI pd lbi $ \ _testSuite clbi -> do
let pathsFile = autogenComponentModulesDir lbi clbi </> "Test" </> "Paths" <.> "hs"
let pathsFile = pathToString (autogenComponentModulesDir lbi clbi) </> "Test" </> "Paths" <.> "hs"
createDirectoryIfMissing True (takeDirectory pathsFile)
writeFile pathsFile $ unlines
[ "module Test.Paths where"
Expand All @@ -74,6 +88,6 @@ processInternalExes pd lbi =
, CExe exe <- [targetComponent tgt]
, let toolName = unUnqualComponentName $ exeName exe
toolLocation =
buildDir lbi
pathToString (buildDir lbi)
</> (toolName </> toolName <.> exeExtension (hostPlatform lbi))
]
6 changes: 3 additions & 3 deletions test/process-tests.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: process-tests
version: 1.6.26.1
version: 1.6.26.2
license: BSD-3-Clause
license-file: LICENSE
maintainer: libraries@haskell.org
Expand All @@ -18,14 +18,14 @@ source-repository head

common process-dep
build-depends:
process == 1.6.26.1
process == 1.6.26.2

custom-setup
setup-depends:
base >= 4.10 && < 4.23,
directory >= 1.1 && < 1.4,
filepath >= 1.2 && < 1.6,
Cabal >= 2.4 && < 3.14,
Cabal >= 2.4 && < 3.18,

-- Test executable for the CommunicationHandle functionality
executable cli-child
Expand Down
Loading