packages feed

distributed-process-async 0.2.10 → 0.2.11

raw patch · 3 files changed

+17/−28 lines, 3 filesdep +tastydep +tasty-hunitdep −ansi-terminaldep −containersdep −data-accessordep ~stmPVP ok

version bump matches the API change (PVP)

Dependencies added: tasty, tasty-hunit

Dependencies removed: ansi-terminal, containers, data-accessor, deepseq, fingertree, hashable, mtl, network, test-framework, test-framework-hunit, time, transformers, unordered-containers

Dependency ranges changed: stm

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,8 @@+2025-02-04 Laurent P. René de Cotret <laurent.decotret@outlook.com> 0.2.11++* Ported test suite to use `tasty` rather than `test-framework`.+* Removed unused dependencies (#467)+ 2024-10-30  David Simmons-Duffin <dsd@caltech.edu> 0.2.10  * Bump dependency bound for ansi-terminal
distributed-process-async.cabal view
@@ -1,6 +1,6 @@ cabal-version:  3.0 name:           distributed-process-async-version:        0.2.10+version:        0.2.11 build-type:     Simple license:        BSD-3-Clause license-file:   LICENCE@@ -15,7 +15,7 @@                 concurrent, possibly distributed Process that will eventually deliver a value of type a.                 The package provides ways to create Async computations, wait for their results, and cancel them. category:       Control-tested-with:   GHC==8.10.7 GHC==9.0.2 GHC==9.2.8 GHC==9.4.5 GHC==9.6.4 GHC==9.8.2 GHC==9.10.1+tested-with:   GHC==8.10.7 GHC==9.0.2 GHC==9.2.8 GHC==9.4.5 GHC==9.6.4 GHC==9.8.2 GHC==9.10.1 GHC==9.12.1 extra-doc-files: CHANGELOG.md  source-repository head@@ -32,24 +32,16 @@                  -Wredundant-constraints                  -fhide-source-paths                  -Wpartial-fields+                 -Wunused-packages  library   import:          warnings   build-depends:                    base >= 4.14 && < 5,-                   data-accessor >= 0.2.2.3,                    distributed-process >= 0.6.1 && < 0.8,                    exceptions >= 0.10 && < 1.0,                    binary >= 0.8 && < 0.9,-                   deepseq >= 1.4 && < 1.7,-                   mtl,-                   containers >= 0.6 && < 0.8,-                   hashable >= 1.2.0.5 && < 1.6,-                   unordered-containers >= 0.2.3.0 && < 0.3,-                   fingertree < 0.2,                    stm >= 2.4 && < 2.6,-                   time >= 1.9,-                   transformers   default-extensions:      CPP                    InstanceSigs   hs-source-dirs:   src@@ -65,23 +57,15 @@   x-uses-tf:       true   build-depends:                    base >= 4.14 && < 5,-                   ansi-terminal >= 0.5 && < 1.2,                    distributed-process,                    distributed-process-async,                    distributed-process-systest ^>= 0.4,-                   exceptions >= 0.10 && < 1.0,-                   network >= 2.5 && < 3.3,                    network-transport >= 0.4 && < 0.6,                    network-transport-tcp >= 0.6 && < 0.9,                    binary >= 0.8 && < 0.9,-                   deepseq >= 1.4 && < 1.7,-                   -- HUnit >= 1.2 && < 2,-                   stm >= 2.3 && < 2.6,-                   test-framework >= 0.6 && < 0.9,-                   test-framework-hunit,-                   transformers-  hs-source-dirs:-                   tests+                   tasty >= 1.5 && <1.6,+                   tasty-hunit >=0.10 && <0.11,+  hs-source-dirs:  tests   default-language: Haskell2010   ghc-options:     -threaded -rtsopts -with-rtsopts=-N -fno-warn-unused-do-bind   default-extensions:      CPP
tests/TestAsync.hs view
@@ -17,8 +17,8 @@ import Network.Transport.TCP import qualified Network.Transport as NT -import Test.Framework (Test, testGroup, defaultMain)-import Test.Framework.Providers.HUnit (testCase)+import Test.Tasty(TestTree, testGroup, defaultMain)+import Test.Tasty.HUnit (testCase)  testAsyncPoll :: TestResult (AsyncResult ()) -> Process () testAsyncPoll result = do@@ -158,8 +158,8 @@     myNode <- getSelfNode     fib (myNode,6) >>= stash result -tests :: LocalNode  -> [Test]-tests localNode = [+tests :: LocalNode -> TestTree+tests localNode = testGroup "" [     testGroup "Handling async results with STM" [           testCase "testAsyncCancel"             (delayedAssertion@@ -210,14 +210,14 @@       ]   ] -asyncStmTests :: NT.Transport -> IO [Test]+asyncStmTests :: NT.Transport -> IO TestTree asyncStmTests transport = do   localNode <- newLocalNode transport $ __remoteTableDecl initRemoteTable   let testData = tests localNode   return testData  -- | Given a @builder@ function, make and run a test suite on a single transport-testMain :: (NT.Transport -> IO [Test]) -> IO ()+testMain :: (NT.Transport -> IO TestTree) -> IO () testMain builder = do   Right (transport, _) <- createTransportExposeInternals (defaultTCPAddr "127.0.0.1" "0") defaultTCPParameters   testData <- builder transport