packages/stm.git
3 years agoBump to version 2.4.4.1 and prepare for release v2.4.4.1
Herbert Valerio Riedel [Tue, 22 Dec 2015 12:49:22 +0000 (13:49 +0100)] 
Bump to version 2.4.4.1 and prepare for release

3 years agoUpdate output D1426
Simon Marlow [Wed, 4 Nov 2015 23:44:01 +0000 (23:44 +0000)] 
Update output

3 years agoRelax upper bound on `base` to allow GHC8/base-4.9
Herbert Valerio Riedel [Wed, 28 Oct 2015 20:54:22 +0000 (21:54 +0100)] 
Relax upper bound on `base` to allow GHC8/base-4.9

3 years agoAnother rework of Weak interface
Ben Gamari [Thu, 24 Sep 2015 15:40:15 +0000 (17:40 +0200)] 
Another rework of Weak interface

3 years agomkWeak# now expects raw State# function
Ben Gamari [Tue, 22 Sep 2015 23:26:31 +0000 (01:26 +0200)] 
mkWeak# now expects raw State# function

Fallout from GHC Trac #10867.

3 years agostm: Fix test case
Ben Gamari [Wed, 2 Sep 2015 13:34:00 +0000 (09:34 -0400)] 
stm: Fix test case

4 years agoBump to 2.4.4 and update changelog stm-2.4.4-release
Herbert Valerio Riedel [Wed, 17 Dec 2014 10:41:23 +0000 (11:41 +0100)] 
Bump to 2.4.4 and update changelog

4 years agoAvoid AMP-caused redundant import warning
Herbert Valerio Riedel [Wed, 17 Dec 2014 10:48:04 +0000 (11:48 +0100)] 
Avoid AMP-caused redundant import warning

4 years agoAdd `@since` annotations
Herbert Valerio Riedel [Wed, 17 Dec 2014 10:40:36 +0000 (11:40 +0100)] 
Add `@since` annotations

4 years agoFix build breakage bogons, due to bad patch application
Austin Seipp [Mon, 15 Dec 2014 17:51:18 +0000 (11:51 -0600)] 
Fix build breakage bogons, due to bad patch application

Signed-off-by: Austin Seipp <austin@well-typed.com>
4 years agoAdd mkWeakTMVar to Control.Concurrent.STM.TMVar
Bas van Dijk [Mon, 15 Dec 2014 15:33:17 +0000 (09:33 -0600)] 
Add mkWeakTMVar to Control.Concurrent.STM.TMVar

4 years agoTighten Safe Haskell bounds.
David Terei [Thu, 13 Nov 2014 01:35:21 +0000 (17:35 -0800)] 
Tighten Safe Haskell bounds.

4 years agoM-x untabify & M-x delete-trailing-whitespace
Herbert Valerio Riedel [Tue, 11 Nov 2014 21:23:30 +0000 (22:23 +0100)] 
M-x untabify & M-x delete-trailing-whitespace

4 years agoUpdate Travis CI job
Herbert Valerio Riedel [Tue, 11 Nov 2014 21:13:55 +0000 (22:13 +0100)] 
Update Travis CI job

4 years agoBump `base` constraint for AMP
Herbert Valerio Riedel [Tue, 9 Sep 2014 15:34:28 +0000 (17:34 +0200)] 
Bump `base` constraint for AMP

4 years agoIgnore GHC test suite generated files.
Edward Z. Yang [Fri, 22 Aug 2014 13:21:21 +0000 (14:21 +0100)] 
Ignore GHC test suite generated files.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
5 years agoadd testsuite-related gitignore entries
Herbert Valerio Riedel [Thu, 26 Jun 2014 21:28:37 +0000 (23:28 +0200)] 
add testsuite-related gitignore entries

5 years agoAdd .gitignore file.
Edward Z. Yang [Thu, 26 Jun 2014 16:19:02 +0000 (09:19 -0700)] 
Add .gitignore file.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
5 years agoReplace deprecated pragmas by current LANGUAGE pragmas
Herbert Valerio Riedel [Tue, 25 Mar 2014 21:28:17 +0000 (22:28 +0100)] 
Replace deprecated pragmas by current LANGUAGE pragmas

This reduces the amount of compile warnings for the stm test-cases

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agostm064 was only fixed in GHC 7.6.2 ghc-7.8 ghc-7.8.1-release ghc-7.8.2-release stm-2.4.3-release
Herbert Valerio Riedel [Tue, 25 Mar 2014 20:35:35 +0000 (21:35 +0100)] 
stm064 was only fixed in GHC 7.6.2

This should fix the Travis-CI job for good

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoTweak tests/runtests.sh to make it pass for older GHCs
Herbert Valerio Riedel [Tue, 25 Mar 2014 19:11:08 +0000 (20:11 +0100)] 
Tweak tests/runtests.sh to make it pass for older GHCs

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoFix-up travis-CI script
Herbert Valerio Riedel [Tue, 25 Mar 2014 13:13:34 +0000 (14:13 +0100)] 
Fix-up travis-CI script

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoIntegrate tests with TravisCI job
Herbert Valerio Riedel [Tue, 25 Mar 2014 13:05:47 +0000 (14:05 +0100)] 
Integrate tests with TravisCI job

A simple bash runner-script is included as the GHC testsuite runner
isn't available for the Travis-CI job

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoBump to version 2.4.3 and convert changelog to markdown
Herbert Valerio Riedel [Sat, 22 Mar 2014 21:19:34 +0000 (22:19 +0100)] 
Bump to version 2.4.3 and convert changelog to markdown

The minor version bump is needed because new function were added since
last released version 2.4.2.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoAdd Travis-CI script & README
Herbert Valerio Riedel [Sun, 3 Nov 2013 12:09:44 +0000 (13:09 +0100)] 
Add Travis-CI script & README

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoRefactor & update `stm.cabal` to `cabal-version>=1.10`
Herbert Valerio Riedel [Mon, 14 Oct 2013 20:02:35 +0000 (22:02 +0200)] 
Refactor & update `stm.cabal` to `cabal-version>=1.10`

As the current code fails to build with GHC 6.10, I've updated the Cabal
meta-data to declare support for GHC>=6.12 and dropped support for
base3. This also moves the changelog from the Cabal description field
into a separate `changelog` file and adds a few entries.

The code compiles warning-free for all tested GHC versions.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
5 years agoadd mkWeakTVar (#7991)
Simon Marlow [Fri, 27 Sep 2013 01:09:25 +0000 (02:09 +0100)] 
add mkWeakTVar (#7991)

5 years agobump to 2.4.2.1
Simon Marlow [Mon, 27 May 2013 19:11:16 +0000 (20:11 +0100)] 
bump to 2.4.2.1

5 years agosync newBroadcastTChanIO with newBroadcastTChan
Simon Marlow [Mon, 27 May 2013 19:08:39 +0000 (20:08 +0100)] 
sync newBroadcastTChanIO with newBroadcastTChan

Spotted by wren ng thornton <wren@freegeek.org> on
libraries@haskell.org

5 years agoUpdate Git repo URL in `.cabal` file
Herbert Valerio Riedel [Wed, 11 Sep 2013 13:15:01 +0000 (15:15 +0200)] 
Update Git repo URL in `.cabal` file

5 years agoImplement isFullTBQueue
Austin Seipp [Sat, 7 Sep 2013 00:28:54 +0000 (19:28 -0500)] 
Implement isFullTBQueue

This was proposed on the libraries@ mailing list by Merijn with no
objections.

Authored-by: Merijn Verstraaten <merijn@inconsistent.nl>
Signed-off-by: Austin Seipp <aseipp@pobox.com>
6 years agoFix the names of several tests.
Austin Seipp [Sat, 4 May 2013 22:05:53 +0000 (17:05 -0500)] 
Fix the names of several tests.

They should follow the 'Txxxx' convention.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
6 years agoadd test for cloneTChan
Simon Marlow [Mon, 18 Feb 2013 11:01:55 +0000 (11:01 +0000)] 
add test for cloneTChan

6 years agofollow changes in testsuite driver
Simon Marlow [Mon, 18 Feb 2013 11:01:31 +0000 (11:01 +0000)] 
follow changes in testsuite driver

6 years agoput cloneTChan next to dupTChan in the docs
Simon Marlow [Mon, 18 Feb 2013 10:55:40 +0000 (10:55 +0000)] 
put cloneTChan next to dupTChan in the docs

6 years agoadd another test for #7493
Simon Marlow [Tue, 18 Dec 2012 09:29:44 +0000 (09:29 +0000)] 
add another test for #7493

6 years agoadd stm064 test
Simon Marlow [Tue, 11 Dec 2012 14:54:18 +0000 (14:54 +0000)] 
add stm064 test

6 years agoAdd a test for orElse bug
Simon Marlow [Mon, 10 Dec 2012 12:18:33 +0000 (12:18 +0000)] 
Add a test for orElse bug

Fixed in GHC commit f184d9caffa09750ef6a374a7987b9213d6db28e, see that
for more details.

6 years agofix warning
Simon Marlow [Mon, 19 Nov 2012 10:45:29 +0000 (10:45 +0000)] 
fix warning

6 years agoAdd TSem, bump version to 2.4.2
Simon Marlow [Fri, 16 Nov 2012 21:48:12 +0000 (21:48 +0000)] 
Add TSem, bump version to 2.4.2

6 years agoThrow an exception when reading from a broadcast channel (#7218)
Simon Marlow [Thu, 6 Sep 2012 08:46:20 +0000 (09:46 +0100)] 
Throw an exception when reading from a broadcast channel (#7218)

6 years agomodify to use TVar instead of QSemN (which has gone)
Simon Marlow [Thu, 23 Aug 2012 08:46:31 +0000 (09:46 +0100)] 
modify to use TVar instead of QSemN (which has gone)

6 years agofix warnings
Simon Marlow [Thu, 9 Aug 2012 08:50:55 +0000 (09:50 +0100)] 
fix warnings

6 years agoAdd Applicative/Alternative instances of STM for GHC <7.0 (#4076)
Simon Marlow [Wed, 8 Aug 2012 09:45:59 +0000 (10:45 +0100)] 
Add Applicative/Alternative instances of STM for GHC <7.0 (#4076)

7 years agoChange the type of check to Bool -> STM ()
Simon Marlow [Thu, 5 Jul 2012 13:51:43 +0000 (14:51 +0100)] 
Change the type of check to Bool -> STM ()

Previously it was

  check :: Bool -> STM a

and it returned undefined when passed True.  This doesn't seem useful,
and causes GHC to warn about an unused result.

(suggestion by Favonia <favonia@gmail.com> on libraries@haskell.org)

7 years agore-export TQueue from Control.Concurrent.STM 2.4
Simon Marlow [Wed, 4 Jul 2012 10:33:11 +0000 (11:33 +0100)] 
re-export TQueue from Control.Concurrent.STM

7 years agofix markup
Simon Marlow [Wed, 4 Jul 2012 10:28:44 +0000 (11:28 +0100)] 
fix markup

7 years agoadd Eq instances
Simon Marlow [Wed, 4 Jul 2012 10:28:36 +0000 (11:28 +0100)] 
add Eq instances

7 years agoallow using a different ghc
Simon Marlow [Wed, 4 Jul 2012 10:24:48 +0000 (11:24 +0100)] 
allow using a different ghc

7 years agoAdd TBQueue, bump version to 2.4 and document changes since 2.3
Simon Marlow [Wed, 4 Jul 2012 10:21:10 +0000 (11:21 +0100)] 
Add TBQueue, bump version to 2.4 and document changes since 2.3

7 years agoadd TBQueue to the benchmark, and add a Makefile driver
Simon Marlow [Wed, 4 Jul 2012 10:20:45 +0000 (11:20 +0100)] 
add TBQueue to the benchmark, and add a Makefile driver

7 years agotypo
Simon Marlow [Wed, 4 Jul 2012 10:09:45 +0000 (11:09 +0100)] 
typo

7 years agorearrange module header
Simon Marlow [Mon, 2 Jul 2012 11:51:01 +0000 (12:51 +0100)] 
rearrange module header

7 years agoAdd newBroadcastTChan and newBroadcastTChanIO
Joey Adams [Sat, 3 Mar 2012 02:10:51 +0000 (21:10 -0500)] 
Add newBroadcastTChan and newBroadcastTChanIO

7 years agoMinor grammar fix in documentation of newTChan
Joey Adams [Sat, 3 Mar 2012 02:07:10 +0000 (21:07 -0500)] 
Minor grammar fix in documentation of newTChan

7 years agoGive TChan an Eq instance.
Joey Adams [Sat, 3 Mar 2012 02:05:28 +0000 (21:05 -0500)] 
Give TChan an Eq instance.

TVar, TMVar, TArray, and Chan all have Eq instances.
Why doesn't TChan have one, too?

7 years agoFix build with GHC HEAD
Ian Lynagh [Sun, 24 Jun 2012 13:28:08 +0000 (14:28 +0100)] 
Fix build with GHC HEAD

7 years agore-export TQueue
Simon Marlow [Fri, 15 Jun 2012 09:12:47 +0000 (10:12 +0100)] 
re-export TQueue

7 years agoadd a channel benchmark
Simon Marlow [Fri, 15 Jun 2012 09:09:34 +0000 (10:09 +0100)] 
add a channel benchmark

7 years agoAdd TQueue, a faster TChan without dup/clone operations
Simon Marlow [Fri, 15 Jun 2012 08:46:31 +0000 (09:46 +0100)] 
Add TQueue, a faster TChan without dup/clone operations

7 years agoadd some UNPACKs to improve performance a bit
Simon Marlow [Tue, 12 Jun 2012 09:56:43 +0000 (10:56 +0100)] 
add some UNPACKs to improve performance a bit

7 years agoadd cloneTChan (GHC Trac ticket #6157)
Simon Marlow [Mon, 11 Jun 2012 11:21:43 +0000 (12:21 +0100)] 
add cloneTChan (GHC Trac ticket #6157)

7 years agoadd source-repository, bump cabal-version
Simon Marlow [Tue, 28 Feb 2012 10:12:58 +0000 (10:12 +0000)] 
add source-repository, bump cabal-version

7 years agoadd some reqlib('random')s 2.3
Simon Marlow [Mon, 9 Jan 2012 11:58:04 +0000 (11:58 +0000)] 
add some reqlib('random')s

7 years agoMark all modules as Trustworthy
Bas van Dijk [Sun, 25 Dec 2011 18:05:32 +0000 (19:05 +0100)] 
Mark all modules as Trustworthy

7 years agoisEmptyTMVar: remove bogus comment, cut and pasted from isEmptyMVar
Simon Marlow [Tue, 22 Nov 2011 16:42:52 +0000 (16:42 +0000)] 
isEmptyTMVar: remove bogus comment, cut and pasted from isEmptyMVar

7 years agoFix a few typos
Daniel Fischer [Tue, 4 Oct 2011 19:45:03 +0000 (21:45 +0200)] 
Fix a few typos

7 years agoWhitespace only
Daniel Fischer [Tue, 4 Oct 2011 18:23:02 +0000 (20:23 +0200)] 
Whitespace only

8 years agooops, delete patch-droppings that I accidentally added
Simon Marlow [Wed, 13 Apr 2011 11:25:16 +0000 (12:25 +0100)] 
oops, delete patch-droppings that I accidentally added

8 years agoReplaced talk of "blocking" with "retrying"
Simon Marlow [Mon, 11 Apr 2011 10:06:37 +0000 (11:06 +0100)] 
Replaced talk of "blocking" with "retrying"

8 years agoControl.Concurrent.STM.TVar: added modifyTVar, modifyTVar', swapTVar
Simon Marlow [Mon, 11 Apr 2011 10:06:24 +0000 (11:06 +0100)] 
Control.Concurrent.STM.TVar: added modifyTVar, modifyTVar', swapTVar

8 years agoControl.Concurrent.STM.TVar: cleaning up order of exports
Simon Marlow [Mon, 11 Apr 2011 10:06:14 +0000 (11:06 +0100)] 
Control.Concurrent.STM.TVar: cleaning up order of exports

8 years agoControl.Concurrent.STM.TMVar: added tryReadTMVar
Simon Marlow [Mon, 11 Apr 2011 10:06:05 +0000 (11:06 +0100)] 
Control.Concurrent.STM.TMVar: added tryReadTMVar

8 years agoControl.Concurrent.STM.TChan: added tryReadTChan, peekTChan, tryPeekTChan
Simon Marlow [Mon, 11 Apr 2011 10:05:54 +0000 (11:05 +0100)] 
Control.Concurrent.STM.TChan: added tryReadTChan, peekTChan, tryPeekTChan

8 years agobump major (new MonadFix instance) ghc-darcs-git-switchover
Simon Marlow [Fri, 25 Mar 2011 12:54:27 +0000 (12:54 +0000)] 
bump major (new MonadFix instance)

8 years agowarning fix
Simon Marlow [Fri, 25 Mar 2011 12:54:18 +0000 (12:54 +0000)] 
warning fix

8 years agoAdd MonadFix instance (from proposal by Sebastiaan Visser on libraries@)
Simon Marlow [Fri, 25 Mar 2011 12:53:29 +0000 (12:53 +0000)] 
Add MonadFix instance (from proposal by Sebastiaan Visser on libraries@)

8 years agoFix stackoverflow in the newArray methods of a TArray
Bas van Dijk [Wed, 23 Mar 2011 19:34:03 +0000 (19:34 +0000)] 
Fix stackoverflow in the newArray methods of a TArray
The following caused a stackoverflow:
atomically $ (newArray_ (0,1000000) :: STM (TArray Int Int))
This happened because newArray_ was defined using replicateM
which is defined using sequence which uses a right fold
which pushes the result of the monadic computation on the stack
then continues with the rest until the stack overflows.

8 years agoremove imports of haskell98 modules
Simon Marlow [Tue, 8 Feb 2011 09:02:14 +0000 (09:02 +0000)] 
remove imports of haskell98 modules

8 years agobump version to 2.2.0.1
Simon Marlow [Wed, 3 Nov 2010 08:57:37 +0000 (08:57 +0000)] 
bump version to 2.2.0.1

8 years agomake it build with GHC 6.12
Simon Marlow [Wed, 3 Nov 2010 08:56:17 +0000 (08:56 +0000)] 
make it build with GHC 6.12

8 years agoWarning police: -fglasgow-exts is deprecated: Use individual extensions instead
Bas van Dijk [Wed, 20 Oct 2010 22:19:51 +0000 (22:19 +0000)] 
Warning police: -fglasgow-exts is deprecated: Use individual extensions instead

8 years agobump version to 2.2.0.0 following change to catchSTM
Simon Marlow [Wed, 20 Oct 2010 14:01:50 +0000 (14:01 +0000)] 
bump version to 2.2.0.0 following change to catchSTM

8 years agoupdate tests after change to catchSTM
Simon Marlow [Wed, 20 Oct 2010 14:00:46 +0000 (14:00 +0000)] 
update tests after change to catchSTM

8 years agoAdd throwSTM :: Exception e => e -> STM a
Bas van Dijk [Sun, 26 Sep 2010 18:18:24 +0000 (18:18 +0000)] 
Add throwSTM :: Exception e => e -> STM a

8 years agoadd parens around MIN_VERSION_base(4,3,0) to workaround bug with older Cabal
Simon Marlow [Tue, 5 Oct 2010 09:36:58 +0000 (09:36 +0000)] 
add parens around MIN_VERSION_base(4,3,0) to workaround bug with older Cabal

9 years agobump to 2.1.2.2 2_1_2_2
Simon Marlow [Thu, 15 Jul 2010 15:31:39 +0000 (15:31 +0000)] 
bump to 2.1.2.2

9 years agoadd parens around MIN_VERSION_base(4,2,0) to fix problems with older Cabals
Simon Marlow [Thu, 15 Jul 2010 15:28:34 +0000 (15:28 +0000)] 
add parens around MIN_VERSION_base(4,2,0) to fix problems with older Cabals

9 years agoTAG 2.1.2.1
Simon Marlow [Mon, 5 Jul 2010 13:19:27 +0000 (13:19 +0000)] 
TAG 2.1.2.1

9 years agobump to 2.1.2.1
Simon Marlow [Mon, 5 Jul 2010 13:19:13 +0000 (13:19 +0000)] 
bump to 2.1.2.1

9 years agoMake it compile with base<4.2
Simon Marlow [Mon, 5 Jul 2010 13:18:31 +0000 (13:18 +0000)] 
Make it compile with base<4.2

9 years agoadd test for #4057
Simon Marlow [Tue, 15 Jun 2010 12:38:01 +0000 (12:38 +0000)] 
add test for #4057

9 years agodisable the MonadPlus instance for base >= 4.3.0.0 (it moved to GHC.Conc)
Simon Marlow [Tue, 1 Jun 2010 15:13:21 +0000 (15:13 +0000)] 
disable the MonadPlus instance for base >= 4.3.0.0 (it moved to GHC.Conc)

9 years agoAdded Applicative instance for Control.Sequential.STM
Bas van Dijk [Sun, 16 May 2010 11:28:58 +0000 (11:28 +0000)] 
Added Applicative instance for Control.Sequential.STM

9 years agoDerived Eq instance for TArray
Bas van Dijk [Sat, 10 Apr 2010 13:37:07 +0000 (13:37 +0000)] 
Derived Eq instance for TArray

9 years agoDerived Typeable instance for TArray
Bas van Dijk [Sat, 10 Apr 2010 13:36:30 +0000 (13:36 +0000)] 
Derived Typeable instance for TArray

9 years agoDerived Typeable instance for TChan
Bas van Dijk [Sat, 10 Apr 2010 13:35:23 +0000 (13:35 +0000)] 
Derived Typeable instance for TChan

9 years agoDerived Eq and Typeable instances for TMVar
Bas van Dijk [Sat, 10 Apr 2010 13:34:56 +0000 (13:34 +0000)] 
Derived Eq and Typeable instances for TMVar

9 years agobumping version 2.1.1.2 -> 2.1.2.0, as readTVarIO was added 2_1_2_0
Simon Marlow [Thu, 22 Apr 2010 08:54:38 +0000 (08:54 +0000)] 
bumping version 2.1.1.2 -> 2.1.2.0, as readTVarIO was added

It looks like when 2.1.1.2 was uploaded to Hackage, the export of
readTVarIO from Control.Concurrent.STM.TVar was removed manually,
although it is in the repository under the tag 2.1.1.2.  So the Hackage
2.1.1.2 and the darcs 2.1.1.2 differ by this one line:

*** stm-2.1.1.2/Control/Concurrent/STM/TVar.hs  2008-11-01 20:43:37.000000000 +0000
--- stm/Control/Concurrent/STM/TVar.hs  2010-04-22 09:49:01.000000000 +0100
***************
*** 19,24 ****
--- 19,25 ----
        readTVar,
        writeTVar,
        newTVarIO,
+         readTVarIO,
  #ifdef __GLASGOW_HASKELL__
        registerDelay
  #endif

To restore normality I'm bumping the version number and I'll upload a
new release to Hackage.

9 years agorename these tests from conc* to stm*
Simon Marlow [Tue, 30 Mar 2010 14:26:23 +0000 (14:26 +0000)] 
rename these tests from conc* to stm*