packages/stm.git
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*

9 years agosuppress some warnings
Simon Marlow [Tue, 30 Mar 2010 13:56:43 +0000 (13:56 +0000)] 
suppress some warnings

9 years agoUpdate tests for GHC 6.12
Simon Marlow [Wed, 14 Oct 2009 13:26:27 +0000 (13:26 +0000)] 
Update tests for GHC 6.12

10 years agoadd test for #3049
Simon Marlow [Wed, 24 Jun 2009 14:15:07 +0000 (14:15 +0000)] 
add test for #3049

10 years agoadd readIORef to sequential implementation
Ross Paterson [Fri, 16 Jan 2009 18:46:42 +0000 (18:46 +0000)] 
add readIORef to sequential implementation

10 years agoTAG stm 2.1.1.2
Ian Lynagh [Fri, 12 Dec 2008 15:17:05 +0000 (15:17 +0000)] 
TAG stm 2.1.1.2

10 years agoAdd a bit of strictness to avoid this test getting into a bad state
Simon Marlow [Thu, 20 Nov 2008 12:45:51 +0000 (12:45 +0000)] 
Add a bit of strictness to avoid this test getting into a bad state

10 years agoBump version number to 2.1.1.2
Duncan Coutts [Wed, 22 Oct 2008 02:43:41 +0000 (02:43 +0000)] 
Bump version number to 2.1.1.2

10 years agoMake it build with base 3 and 4
Duncan Coutts [Wed, 22 Oct 2008 02:42:05 +0000 (02:42 +0000)] 
Make it build with base 3 and 4
Uses exactly the same code as before for base 3. So no code changes.
For ghc-6.10 it is forced to always use base4 so there's no way to
build the package two different ways for a single ghc version.

10 years agoUse new-style cabal syntax
Duncan Coutts [Wed, 22 Oct 2008 02:33:52 +0000 (02:33 +0000)] 
Use new-style cabal syntax

10 years agoadd readTVarIO :: TVar a -> IO a
Simon Marlow [Fri, 10 Oct 2008 11:27:31 +0000 (11:27 +0000)] 
add readTVarIO :: TVar a -> IO a

10 years agodoc typo
Simon Marlow [Fri, 3 Oct 2008 13:24:15 +0000 (13:24 +0000)] 
doc typo

10 years agoFix this test (exception changes)
Simon Marlow [Thu, 2 Oct 2008 09:42:57 +0000 (09:42 +0000)] 
Fix this test (exception changes)

10 years agofollow Control.Exception changes
Simon Marlow [Fri, 26 Sep 2008 23:51:20 +0000 (23:51 +0000)] 
follow Control.Exception changes

10 years agoadd test for #2411
Simon Marlow [Fri, 26 Sep 2008 23:38:49 +0000 (23:38 +0000)] 
add test for #2411

11 years agoadd category field 6_10_branch_has_been_forked
Ross Paterson [Sun, 24 Aug 2008 00:30:14 +0000 (00:30 +0000)] 
add category field

11 years agodeclare build-type: Simple
Ross Paterson [Sat, 23 Aug 2008 23:09:23 +0000 (23:09 +0000)] 
declare build-type: Simple

11 years agoMake stm work with extensible exceptions
Ian Lynagh [Tue, 5 Aug 2008 12:58:28 +0000 (12:58 +0000)] 
Make stm work with extensible exceptions

11 years agoTAG GHC 6.8.3 release
Ian Lynagh [Thu, 19 Jun 2008 12:43:52 +0000 (12:43 +0000)] 
TAG GHC 6.8.3 release

11 years agoconc052: still fails profc/profasm for 6.8
Simon Marlow [Tue, 17 Jun 2008 09:08:17 +0000 (09:08 +0000)] 
conc052: still fails profc/profasm for 6.8

11 years agoTAG 2.1.1.1 release 2008-06-06
Ian Lynagh [Wed, 4 Jun 2008 12:31:14 +0000 (12:31 +0000)] 
TAG 2.1.1.1 release

11 years agoBump version to 2.1.1.1
Ian Lynagh [Wed, 4 Jun 2008 12:12:47 +0000 (12:12 +0000)] 
Bump version to 2.1.1.1

11 years agoconc052 was failing due to #1547, but now apparently succeeds
Simon Marlow [Wed, 4 Jun 2008 08:34:41 +0000 (08:34 +0000)] 
conc052 was failing due to #1547, but now apparently succeeds
This might make the bug harder to fix, now that we have no test case...

11 years agoconc048(threaded2) sometimes hangs in the 6.8 branch, so skip it
Ian Lynagh [Fri, 30 May 2008 20:55:20 +0000 (20:55 +0000)] 
conc048(threaded2) sometimes hangs in the 6.8 branch, so skip it
Hangs after:
    [...]
    (0,50)
    T6
Happens in 6.8.2 and soon-to-be-6.8.3.

11 years agoMake conc048 output easier to follow
Ian Lynagh [Fri, 30 May 2008 20:53:35 +0000 (20:53 +0000)] 
Make conc048 output easier to follow

11 years agoSkip conc047(threaded2) in the 6.8 branch
Ian Lynagh [Fri, 30 May 2008 20:42:40 +0000 (20:42 +0000)] 
Skip conc047(threaded2) in the 6.8 branch
It sometimes seems to deadlock after printing
Before
Survived unused retry
Caught: thread blocked indefinitely
(i.e. in the final part of the test). 6.8.2 does it too, so this isn't
a regression in 6.8.3.

11 years agoUpdate skip_if_platform to if_platform(, skip) in the testsuite
Ian Lynagh [Fri, 30 May 2008 20:22:26 +0000 (20:22 +0000)] 
Update skip_if_platform to if_platform(, skip) in the testsuite

11 years agoaccept output (no newline after uncaught exception)
Simon Marlow [Tue, 5 Feb 2008 09:05:47 +0000 (09:05 +0000)] 
accept output (no newline after uncaught exception)

11 years agoTAG GHC 6.8.1 release
Ian Lynagh [Sat, 10 Nov 2007 01:11:05 +0000 (01:11 +0000)] 
TAG GHC 6.8.1 release

11 years agoTAG 2.1.1.0 release
Ian Lynagh [Sat, 10 Nov 2007 01:09:55 +0000 (01:09 +0000)] 
TAG 2.1.1.0 release

11 years agoBump version number
Ian Lynagh [Sat, 27 Oct 2007 12:49:16 +0000 (12:49 +0000)] 
Bump version number

11 years agoadd getNumElements to MArray instance
Simon Marlow [Mon, 15 Oct 2007 10:26:07 +0000 (10:26 +0000)] 
add getNumElements to MArray instance

12 years agoAdd dropped STM invariants functions
shelarcy [Thu, 20 Sep 2007 12:56:33 +0000 (12:56 +0000)] 
Add dropped STM invariants functions

12 years agofix this test some more...
Simon Marlow [Mon, 3 Sep 2007 13:38:37 +0000 (13:38 +0000)] 
fix this test some more...

12 years agoAdd a dep on array
Ian Lynagh [Sun, 5 Aug 2007 20:06:03 +0000 (20:06 +0000)] 
Add a dep on array

12 years agoconc052 test is broken for profc/profasm (trac #1547)
Ian Lynagh [Wed, 18 Jul 2007 13:09:55 +0000 (13:09 +0000)] 
conc052 test is broken for profc/profasm (trac #1547)

12 years agoSkip conc063 when fast
Ian Lynagh [Tue, 17 Jul 2007 11:42:45 +0000 (11:42 +0000)] 
Skip conc063 when fast
It's failing, but in a way that looks valid to me, so stop it tripping
up the validate script.

12 years agoFix test conc053: Don't use pattern sigs gratuitously
Ian Lynagh [Tue, 17 Jul 2007 01:49:02 +0000 (01:49 +0000)] 
Fix test conc053: Don't use pattern sigs gratuitously

12 years ago-fglasgow-exts is required due to type signature in pattern
Simon Marlow [Thu, 7 Jun 2007 10:11:02 +0000 (10:11 +0000)] 
-fglasgow-exts is required due to type signature in pattern

12 years ago--configure-option and --ghc-option are now provided by Cabal
Ross Paterson [Mon, 4 Jun 2007 11:59:37 +0000 (11:59 +0000)] 
--configure-option and --ghc-option are now provided by Cabal

12 years agoRemove Makefile and package.conf.in (used in the old GHC build system)
Ian Lynagh [Thu, 24 May 2007 14:58:34 +0000 (14:58 +0000)] 
Remove Makefile and package.conf.in (used in the old GHC build system)

12 years agoMove STM-specific tests from testsuite/tests/ghc-regress/concurrent/should_run
Simon Marlow [Thu, 17 May 2007 09:01:02 +0000 (09:01 +0000)] 
Move STM-specific tests from testsuite/tests/ghc-regress/concurrent/should_run

12 years agoFollow Cabal changes in Setup.*hs
Ian Lynagh [Wed, 18 Apr 2007 12:13:47 +0000 (12:13 +0000)] 
Follow Cabal changes in Setup.*hs

12 years agoFix -Wall warnings
Ian Lynagh [Wed, 11 Apr 2007 00:50:22 +0000 (00:50 +0000)] 
Fix -Wall warnings

12 years agoAdd missing case in removePrefix
Ian Lynagh [Wed, 11 Apr 2007 00:25:58 +0000 (00:25 +0000)] 
Add missing case in removePrefix

12 years agoparse (but don't pass on) options for ./configure
Ian Lynagh [Fri, 6 Apr 2007 15:37:49 +0000 (15:37 +0000)] 
parse (but don't pass on) options for ./configure

12 years agomake Setup suitable for building the libraries with GHC
Ian Lynagh [Sun, 12 Nov 2006 21:47:31 +0000 (21:47 +0000)] 
make Setup suitable for building the libraries with GHC

12 years agoturn off TMVar and TMChan for non-GHC
Ross Paterson [Sun, 1 Apr 2007 21:01:22 +0000 (21:01 +0000)] 
turn off TMVar and TMChan for non-GHC

12 years agofix typo in comment
Ross Paterson [Sun, 1 Apr 2007 21:00:44 +0000 (21:00 +0000)] 
fix typo in comment

12 years agoAdd missing modules to the .cabal file
Ian Lynagh [Sun, 1 Apr 2007 20:38:12 +0000 (20:38 +0000)] 
Add missing modules to the .cabal file

12 years agoAdd documentation for TMVar.
Spencer Janssen [Mon, 11 Dec 2006 07:43:18 +0000 (07:43 +0000)] 
Add documentation for TMVar.

12 years agoAdd documentation for TChan
Spencer Janssen [Mon, 11 Dec 2006 07:12:01 +0000 (07:12 +0000)] 
Add documentation for TChan

12 years agoTAG 6.6 release
Ian Lynagh [Wed, 11 Oct 2006 12:47:40 +0000 (12:47 +0000)] 
TAG 6.6 release

12 years agoTAG Version 2.1
Ian Lynagh [Mon, 9 Oct 2006 11:49:14 +0000 (11:49 +0000)] 
TAG Version 2.1

12 years agoBump version number
Ian Lynagh [Mon, 9 Oct 2006 11:49:09 +0000 (11:49 +0000)] 
Bump version number

12 years agoAdd comment
simonpj@microsoft.com [Fri, 24 Nov 2006 10:18:35 +0000 (10:18 +0000)] 
Add comment

12 years agoadd boilerplate Setup.hs
Ross Paterson [Thu, 28 Sep 2006 23:15:26 +0000 (23:15 +0000)] 
add boilerplate Setup.hs

13 years agoAdd Control.Concurrent.STM.TArray to the exposed modules of the STM package (I'm...
simonpj@microsoft.com [Mon, 25 Sep 2006 15:26:24 +0000 (15:26 +0000)] 
Add Control.Concurrent.STM.TArray to the exposed modules of the STM package (I'm assuming it's supposed to be exposed!)

13 years agosequential implementation of revised semantics of catchSTM
Ross Paterson [Mon, 4 Sep 2006 17:29:21 +0000 (17:29 +0000)] 
sequential implementation of revised semantics of catchSTM

(This module is not used by GHC)

13 years agobump version to 2.0
Simon Marlow [Fri, 11 Aug 2006 15:28:19 +0000 (15:28 +0000)] 
bump version to 2.0

13 years agoupdate following changes to MArray
Simon Marlow [Thu, 10 Aug 2006 10:09:40 +0000 (10:09 +0000)] 
update following changes to MArray

13 years agoadd Control.Monad.STM to package.conf.in
Bertram Felgenhauer [Mon, 19 Jun 2006 07:33:02 +0000 (07:33 +0000)] 
add Control.Monad.STM to package.conf.in

13 years agofactor out a Control.Monad.STM module
Ross Paterson [Thu, 15 Jun 2006 13:34:43 +0000 (13:34 +0000)] 
factor out a Control.Monad.STM module

13 years agooffer a subset of the interface to sequential implementations
Ross Paterson [Tue, 13 Jun 2006 14:27:51 +0000 (14:27 +0000)] 
offer a subset of the interface to sequential implementations

13 years ago[project @ 2005-12-15 09:38:13 by simonmar] Initial_conversion_from_CVS_complete
simonmar [Thu, 15 Dec 2005 09:38:13 +0000 (09:38 +0000)] 
[project @ 2005-12-15 09:38:13 by simonmar]
Add TArray, a simple transactional array based on immutable arrays of
TVars, with the usual MArray interface.

Code from Taral <taralx@gmail.com>

13 years ago[project @ 2005-12-05 11:42:47 by simonmar]
simonmar [Mon, 5 Dec 2005 11:42:47 +0000 (11:42 +0000)] 
[project @ 2005-12-05 11:42:47 by simonmar]
Add IO versions of the STM primitives that allocate new transactional variables:

  newTVarIO :: a -> IO (TVar a)
  newTChanIO :: IO (TChan a)
  newTMVarIO :: a -> IO (TMVar a)

These can be used inside unsafePerformIO, unlike the STM versions.

13 years ago[project @ 2005-11-30 12:24:33 by simonmar]
simonmar [Wed, 30 Nov 2005 12:24:33 +0000 (12:24 +0000)] 
[project @ 2005-11-30 12:24:33 by simonmar]
export registerDelay

13 years agoTAG nhc98-1-18-release
Unknown tagger [Thu, 12 Jan 2006 15:13:28 +0000 (15:13 +0000)] 
TAG nhc98-1-18-release

13 years agoTAG arity-anal-branch-point
Unknown tagger [Thu, 12 Jan 2006 15:13:28 +0000 (15:13 +0000)] 
TAG arity-anal-branch-point

13 years agoTAG ghc-assoc-branch-point
Unknown tagger [Thu, 12 Jan 2006 15:13:28 +0000 (15:13 +0000)] 
TAG ghc-assoc-branch-point

13 years agoTAG cmm-merge2
Unknown tagger [Thu, 12 Jan 2006 15:13:28 +0000 (15:13 +0000)] 
TAG cmm-merge2

14 years ago[project @ 2005-02-24 09:58:26 by simonmar]
simonmar [Thu, 24 Feb 2005 09:58:26 +0000 (09:58 +0000)] 
[project @ 2005-02-24 09:58:26 by simonmar]
nDoc fixes from Sven Panne.  Generally fixing of Haddock links, adding
some signatures, and in some cases exporting type constructors that
are mentioned in the types of exported identifiers.

14 years ago[project @ 2005-02-18 15:06:46 by simonmar]
simonmar [Fri, 18 Feb 2005 15:06:46 +0000 (15:06 +0000)] 
[project @ 2005-02-18 15:06:46 by simonmar]
Rename fields in InstalledPackageInfo for consistency with
PackageDescription & buildInfo:

 extra-libs (extraLibraries) --> extra-libraries (extraLibraries)
 extra-cc-opts (extraCcOpts) --> cc-options (ccOptions)
 extra-ld-opts (extraLdOpts) --> ld-options (ldOptions)
 extra-hugs-opts (extraHugsOpts) --> hugs-options (hugsOptions)
 extra-frameworks (extraFrameworks) --> frameworks (frameworks)

13 years agoTAG ghc-6-4-branch-point
Unknown tagger [Thu, 12 Jan 2006 15:13:26 +0000 (15:13 +0000)] 
TAG ghc-6-4-branch-point