José Pedro Magalhães | 21 Jun 2012 13:29
Picon
Gravatar

[commit: base] master: Move GHC.Generics to base (fb01f7f)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/fb01f7fa9bafcd5c16afb0a977e0d610c9b606d2

>---------------------------------------------------------------

commit fb01f7fa9bafcd5c16afb0a977e0d610c9b606d2
Author: Jose Pedro Magalhaes <jpm <at> cs.ox.ac.uk>
Date:   Thu Jun 21 12:11:07 2012 +0100

    Move GHC.Generics to base

    There is no real reason for it to be in ghc-prim, and it
    complicates things.

 Data/Either.hs  |    5 +-
 Data/Maybe.hs   |    5 +-
 GHC/Generics.hs |  270 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 GHC/Read.lhs    |   10 --
 GHC/Show.lhs    |   10 --
 base.cabal      |    1 +
 6 files changed, 275 insertions(+), 26 deletions(-)

Diff suppressed because of size. To see it, use:

    git show fb01f7fa9bafcd5c16afb0a977e0d610c9b606d2
Ian Lynagh | 23 Jun 2012 14:45
Picon
Gravatar

[commit: base] master: Deprecate Control.Concurrent.{QSem, QSemNSampleVar} (4553fda)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/4553fdaf4607928ce76bfb034f6b1273127f938c

>---------------------------------------------------------------

commit 4553fdaf4607928ce76bfb034f6b1273127f938c
Author: Ian Lynagh <igloo <at> earth.li>
Date:   Sat Jun 23 13:44:08 2012 +0100

    Deprecate Control.Concurrent.{QSem,QSemNSampleVar}

    Also Control.Concurrent.{mergeIO,nmergeIO}, which use those modules.

>---------------------------------------------------------------

 Control/Concurrent.hs           |    5 +++++
 Control/Concurrent/QSem.hs      |    1 +
 Control/Concurrent/QSemN.hs     |    1 +
 Control/Concurrent/SampleVar.hs |    1 +
 4 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Control/Concurrent.hs b/Control/Concurrent.hs
index 1bac565..0f3bb5d 100644
--- a/Control/Concurrent.hs
+++ b/Control/Concurrent.hs
 <at>  <at>  -6,6 +6,9  <at>  <at> 
            , ScopedTypeVariables
(Continue reading)

José Pedro Magalhães | 26 Jun 2012 16:43
Picon
Gravatar

[commit: base] master: Split a pragma into for better warnings (724aa97)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/724aa9757218553654debe5a5b46ec76092b3f74

>---------------------------------------------------------------

commit 724aa9757218553654debe5a5b46ec76092b3f74
Author: Jose Pedro Magalhaes <jpm <at> cs.ox.ac.uk>
Date:   Tue Jun 26 15:06:37 2012 +0100

    Split a pragma into for better warnings

>---------------------------------------------------------------

 GHC/Generics.hs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/GHC/Generics.hs b/GHC/Generics.hs
index 2ce018b..fe86600 100644
--- a/GHC/Generics.hs
+++ b/GHC/Generics.hs
 <at>  <at>  -80,7 +80,8  <at>  <at>  data P
 type Rec0  = K1 R
 -- | Type synonym for encoding parameters (other than the last)
 type Par0  = K1 P
-{-# DEPRECATED Par0, P "These are no longer used; use Rec0 and R instead" #-}
+{-# DEPRECATED Par0 "Par0 is no longer used; use Rec0 instead" #-}
+{-# DEPRECATED P "P is no longer used; use R instead" #-}
(Continue reading)

Paolo Capriotti | 28 Jun 2012 12:17
Picon
Gravatar

[commit: base] master: Add System.Environment.getExecutablePath (#7029) (ca72c8e)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/ca72c8e005ae78939645f27328bd81a91943453d

>---------------------------------------------------------------

commit ca72c8e005ae78939645f27328bd81a91943453d
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Wed Jun 27 18:56:32 2012 +0100

    Add System.Environment.getExecutablePath (#7029)

    Patch by Johan Tibell <johan.tibell <at> gmail.com>

>---------------------------------------------------------------

 System/Environment.hs                 |   11 ++-
 System/Environment/ExecutablePath.hsc |  172 +++++++++++++++++++++++++++++++++
 base.cabal                            |    1 +
 3 files changed, 180 insertions(+), 4 deletions(-)

diff --git a/System/Environment.hs b/System/Environment.hs
index 7be95ad..1f33213 100644
--- a/System/Environment.hs
+++ b/System/Environment.hs
 <at>  <at>  -17,10 +17,11  <at>  <at> 

 module System.Environment
(Continue reading)

Ian Lynagh | 30 Jun 2012 02:34
Picon
Gravatar

[commit: base] master: Deprecate the Data.HashTable module (7695a8b)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/7695a8baf8253198abf8c7a4e77f5c432d887371

>---------------------------------------------------------------

commit 7695a8baf8253198abf8c7a4e77f5c432d887371
Author: Ian Lynagh <igloo <at> earth.li>
Date:   Fri Jun 29 23:06:19 2012 +0100

    Deprecate the Data.HashTable module

>---------------------------------------------------------------

 Data/HashTable.hs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Data/HashTable.hs b/Data/HashTable.hs
index b594863..9ce023c 100644
--- a/Data/HashTable.hs
+++ b/Data/HashTable.hs
 <at>  <at>  -19,7 +19,9  <at>  <at> 
 --
 -----------------------------------------------------------------------------

-module Data.HashTable (
+module Data.HashTable
+      {-# DEPRECATED "Data.HashTable will be removed in GHC 7.8. Please use an alternative, e.g. the
(Continue reading)

Paolo Capriotti | 3 Jul 2012 15:58
Picon
Gravatar

[commit: base] master: Fix parsing of RealFloat with huge exponents (#7034). (4226bae)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/4226bae42fdd666c15190ac2f8784547d3fbad5f

>---------------------------------------------------------------

commit 4226bae42fdd666c15190ac2f8784547d3fbad5f
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Mon Jul 2 12:54:57 2012 +0100

    Fix parsing of RealFloat with huge exponents (#7034).

    Ensure numberToRangedRational returns Nothing immediately if the
    exponent is outside Int range, so that we avoid an integer overflow
    later.

>---------------------------------------------------------------

 Text/Read/Lex.hs   |    8 +++++++-
 tests/T7034.hs     |   11 +++++++++++
 tests/T7034.stdout |    6 ++++++
 tests/all.T        |    2 +-
 4 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/Text/Read/Lex.hs b/Text/Read/Lex.hs
index 1a163ee..7c99f0c 100644
--- a/Text/Read/Lex.hs
+++ b/Text/Read/Lex.hs
(Continue reading)

Simon Marlow | 4 Jul 2012 14:02
Picon

[commit: base] master: Add RatioZeroDenominator to ArithException, and use it instead of error (3a3ab80)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/3a3ab8080104b6f6dacf03e4413c592532c9f22e

>---------------------------------------------------------------

commit 3a3ab8080104b6f6dacf03e4413c592532c9f22e
Author: Simon Marlow <marlowsd <at> gmail.com>
Date:   Tue Jul 3 11:16:40 2012 +0100

    Add RatioZeroDenominator to ArithException, and use it instead of error

    As per discussion on the libraries list.

>---------------------------------------------------------------

 GHC/Err.lhs       |    5 +++++
 GHC/Exception.lhs |    2 ++
 GHC/Real.lhs      |    6 +++---
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/GHC/Err.lhs b/GHC/Err.lhs
index 5352a06..ed1dcb9 100644
--- a/GHC/Err.lhs
+++ b/GHC/Err.lhs
 <at>  <at>  -27,6 +27,7  <at>  <at>  module GHC.Err
        (
          absentErr                 -- :: a
(Continue reading)

Simon Marlow | 4 Jul 2012 14:02
Picon

[commit: base] master: Add Functor instance for Handler (#7047) (53f4718)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/53f4718af482ca87d55b9dff8bf46ed5624ebe80

>---------------------------------------------------------------

commit 53f4718af482ca87d55b9dff8bf46ed5624ebe80
Author: Simon Marlow <marlowsd <at> gmail.com>
Date:   Wed Jul 4 12:30:51 2012 +0100

    Add Functor instance for Handler (#7047)

>---------------------------------------------------------------

 Control/Exception.hs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Control/Exception.hs b/Control/Exception.hs
index a13b990..fd4ea0e 100644
--- a/Control/Exception.hs
+++ b/Control/Exception.hs
 <at>  <at>  -164,6 +164,9  <at>  <at>  import System (ExitCode())
 -- | You need this when using 'catches'.
 data Handler a = forall e . Exception e => Handler (e -> IO a)

+instance Functor Handler where
+     fmap f (Handler h) = Handler (fmap f . h)
+
(Continue reading)

Simon Marlow | 4 Jul 2012 14:02
Picon

[commit: base] master: add some UNPACKs to improve performance a bit (af5dc3f)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/af5dc3f1d89859016a2e07b0b03516d55293af81

>---------------------------------------------------------------

commit af5dc3f1d89859016a2e07b0b03516d55293af81
Author: Simon Marlow <marlowsd <at> gmail.com>
Date:   Tue Jun 12 10:57:45 2012 +0100

    add some UNPACKs to improve performance a bit

>---------------------------------------------------------------

 Control/Concurrent/Chan.hs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/Control/Concurrent/Chan.hs b/Control/Concurrent/Chan.hs
index 4bc72e3..be10c00 100644
--- a/Control/Concurrent/Chan.hs
+++ b/Control/Concurrent/Chan.hs
 <at>  <at>  -45,21 +45,26  <at>  <at>  import Data.Typeable

 #include "Typeable.h"

+#define _UPK_(x) {-# UNPACK #-} !(x)
+
 -- A channel is represented by two  <at> MVar <at> s keeping track of the two ends
(Continue reading)

Simon Marlow | 9 Jul 2012 17:52
Picon

[commit: base] master: Adapt to removal of catch from Prelude (89d165d)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/89d165d1a8881cb6ed35737c20cc44e29eb88da8

>---------------------------------------------------------------

commit 89d165d1a8881cb6ed35737c20cc44e29eb88da8
Author: Simon Marlow <marlowsd <at> gmail.com>
Date:   Mon Jul 9 11:24:13 2012 +0100

    Adapt to removal of catch from Prelude

>---------------------------------------------------------------

 tests/enum01.hs  |    3 +++
 tests/enum02.hs  |    3 +++
 tests/enum03.hs  |    3 +++
 tests/list001.hs |    7 +++++--
 4 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/tests/enum01.hs b/tests/enum01.hs
index d817866..8b490bb 100644
--- a/tests/enum01.hs
+++ b/tests/enum01.hs
 <at>  <at>  -1,8 +1,11  <at>  <at> 
 -- !!! Testing the Prelude's Enum instances.
+{-# LANGUAGE CPP #-}
 module Main(main) where
(Continue reading)

Simon Marlow | 11 Jul 2012 11:29
Picon

[commit: base] master: Add strict version of modifySTRef (5ccd462)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/5ccd462b97f00802936eb75276bedcda6ed9edfb

>---------------------------------------------------------------

commit 5ccd462b97f00802936eb75276bedcda6ed9edfb
Author: Joey Adams <joeyadams3.14159 <at> gmail.com>
Date:   Sat Jul 7 22:13:52 2012 -0400

    Add strict version of modifySTRef

    Also, add a warning to modifySTRef, mostly copy-pasted from the warning
    for modifyIORef.

>---------------------------------------------------------------

 Data/STRef.hs |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/Data/STRef.hs b/Data/STRef.hs
index c628bb6..7c884e5 100644
--- a/Data/STRef.hs
+++ b/Data/STRef.hs
 <at>  <at>  -21,7 +21,8  <at>  <at>  module Data.STRef (
         newSTRef,       -- :: a -> ST s (STRef s a)
         readSTRef,      -- :: STRef s a -> ST s a
         writeSTRef,     -- :: STRef s a -> a -> ST s ()
(Continue reading)

Simon Marlow | 11 Jul 2012 11:29
Picon

[commit: base] master: export the constructors of ForeignPtrContents too (9f08648)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/9f08648aad598f0826eb0d99b3cf0ed2016825e4

>---------------------------------------------------------------

commit 9f08648aad598f0826eb0d99b3cf0ed2016825e4
Author: Simon Marlow <marlowsd <at> gmail.com>
Date:   Wed Jul 11 09:46:50 2012 +0100

    export the constructors of ForeignPtrContents too

>---------------------------------------------------------------

 GHC/ForeignPtr.hs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/GHC/ForeignPtr.hs b/GHC/ForeignPtr.hs
index 0efd8b8..5711484 100644
--- a/GHC/ForeignPtr.hs
+++ b/GHC/ForeignPtr.hs
 <at>  <at>  -26,7 +26,7  <at>  <at> 
 module GHC.ForeignPtr
   (
         ForeignPtr(..),
-        ForeignPtrContents,
+        ForeignPtrContents(..),
         FinalizerPtr,
(Continue reading)

Simon Marlow | 13 Jul 2012 13:08
Picon

[commit: base] master: fix warnings (c8a4f96)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/c8a4f96b1180c746e90b1da8b3d7856f396af647

>---------------------------------------------------------------

commit c8a4f96b1180c746e90b1da8b3d7856f396af647
Author: Simon Marlow <marlowsd <at> gmail.com>
Date:   Fri Jul 13 10:00:15 2012 +0100

    fix warnings

>---------------------------------------------------------------

 GHC/ForeignPtr.hs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/GHC/ForeignPtr.hs b/GHC/ForeignPtr.hs
index f3ce527..244e0fd 100644
--- a/GHC/ForeignPtr.hs
+++ b/GHC/ForeignPtr.hs
 <at>  <at>  -189,12 +189,12  <at>  <at>  mallocForeignPtrBytes (I# size) = do
 -- size and alignment of the memory required is given explicitly as numbers of
 -- bytes.
 mallocForeignPtrAlignedBytes :: Int -> Int -> IO (ForeignPtr a)
-mallocForeignPtrAlignedBytes size alignment | size < 0 =
+mallocForeignPtrAlignedBytes size _align | size < 0 =
   error "mallocForeignPtrAlignedBytes: size must be >= 0"
(Continue reading)

Simon Marlow | 13 Jul 2012 13:08
Picon

[commit: base] master: Add alignment-restricted ForeignPtr allocation actions (dcbaff9)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/dcbaff90f79c4fcb5b69308820351032a5c4a73e

>---------------------------------------------------------------

commit dcbaff90f79c4fcb5b69308820351032a5c4a73e
Author: Nicolas Trangez <ikke <at> nicolast.be>
Date:   Wed Jul 11 15:16:11 2012 +0200

    Add alignment-restricted ForeignPtr allocation actions

    See: #7067
    See: http://hackage.haskell.org/trac/ghc/ticket/7067
    See: http://www.haskell.org/pipermail/glasgow-haskell-users/2012-July/022579.html

>---------------------------------------------------------------

 GHC/ForeignPtr.hs |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/GHC/ForeignPtr.hs b/GHC/ForeignPtr.hs
index 5711484..f3ce527 100644
--- a/GHC/ForeignPtr.hs
+++ b/GHC/ForeignPtr.hs
 <at>  <at>  -34,6 +34,8  <at>  <at>  module GHC.ForeignPtr
         mallocPlainForeignPtr,
         mallocForeignPtrBytes,
(Continue reading)

Paolo Capriotti | 18 Jul 2012 12:53
Picon
Gravatar

[commit: base] master: Add comment to GHC.Exts. (9aaf76f)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/9aaf76f3575059d9660431e81fa400bd2e5babb6

>---------------------------------------------------------------

commit 9aaf76f3575059d9660431e81fa400bd2e5babb6
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Tue Jul 17 16:30:43 2012 +0100

    Add comment to GHC.Exts.

>---------------------------------------------------------------

 GHC/Exts.hs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/GHC/Exts.hs b/GHC/Exts.hs
index 8281895..3c6605d 100755
--- a/GHC/Exts.hs
+++ b/GHC/Exts.hs
 <at>  <at>  -13,6 +13,7  <at>  <at> 
 --
 -- GHC Extensions: this is the Approved Way to get at GHC-specific extensions.
 --
+-- Note: no other base module should import this module.
 -----------------------------------------------------------------------------

(Continue reading)

Paolo Capriotti | 18 Jul 2012 12:53
Picon
Gravatar

[commit: base] master: Move Down to Data.Ord (#7077) (3054cf9)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/3054cf9a85619efb66a4923367532307477db619

>---------------------------------------------------------------

commit 3054cf9a85619efb66a4923367532307477db619
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Tue Jul 17 16:37:54 2012 +0100

    Move Down to Data.Ord (#7077)

>---------------------------------------------------------------

 Data/Ord.hs |   11 +++++++++++
 GHC/Exts.hs |   12 +-----------
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/Data/Ord.hs b/Data/Ord.hs
index 8180df2..c594c68 100644
--- a/Data/Ord.hs
+++ b/Data/Ord.hs
 <at>  <at>  -18,6 +18,7  <at>  <at> 
 module Data.Ord (
    Ord(..),
    Ordering(..),
+   Down(..),
    comparing,
(Continue reading)

Ian Lynagh | 20 Jul 2012 15:48
Picon
Gravatar

[commit: base] master: Remove a workaround for building with old GHCs (9574057)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/9574057311c61a8c572e80839a8af0ab19ce0ae8

>---------------------------------------------------------------

commit 9574057311c61a8c572e80839a8af0ab19ce0ae8
Author: Ian Lynagh <igloo <at> earth.li>
Date:   Mon Jul 16 00:20:23 2012 +0100

    Remove a workaround for building with old GHCs

>---------------------------------------------------------------

 GHC/Event/Control.hs |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/GHC/Event/Control.hs b/GHC/Event/Control.hs
index ab0636b..cd5641a 100644
--- a/GHC/Event/Control.hs
+++ b/GHC/Event/Control.hs
 <at>  <at>  -77,14 +77,6  <at>  <at>  wakeupReadFd = controlEventFd
 {-# INLINE wakeupReadFd #-}
 #endif

-setNonBlock :: CInt -> IO ()
-setNonBlock fd =
-#if __GLASGOW_HASKELL__ >= 611
(Continue reading)

Ian Lynagh | 20 Jul 2012 15:48
Picon
Gravatar

[commit: base] master: Simplify how gcd <at> Int is implemented (a8b47d5)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/a8b47d5f6f2b33f18e90c95353c6383c0ccdfa9f

>---------------------------------------------------------------

commit a8b47d5f6f2b33f18e90c95353c6383c0ccdfa9f
Author: Ian Lynagh <igloo <at> earth.li>
Date:   Wed Jul 18 15:33:28 2012 +0100

    Simplify how gcd  <at>  Int is implemented

>---------------------------------------------------------------

 GHC/Real.lhs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/GHC/Real.lhs b/GHC/Real.lhs
index a011989..67389b6 100644
--- a/GHC/Real.lhs
+++ b/GHC/Real.lhs
 <at>  <at>  -657,13 +657,13  <at>  <at>  lcm x y         =  abs ((x `quot` (gcd x y)) * y)

 #ifdef OPTIMISE_INTEGER_GCD_LCM
 {-# RULES
-"gcd/Int->Int->Int"             gcd = gcdInt
+"gcd/Int->Int->Int"             gcd = gcdInt'
 "gcd/Integer->Integer->Integer" gcd = gcdInteger
(Continue reading)

Ian Lynagh | 20 Jul 2012 15:48
Picon
Gravatar

[commit: base] master: Merge branch 'master' of darcs.haskell.org:/srv/darcs//packages/base (5ef21eb)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/5ef21eb3d6acf2b156c0da27947b36ba2774c1f3

>---------------------------------------------------------------

commit 5ef21eb3d6acf2b156c0da27947b36ba2774c1f3
Merge: a8b47d5... 3054cf9...
Author: Ian Lynagh <igloo <at> earth.li>
Date:   Thu Jul 19 20:38:46 2012 +0100

    Merge branch 'master' of darcs.haskell.org:/srv/darcs//packages/base

 Data/Ord.hs |   11 +++++++++++
 GHC/Exts.hs |   13 ++-----------
 2 files changed, 13 insertions(+), 11 deletions(-)
Ian Lynagh | 20 Jul 2012 20:21
Picon
Gravatar

[commit: base] master: Remove some deprecated modules and functions (12b51c4)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/12b51c4372786ec9ea6be89ad83043559312618e

>---------------------------------------------------------------

commit 12b51c4372786ec9ea6be89ad83043559312618e
Author: Ian Lynagh <igloo <at> earth.li>
Date:   Fri Jul 20 16:57:06 2012 +0100

    Remove some deprecated modules and functions

 Control/Concurrent.hs           |   92 -------
 Control/Concurrent/QSem.hs      |   90 -------
 Control/Concurrent/QSemN.hs     |   82 ------
 Control/Concurrent/SampleVar.hs |  137 ----------
 Data/HashTable.hs               |  536 ---------------------------------------
 base.cabal                      |    4 -
 6 files changed, 0 insertions(+), 941 deletions(-)

Diff suppressed because of size. To see it, use:

    git show 12b51c4372786ec9ea6be89ad83043559312618e
Ian Lynagh | 20 Jul 2012 20:21
Picon
Gravatar

[commit: base] master: Remove hash001, as we no longer have Data.HashTable (14b0242)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/14b0242f3c870177abbb52c792b772b0b6c5fa87

>---------------------------------------------------------------

commit 14b0242f3c870177abbb52c792b772b0b6c5fa87
Author: Ian Lynagh <igloo <at> earth.li>
Date:   Fri Jul 20 18:05:19 2012 +0100

    Remove hash001, as we no longer have Data.HashTable

>---------------------------------------------------------------

 tests/all.T      |    1 -
 tests/hash001.hs |   16 ----------------
 2 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/tests/all.T b/tests/all.T
index b7a1629..bcae14b 100644
--- a/tests/all.T
+++ b/tests/all.T
 <at>  <at>  -20,7 +20,6  <at>  <at>  test('data-fixed-show-read', normal, compile_and_run, [''])
 test('showDouble', normal, compile_and_run, [''])
 test('readDouble001', normal, compile_and_run, [''])
 test('readInteger001', normal, compile_and_run, [''])
-test('hash001', normal, compile_and_run, [''])
 test('lex001', normal, compile_and_run, [''])
(Continue reading)

Ian Lynagh | 20 Jul 2012 20:21
Picon
Gravatar

[commit: base] master: Remove tests for removed modules (3e0e1de)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/3e0e1debfb491ced8e864f51b417f72b26c0901e

>---------------------------------------------------------------

commit 3e0e1debfb491ced8e864f51b417f72b26c0901e
Author: Ian Lynagh <igloo <at> earth.li>
Date:   Fri Jul 20 18:30:36 2012 +0100

    Remove tests for removed modules

 tests/Concurrent/4876.hs             |   19 -----
 tests/Concurrent/QSem001.hs          |   93 ------------------------
 tests/Concurrent/QSem001.stdout      |    2 -
 tests/Concurrent/QSemN001.hs         |   96 ------------------------
 tests/Concurrent/QSemN001.stdout     |    2 -
 tests/Concurrent/SampleVar001.hs     |  132 ----------------------------------
 tests/Concurrent/SampleVar001.stdout |    6 --
 tests/Concurrent/all.T               |    5 --
 8 files changed, 0 insertions(+), 355 deletions(-)

Diff suppressed because of size. To see it, use:

    git show 3e0e1debfb491ced8e864f51b417f72b26c0901e
Paolo Capriotti | 27 Jul 2012 10:32
Picon
Gravatar

[commit: base] master: Fix inline rule shadowing warnings (44009e9)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/44009e90f67100a3427ea758c0e6f69f6531ec84

>---------------------------------------------------------------

commit 44009e90f67100a3427ea758c0e6f69f6531ec84
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Wed Jul 25 13:53:19 2012 +0100

    Fix inline rule shadowing warnings

 Data/List.hs  |    3 +++
 GHC/Arr.lhs   |    2 +-
 GHC/Base.lhs  |    2 ++
 GHC/Enum.lhs  |    8 ++++++++
 GHC/Float.lhs |    2 ++
 GHC/List.lhs  |   18 +++++++++++++++++-
 GHC/Real.lhs  |    8 ++++++--
 7 files changed, 39 insertions(+), 4 deletions(-)

Diff suppressed because of size. To see it, use:

    git show 44009e90f67100a3427ea758c0e6f69f6531ec84
Paolo Capriotti | 27 Jul 2012 10:32
Picon
Gravatar

[commit: base] master: Merge inline rule warning fixes (038402d)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/038402d9abed6836c77796bce32b7c9d2ae05f02

>---------------------------------------------------------------

commit 038402d9abed6836c77796bce32b7c9d2ae05f02
Merge: 3e0e1de... 44009e9...
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Thu Jul 26 22:05:19 2012 +0100

    Merge inline rule warning fixes

 Data/List.hs  |    3 ++
 GHC/Arr.lhs   |    2 +-
 GHC/Base.lhs  |   83 +-------------------------------------------------------
 GHC/Enum.lhs  |    8 +++++
 GHC/Float.lhs |    2 +
 GHC/List.lhs  |   18 +++++++++++-
 GHC/Real.lhs  |    8 ++++-
 7 files changed, 39 insertions(+), 85 deletions(-)
Paolo Capriotti | 27 Jul 2012 10:31
Picon
Gravatar

[commit: base] master: Make numeric rules builtin. (25de47e)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/25de47e226cbf44b28b4201fb84e43b7e50f3edc

>---------------------------------------------------------------

commit 25de47e226cbf44b28b4201fb84e43b7e50f3edc
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Thu Jul 5 19:50:34 2012 +0100

    Make numeric rules builtin.

    Move rules in GHC.Base to PrelRules and convert them to BuiltinRules.

>---------------------------------------------------------------

 GHC/Base.lhs |   68 ----------------------------------------------------------
 1 files changed, 0 insertions(+), 68 deletions(-)

diff --git a/GHC/Base.lhs b/GHC/Base.lhs
index c6c21d6..8114a0e 100644
--- a/GHC/Base.lhs
+++ b/GHC/Base.lhs
 <at>  <at>  -448,15 +448,6  <at>  <at>  otherwise               =  True
 --
 type String = [Char]

-{-# RULES
(Continue reading)

Paolo Capriotti | 27 Jul 2012 10:31
Picon
Gravatar

[commit: base] master: Port more primop rules to PrelRules. (f654e28)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/f654e287be7e6a5fce296fc6c98fa16f838636fe

>---------------------------------------------------------------

commit f654e287be7e6a5fce296fc6c98fa16f838636fe
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Wed Jul 25 12:53:39 2012 +0100

    Port more primop rules to PrelRules.

>---------------------------------------------------------------

 GHC/Base.lhs |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/GHC/Base.lhs b/GHC/Base.lhs
index 8114a0e..b720348 100644
--- a/GHC/Base.lhs
+++ b/GHC/Base.lhs
 <at>  <at>  -714,19 +714,6  <at>  <at>  iShiftRL# :: Int# -> Int# -> Int#
 a `iShiftRL#` b | b >=# WORD_SIZE_IN_BITS# = 0#
                 | otherwise                = a `uncheckedIShiftRL#` b

-#if WORD_SIZE_IN_BITS == 32
-{-# RULES
-"narrow32Int#"  forall x#. narrow32Int#   x# = x#
(Continue reading)

Simon Marlow | 2 Aug 2012 14:21
Picon

[commit: base] master: Document that a FinalizerPtr is a pointer to a ccall function (#5254) (d7332cf)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/d7332cf3731be55edb4e3ad7e8b272a210a8d210

>---------------------------------------------------------------

commit d7332cf3731be55edb4e3ad7e8b272a210a8d210
Author: Simon Marlow <marlowsd <at> gmail.com>
Date:   Thu Aug 2 11:40:17 2012 +0100

    Document that a FinalizerPtr is a pointer to a ccall function (#5254)

    It can't be any other calling convention, e.g. stdcall.

>---------------------------------------------------------------

 GHC/ForeignPtr.hs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/GHC/ForeignPtr.hs b/GHC/ForeignPtr.hs
index 244e0fd..7e72315 100644
--- a/GHC/ForeignPtr.hs
+++ b/GHC/ForeignPtr.hs
 <at>  <at>  -114,6 +114,8  <at>  <at>  instance Show (ForeignPtr a) where
 -- finalisation time, gets as an argument a plain pointer variant of the
 -- foreign pointer that the finalizer is associated with.
 -- 
+-- Note that the foreign function /must/ use the  <at> ccall <at>  calling convention.
(Continue reading)

Ian Lynagh | 5 Aug 2012 17:39
Picon
Gravatar

[commit: base] master: Use testBitInteger; part of #3489. patch from pumpkingod <at> gmail.com (e8a0c5b)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/e8a0c5b872302e7f800ba67667a3622baabed140

>---------------------------------------------------------------

commit e8a0c5b872302e7f800ba67667a3622baabed140
Author: Ian Lynagh <ian <at> well-typed.com>
Date:   Sun Aug 5 15:54:15 2012 +0100

    Use testBitInteger; part of #3489. patch from pumpkingod <at> gmail.com

>---------------------------------------------------------------

 Data/Bits.hs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Data/Bits.hs b/Data/Bits.hs
index 14a6357..6d97352 100644
--- a/Data/Bits.hs
+++ b/Data/Bits.hs
 <at>  <at>  -386,6 +386,7  <at>  <at>  instance Bits Integer where
    complement = complementInteger
    shift x i <at> (I# i#) | i >= 0    = shiftLInteger x i#
                      | otherwise = shiftRInteger x (negateInt# i#)
+   testBit x (I# i) = testBitInteger x i
 #else
    -- reduce bitwise binary operations to special cases we can handle
(Continue reading)

Paolo Capriotti | 8 Aug 2012 15:49
Picon
Gravatar

[commit: base] master: Refer and link to Haskell 2010 report in Prelude. (79d9ea6)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/79d9ea6dcef04798dc047de50231ac064ff34722

>---------------------------------------------------------------

commit 79d9ea6dcef04798dc047de50231ac064ff34722
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Wed Aug 8 14:47:08 2012 +0100

    Refer and link to Haskell 2010 report in Prelude.

>---------------------------------------------------------------

 Prelude.hs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Prelude.hs b/Prelude.hs
index 6cd70d1..a1df3f6 100644
--- a/Prelude.hs
+++ b/Prelude.hs
 <at>  <at>  -12,8 +12,8  <at>  <at> 
 -- Portability :  portable
 --
 -- The Prelude: a standard module imported by default into all Haskell
--- modules.  For more documentation, see the Haskell 98 Report
--- <http://www.haskell.org/onlinereport/>.
+-- modules.  For more documentation, see the Haskell 2010 Report
(Continue reading)

Simon Peyton Jones | 13 Aug 2012 18:32
Picon
Favicon
Gravatar

[commit: base] master: Comments ony (b7c8017)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/b7c8017ac1dfb34deb4791d1a719f6a7d165a5a1

>---------------------------------------------------------------

commit b7c8017ac1dfb34deb4791d1a719f6a7d165a5a1
Author: Simon Peyton Jones <simonpj <at> microsoft.com>
Date:   Mon Aug 13 17:32:23 2012 +0100

    Comments ony

>---------------------------------------------------------------

 GHC/Base.lhs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/GHC/Base.lhs b/GHC/Base.lhs
index ce47cd0..42978b1 100644
--- a/GHC/Base.lhs
+++ b/GHC/Base.lhs
 <at>  <at>  -363,8 +363,10  <at>  <at>  augment g xs = g (:) xs
 -- > map f [x1, x2, ..., xn] == [f x1, f x2, ..., f xn]
 -- > map f [x1, x2, ...] == [f x1, f x2, ...]

-{-# NOINLINE [1] map #-}
 map :: (a -> b) -> [a] -> [b]
+{-# NOINLINE [1] map #-}    -- We want the RULE to fire first.  
(Continue reading)

Ian Lynagh | 14 Aug 2012 01:15
Picon
Gravatar

[commit: base] master: Make startProfTimer and stopProfTimer available via GHC.Profiling (5443ba9)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/5443ba94ce5d715741b9d7b5a696af8284e019e9

>---------------------------------------------------------------

commit 5443ba94ce5d715741b9d7b5a696af8284e019e9
Author: Ian Lynagh <ian <at> well-typed.com>
Date:   Fri Aug 10 22:24:29 2012 +0100

    Make startProfTimer and stopProfTimer available via GHC.Profiling

    This allows the programmer to profile only part of a program's runtime,
    for example, ignoring startup and shutdown phases of programs.

>---------------------------------------------------------------

 GHC/Profiling.hs |    5 +++++
 base.cabal       |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/GHC/Profiling.hs b/GHC/Profiling.hs
new file mode 100644
index 0000000..23ef4ce
--- /dev/null
+++ b/GHC/Profiling.hs
 <at>  <at>  -0,0 +1,5  <at>  <at> 
+
(Continue reading)

Ian Lynagh | 14 Aug 2012 01:15
Picon
Gravatar

[commit: base] master: Merge branch 'master' of darcs.haskell.org:/srv/darcs//packages/base (6b2c2ac)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/6b2c2acbe747cb4c7695b3a9fed362bb5a693b52

>---------------------------------------------------------------

commit 6b2c2acbe747cb4c7695b3a9fed362bb5a693b52
Merge: 5443ba9... 79d9ea6...
Author: Ian Lynagh <ian <at> well-typed.com>
Date:   Fri Aug 10 22:28:42 2012 +0100

    Merge branch 'master' of darcs.haskell.org:/srv/darcs//packages/base

 Prelude.hs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Ian Lynagh | 14 Aug 2012 01:15
Picon
Gravatar

[commit: base] master: Merge branch 'master' of darcs.haskell.org:/srv/darcs//packages/base (36bc454)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/36bc4549e7439f00cb020aab327bc4ee5e15ed7e

>---------------------------------------------------------------

commit 36bc4549e7439f00cb020aab327bc4ee5e15ed7e
Merge: 4e4078e... b7c8017...
Author: Ian Lynagh <ian <at> well-typed.com>
Date:   Mon Aug 13 22:52:52 2012 +0100

    Merge branch 'master' of darcs.haskell.org:/srv/darcs//packages/base

 GHC/Base.lhs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
Ian Lynagh | 14 Aug 2012 01:15
Picon
Gravatar

[commit: base] master: Fix build (4e4078e)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/4e4078eda8586b170dd606d95bba4dcc875773bb

>---------------------------------------------------------------

commit 4e4078eda8586b170dd606d95bba4dcc875773bb
Author: Ian Lynagh <ian <at> well-typed.com>
Date:   Sat Aug 11 00:09:33 2012 +0100

    Fix build

>---------------------------------------------------------------

 GHC/Profiling.hs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/GHC/Profiling.hs b/GHC/Profiling.hs
index 23ef4ce..10a3d5b 100644
--- a/GHC/Profiling.hs
+++ b/GHC/Profiling.hs
 <at>  <at>  -1,3 +1,4  <at>  <at> 
+{-# LANGUAGE ForeignFunctionInterface #-}

 module GHC.Profiling where
Simon Peyton Jones | 15 Aug 2012 15:31
Picon
Favicon
Gravatar

http://darcs.haskell.org/packages/base (53ed79a)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/53ed79af423772fbf912fe14349d9cbaf75a6228

>---------------------------------------------------------------

commit 53ed79af423772fbf912fe14349d9cbaf75a6228
Merge: 6fb7bf8... 36bc454...
Author: Simon Peyton Jones <simonpj <at> microsoft.com>
Date:   Wed Aug 15 14:24:52 2012 +0100

    Merge branch 'master' of http://darcs.haskell.org/packages/base

 GHC/Profiling.hs |    6 ++++++
 base.cabal       |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)
Simon Peyton Jones | 15 Aug 2012 15:31
Picon
Favicon
Gravatar

[commit: base] master: Fix Trac #7146, by displaying a "\n" in a multi-line string (6fb7bf8)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/6fb7bf8c9ba2a53d718a0d2a5f9e0f78cb7faf8f

>---------------------------------------------------------------

commit 6fb7bf8c9ba2a53d718a0d2a5f9e0f78cb7faf8f
Author: Simon Peyton Jones <simonpj <at> microsoft.com>
Date:   Wed Aug 15 14:23:22 2012 +0100

    Fix Trac #7146, by displaying a "\n" in a multi-line string

>---------------------------------------------------------------

 GHC/Show.lhs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/GHC/Show.lhs b/GHC/Show.lhs
index e3148cd..859c2fe 100644
--- a/GHC/Show.lhs
+++ b/GHC/Show.lhs
 <at>  <at>  -390,12 +390,12  <at>  <at>  showMultiLineString :: String -> [String]
 --   * break the string into multiple lines
 --   * wrap the entire thing in double quotes
 -- Example:   <at> showMultiLineString "hello\ngoodbye\nblah" <at> 
--- returns    <at> ["\"hello\\", "\\goodbye\\", "\\blah\""] <at> 
+-- returns    <at> ["\"hello\\n\\", "\\goodbye\n\\", "\\blah\""] <at> 
 showMultiLineString str
(Continue reading)

Paolo Capriotti | 20 Aug 2012 23:26
Picon
Gravatar

[commit: base] master: Improve definition of forever (#5205) (f55f557)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/f55f5574c12ff8dfe57994219eee0702ac8aba2e

>---------------------------------------------------------------

commit f55f5574c12ff8dfe57994219eee0702ac8aba2e
Author: Paolo Capriotti <p.capriotti <at> gmail.com>
Date:   Mon Aug 20 16:35:38 2012 +0100

    Improve definition of forever (#5205)

    The previous implementation was:

        forever a = a >> forever a

    which can create a space leak in some cases, even with optimizations.
    The current implementation:

        forever a = let a' = a >> a' in a'

    prevents repeated thunk allocations by creating a single thunk for the
    final result, even without optimizations.

>---------------------------------------------------------------

 Control/Monad.hs |   23 ++++-------------------
 GHC/ST.lhs       |    4 ----
(Continue reading)

Simon Marlow | 21 Aug 2012 16:54
Picon

[commit: base] master: Remove finalizers from a ForeignPtr atomically (#7170) (895dd47)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/895dd47937c6c9340bf4f289f9f43d5f9be9ffcc

>---------------------------------------------------------------

commit 895dd47937c6c9340bf4f289f9f43d5f9be9ffcc
Author: Simon Marlow <marlowsd <at> gmail.com>
Date:   Tue Aug 21 15:42:50 2012 +0100

    Remove finalizers from a ForeignPtr atomically (#7170)

>---------------------------------------------------------------

 GHC/ForeignPtr.hs |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/GHC/ForeignPtr.hs b/GHC/ForeignPtr.hs
index 7e72315..a9c859a 100644
--- a/GHC/ForeignPtr.hs
+++ b/GHC/ForeignPtr.hs
 <at>  <at>  -344,7 +344,9  <at>  <at>  noMixing ftype0 r mkF = do
        return (null fs)

 foreignPtrFinalizer :: IORef (Finalizers, [IO ()]) -> IO ()
-foreignPtrFinalizer r = do (_, fs) <- readIORef r; sequence_ fs
+foreignPtrFinalizer r = do
+  fs <- atomicModifyIORef r $ \(f,fs) -> ((f,[]), fs) -- atomic, see #7170
(Continue reading)

Simon Marlow | 21 Aug 2012 16:54
Picon

[commit: base] master: add errorWithStackTrace (e1d28c1)

Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/e1d28c19f7a6b3a9f0e3584f0315b4b2c5235de6

>---------------------------------------------------------------

commit e1d28c19f7a6b3a9f0e3584f0315b4b2c5235de6
Author: Simon Marlow <marlowsd <at> gmail.com>
Date:   Thu Aug 9 09:10:32 2012 +0100

    add errorWithStackTrace

    -- | Like the function 'error', but appends a stack trace to the error
    -- message if one is available.
    errorWithStackTrace :: String -> a

>---------------------------------------------------------------

 GHC/Stack.hsc |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/GHC/Stack.hsc b/GHC/Stack.hsc
index 80e4c9f..849a48c 100644
--- a/GHC/Stack.hsc
+++ b/GHC/Stack.hsc
 <at>  <at>  -17,6 +17,7  <at>  <at>  module GHC.Stack (
     -- * Call stack
     currentCallStack,
(Continue reading)


Gmane