ghc-base.git
12 years agofix incorrect type on GArrowCurry
Adam Megacz [Fri, 25 Mar 2011 23:44:05 +0000 (16:44 -0700)]
fix incorrect type on GArrowCurry

12 years agofinal revision to GArrow classes
Adam Megacz [Tue, 22 Mar 2011 01:24:38 +0000 (18:24 -0700)]
final revision to GArrow classes

12 years agoadjust some of the names in GHC.HetMet.GArrow
Adam Megacz [Sat, 19 Mar 2011 19:47:25 +0000 (12:47 -0700)]
adjust some of the names in GHC.HetMet.GArrow

12 years agomove the (Arrow a)=>(GArrow a (,)) instance to a separate file
Adam Megacz [Sat, 19 Mar 2011 19:44:29 +0000 (12:44 -0700)]
move the (Arrow a)=>(GArrow a (,)) instance to a separate file

12 years agoremove unnecessary testing definition from CodeTypes.hs
Adam Megacz [Sat, 19 Mar 2011 19:33:34 +0000 (12:33 -0700)]
remove unnecessary testing definition from CodeTypes.hs

12 years agomake Control.Category a superclass of GArrow
Adam Megacz [Sat, 19 Mar 2011 19:32:20 +0000 (12:32 -0700)]
make Control.Category a superclass of GArrow

12 years agoadd Control.Category instance for GArrow
Adam Megacz [Sat, 19 Mar 2011 19:32:15 +0000 (12:32 -0700)]
add Control.Category instance for GArrow

12 years agoadd GArrow instance for Control.Arrow
Adam Megacz [Sat, 19 Mar 2011 19:32:13 +0000 (12:32 -0700)]
add GArrow instance for Control.Arrow

12 years agoimprove comments in GHC.HetMet.GArrow
Adam Megacz [Sat, 19 Mar 2011 19:32:10 +0000 (12:32 -0700)]
improve comments in GHC.HetMet.GArrow

12 years agomigrate HetMet base changes to git repo
Adam Megacz [Sat, 19 Mar 2011 19:32:04 +0000 (12:32 -0700)]
migrate HetMet base changes to git repo

12 years agoMerge remote branch 'origin/master' into ghc-generics
Simon Peyton Jones [Thu, 26 May 2011 13:33:23 +0000 (14:33 +0100)]
Merge remote branch 'origin/master' into ghc-generics

12 years agoMerge branch 'ghc-generics' of http://darcs.haskell.org/packages/base into ghc-generics
Simon Peyton Jones [Wed, 25 May 2011 06:54:29 +0000 (07:54 +0100)]
Merge branch 'ghc-generics' of darcs.haskell.org/packages/base into ghc-generics

12 years agoRemove datatype contexts from base
Ian Lynagh [Tue, 24 May 2011 22:26:00 +0000 (23:26 +0100)]
Remove datatype contexts from base

The Haskell' committee decided to remove datatype contexts from the language:
http://www.haskell.org/pipermail/haskell-prime/2011-January/003335.html

12 years agoadd final newline
Simon Marlow [Mon, 23 May 2011 10:19:55 +0000 (11:19 +0100)]
add final newline

12 years agodocument the behaviour of throwTo to the current thread (#4888)
Simon Marlow [Tue, 24 May 2011 10:02:52 +0000 (11:02 +0100)]
document the behaviour of throwTo to the current thread (#4888)

12 years agodocument the memory model of IORef
Simon Marlow [Tue, 24 May 2011 10:02:29 +0000 (11:02 +0100)]
document the memory model of IORef

12 years agodocs: note strict sequential ordering of MVar operations
Simon Marlow [Thu, 19 May 2011 14:46:30 +0000 (15:46 +0100)]
docs: note strict sequential ordering of MVar operations

12 years agoAdd System.IO.char8, the encoding used by openBinaryFile,
Simon Marlow [Tue, 5 Apr 2011 08:57:22 +0000 (09:57 +0100)]
Add System.IO.char8, the encoding used by openBinaryFile,
and correct the documentation for hSetBinaryMode which claimed that
it was using the latin1 encoding when in fact it was using an
unchecked modulo-256 version of it.

12 years agoMove tests from testsuite/tests/libraries
Ian Lynagh [Sun, 8 May 2011 21:04:51 +0000 (22:04 +0100)]
Move tests from testsuite/tests/libraries

12 years agoAdd tests from testsuite/tests/h98
Ian Lynagh [Sun, 8 May 2011 20:14:09 +0000 (21:14 +0100)]
Add tests from testsuite/tests/h98

12 years agoMerge branch 'master' of http://darcs.haskell.org/packages/base into ghc-generics
Jose Pedro Magalhaes [Fri, 20 May 2011 18:15:48 +0000 (20:15 +0200)]
Merge branch 'master' of darcs.haskell.org/packages/base into ghc-generics

12 years agoMerge remote branch 'origin/master' into ghc-generics
Simon Peyton Jones [Thu, 19 May 2011 07:38:35 +0000 (08:38 +0100)]
Merge remote branch 'origin/master' into ghc-generics

12 years agoChange to the 0xEF80..0xEFFF private-use range for //ROUNDTRIP
Max Bolingbroke [Wed, 18 May 2011 22:13:30 +0000 (23:13 +0100)]
Change to the 0xEF80..0xEFFF private-use range for //ROUNDTRIP

12 years agoUse Unicode private-use characters for roundtripping
Max Bolingbroke [Wed, 18 May 2011 08:41:49 +0000 (09:41 +0100)]
Use Unicode private-use characters for roundtripping

This replaces the previous scheme (which used lone surrogates). The reason is that
there is Haskell software in the wild (i.e. the text package) that chokes on Char values
that do not represent Unicode characters.

This new approach will not work correctly if the reserved private-use characters are
actually encountered in the input, but we expect this to be rare.

12 years agoMerge branch 'master' of http://darcs.haskell.org/packages/base into ghc-generics
Jose Pedro Magalhaes [Tue, 17 May 2011 06:51:23 +0000 (08:51 +0200)]
Merge branch 'master' of darcs.haskell.org/packages/base into ghc-generics

12 years agoBig patch to improve Unicode support in GHC. Validated on OS X and Windows, this
Max Bolingbroke [Sat, 14 May 2011 21:50:46 +0000 (22:50 +0100)]
Big patch to improve Unicode support in GHC. Validated on OS X and Windows, this
patch series fixes #5061, #1414, #3309, #3308, #3307, #4006 and #4855.

The major changes are:

 1) Make Foreign.C.String.*CString use the locale encoding

    This change follows the FFI specification in Haskell 98, which
    has never actually been implemented before.

    The functions exported from Foreign.C.String are partially-applied
    versions of those from GHC.Foreign, which allows the user to supply
    their own TextEncoding.

    We also introduce foreignEncoding as the name of the text encoding
    that follows the FFI appendix in that it transliterates encoding
    errors.

 2) I also changed the code so that mkTextEncoding always tries the
    native-Haskell decoders in preference to those from iconv, even on
    non-Windows. The motivation here is simply that it is better for
    compatibility if we do this, and those are the ones you get for
    the utf* and latin1* predefined TextEncodings anyway.

 3) Implement surrogate-byte error handling mode for TextEncoding

    This implements PEP383-like behaviour so that we are able to
    roundtrip byte strings through Strings without loss of information.

    The withFilePath function now uses this encoding to get to/from CStrings,
    so any code that uses that will get the right PEP383 behaviour automatically.

 4) Implement three other coding failure modes: ignore, throw error, transliterate

    These mimic the behaviour of the GNU Iconv extensions.

12 years agoMerge branch 'master' of http://darcs.haskell.org/packages/base into ghc-generics
Jose Pedro Magalhaes [Thu, 12 May 2011 11:20:48 +0000 (13:20 +0200)]
Merge branch 'master' of darcs.haskell.org/packages/base into ghc-generics

12 years agodisable incorrect RULEs for Floats (#5178)
Simon Marlow [Tue, 10 May 2011 09:46:45 +0000 (10:46 +0100)]
disable incorrect RULEs for Floats (#5178)

12 years agoAdapt to the renaming of `Representable0` to `Generic`.
Jose Pedro Magalhaes [Mon, 9 May 2011 07:47:29 +0000 (09:47 +0200)]
Adapt to the renaming of `Representable0` to `Generic`.

12 years agoMerge branch 'master' of http://darcs.haskell.org/packages/base into ghc-generics
Jose Pedro Magalhaes [Wed, 4 May 2011 19:09:29 +0000 (21:09 +0200)]
Merge branch 'master' of darcs.haskell.org/packages/base into ghc-generics

12 years agoMerge branch 'monad-comp'
Simon Peyton Jones [Wed, 4 May 2011 15:38:41 +0000 (16:38 +0100)]
Merge branch 'monad-comp'

12 years agoAdd Representable0 instances to Either and Maybe.
Jose Pedro Magalhaes [Wed, 4 May 2011 09:18:46 +0000 (11:18 +0200)]
Add Representable0 instances to Either and Maybe.

12 years agoMove Eq and Ord for Int from GHC.Base to GHC.Classes, so they are not longer orphan.
Jose Pedro Magalhaes [Tue, 3 May 2011 13:40:33 +0000 (15:40 +0200)]
Move Eq and Ord for Int from GHC.Base to GHC.Classes, so they are not longer orphan.

Put Eq and Ord instances for Arity, Associativity, and Fixity in GHC.Classes, Show instances in GHC.Show, and Read instances in GHC.Read.

12 years agoMoved the CString functions to GHC.CString in ghc-prim (needed for the new generic...
Jose Pedro Magalhaes [Tue, 3 May 2011 09:50:30 +0000 (11:50 +0200)]
Moved the CString functions to GHC.CString in ghc-prim (needed for the new generic deriving mechanism).

Import and re-export GHC.CString from GHC.Base.

12 years agoMerge branch 'master' of http://darcs.haskell.org/packages/base into ghc-generics
Jose Pedro Magalhaes [Mon, 2 May 2011 19:13:19 +0000 (21:13 +0200)]
Merge branch 'master' of darcs.haskell.org/packages/base into ghc-generics

Solved conflicts:
GHC/Int.hs

12 years agoComment the generics stuff instances in GHC.Int, for now.
Jose Pedro Magalhaes [Mon, 2 May 2011 18:50:35 +0000 (20:50 +0200)]
Comment the generics stuff instances in GHC.Int, for now.

13 years agoAdd a note about the definition of quot etc
Ian Lynagh [Sat, 30 Apr 2011 14:52:57 +0000 (15:52 +0100)]
Add a note about the definition of quot etc

Based on Simon PJ's text in #5161.

13 years agoAdd GHC.Event.getSystemEventManager :: IO (Maybe EventManager)
Bas van Dijk [Mon, 4 Apr 2011 18:22:09 +0000 (20:22 +0200)]
Add GHC.Event.getSystemEventManager :: IO (Maybe EventManager)

13 years agoPerformance improvement for division: got rid of an unnecessary branching in cases...
Denys Rtveliashvili [Thu, 28 Apr 2011 07:45:10 +0000 (08:45 +0100)]
Performance improvement for division: got rid of an unnecessary branching in cases where the second argument is a constant and is not -1.

13 years agomonad comprehensions: Group and Zip monad
Nils Schweinsberg [Fri, 29 Apr 2011 16:16:56 +0000 (18:16 +0200)]
monad comprehensions: Group and Zip monad

ticket #4370

13 years agoAdd instances for basic types of the new generic deriving mechanism.
Jose Pedro Magalhaes [Fri, 29 Apr 2011 06:46:08 +0000 (08:46 +0200)]
Add instances for basic types of the new generic deriving mechanism.

13 years agoMerge branch 'master' of http://darcs.haskell.org/packages/base into ghc-generics
Jose Pedro Magalhaes [Wed, 27 Apr 2011 11:21:02 +0000 (13:21 +0200)]
Merge branch 'master' of darcs.haskell.org/packages/base into ghc-generics

13 years agoRemove a redundant -fno-warn-unused-binds flag
Ian Lynagh [Sun, 24 Apr 2011 21:04:10 +0000 (22:04 +0100)]
Remove a redundant -fno-warn-unused-binds flag

13 years agoRemove an unnecessary -fno-warn-unused-binds flag
Ian Lynagh [Sun, 24 Apr 2011 19:32:07 +0000 (20:32 +0100)]
Remove an unnecessary -fno-warn-unused-binds flag

13 years agoFor GHC, implement the Typeable.hs macros using standalone deriving
Ian Lynagh [Sun, 24 Apr 2011 18:16:52 +0000 (19:16 +0100)]
For GHC, implement the Typeable.hs macros using standalone deriving

As well as being more pleasant, this fixes #1841:
    Data.Typeable: Instances of basic types don't provide qualified
    strings to mkTyCon

13 years agoFix build on 64bit machines
Ian Lynagh [Fri, 22 Apr 2011 17:42:23 +0000 (18:42 +0100)]
Fix build on 64bit machines

13 years agoPart of #5122 "Faster conversion between Rational and Double/Float" fix
Ian Lynagh [Fri, 22 Apr 2011 14:24:21 +0000 (15:24 +0100)]
Part of #5122 "Faster conversion between Rational and Double/Float" fix

From daniel.is.fischer.

13 years agoUpdate comment on fmapDefault to note that it only works for Traversable instances...
Brent Yorgey [Fri, 15 Apr 2011 19:22:54 +0000 (15:22 -0400)]
Update comment on fmapDefault to note that it only works for Traversable instances with a given definition of traversable, and NOT for instances with only sequenceA given.

13 years agoImprove docs for GHC.IO.FD.openFile
Simon Marlow [Fri, 1 Apr 2011 11:15:50 +0000 (12:15 +0100)]
Improve docs for GHC.IO.FD.openFile

13 years agoInitial commit for Pedro's generic-default mechanism
simonpj [Tue, 12 Apr 2011 16:48:42 +0000 (17:48 +0100)]
Initial commit for Pedro's generic-default mechanism

13 years agoUpdate source repo location to be the git repo in .cabal file
Ian Lynagh [Fri, 8 Apr 2011 10:22:28 +0000 (11:22 +0100)]
Update source repo location to be the git repo in .cabal file

13 years agoRemoved Show instance for IOCallback and FdData The IOCallback instance conflicts...
Bas van Dijk [Mon, 4 Apr 2011 18:53:24 +0000 (20:53 +0200)]
Removed Show instance for IOCallback and FdData The IOCallback instance conflicts with the more general instance Show (a -> b) defined in Text.Show.Functions

13 years agoSwap FP_COMMUTE_INT argument order to match AC_COMPUTE_INT
Ian Lynagh [Wed, 6 Apr 2011 20:44:34 +0000 (21:44 +0100)]
Swap FP_COMMUTE_INT argument order to match AC_COMPUTE_INT

The first 2 arguments are in the opposite order for _AC_COMPUTE_INT

13 years agoUse FP_COMPUTE_INT rather than AC_COMPUTE_INT
Ian Lynagh [Wed, 6 Apr 2011 19:39:42 +0000 (20:39 +0100)]
Use FP_COMPUTE_INT rather than AC_COMPUTE_INT

The latter isn't supported by all versions of autoconf (e.g.
whatever SPJ currently has on Windows).

13 years agoUse _NSGetEnviron on OS X: fixes #2458
Max Bolingbroke [Wed, 6 Apr 2011 06:57:40 +0000 (07:57 +0100)]
Use _NSGetEnviron on OS X: fixes #2458

13 years agoDocument invariants on mkText{Decoder,Encoder}
Max Bolingbroke [Mon, 4 Apr 2011 13:45:13 +0000 (14:45 +0100)]
Document invariants on mkText{Decoder,Encoder}

13 years agoChange some uses of CString functions to CAString instead
Max Bolingbroke [Sun, 3 Apr 2011 21:36:39 +0000 (22:36 +0100)]
Change some uses of CString functions to CAString instead

This prevents potential loops in future if we implement
FFI spec behaviour where the CString family use the locale encoding.

13 years agoFix handling of suffixes for GNU iconv
Max Bolingbroke [Sun, 3 Apr 2011 20:55:00 +0000 (21:55 +0100)]
Fix handling of suffixes for GNU iconv

13 years agoChange debug prints in readTextDevice' to refer to right function
Max Bolingbroke [Sun, 3 Apr 2011 20:53:45 +0000 (21:53 +0100)]
Change debug prints in readTextDevice' to refer to right function

13 years agoMerge branch 'master' of ssh://darcs.haskell.org/srv/darcs/packages/base
Max Bolingbroke [Sun, 3 Apr 2011 20:51:23 +0000 (21:51 +0100)]
Merge branch 'master' of ssh://darcs.haskell.org/srv/darcs/packages/base

13 years agoAdd .gitignore
Max Bolingbroke [Sun, 3 Apr 2011 20:51:14 +0000 (21:51 +0100)]
Add .gitignore

13 years agoLess strict inits and tails
Ian Lynagh [Sun, 3 Apr 2011 16:08:46 +0000 (17:08 +0100)]
Less strict inits and tails

Converted from darcs patches from Bas van Dijk <v.dijk.bas@gmail.com>

Previously: tails _|_ = _|_
Now:        tails _|_ = _|_ : _|_

Previously: inits _|_ = _|_
Now:        inits _|_ = [] : _|_

13 years agoTweak alloca docs
Ian Lynagh [Sun, 3 Apr 2011 15:27:56 +0000 (16:27 +0100)]
Tweak alloca docs

Based on a patch from Jason Dagit

13 years agoGeneralize the type of Foreign.Marshal.Utils.maybeNew; fixes trac #5044
Ian Lynagh [Sun, 3 Apr 2011 13:55:50 +0000 (14:55 +0100)]
Generalize the type of Foreign.Marshal.Utils.maybeNew; fixes trac #5044

git conversion of:
Tue Mar  8 22:31:07 CET 2011  Bas van Dijk <v.dijk.bas@gmail.com>
  * Generalize the type of Foreign.Marshal.Utils.maybeNew
  This makes it consistent with maybeWith

13 years agoRewrite FPTOOLS_CHECK_HTYPE to be cross-compilation-friendly ghc-darcs-git-switchover
Ian Lynagh [Thu, 31 Mar 2011 01:18:08 +0000 (01:18 +0000)]
Rewrite FPTOOLS_CHECK_HTYPE to be cross-compilation-friendly
Inspired by a patch from Mark Lentczner

13 years agoNo need to include the OpenGL / OpenAL headers in aclocal.m4
Ian Lynagh [Wed, 30 Mar 2011 20:27:56 +0000 (20:27 +0000)]
No need to include the OpenGL / OpenAL headers in aclocal.m4

13 years agoExport the affinity API from Control.Concurrent: forkOn and friends.
Simon Marlow [Wed, 30 Mar 2011 10:05:04 +0000 (10:05 +0000)]
Export the affinity API from Control.Concurrent: forkOn and friends.

forkOn             :: Int -> IO () -> IO ThreadId
forkOnWithUnmask   :: Int -> ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId
getNumCapabilities :: IO Int
threadCapability   :: ThreadId -> IO (Int, Bool)

Following discussion on the libraries list, I renamed forkOnIO to
forkOn.  In due course we might want to also rename forkIO to fork.

I left the Int argument as it is, it's quite useful to be able to
specify a number to be interpreted modulo the actual number of
processors.

I also used the term "capability" consistently.  It might not be the
best choice, but we have to pick something.

13 years agoDeprecate Control.Exception.blocked in favour of getMaskingState
Bas van Dijk [Thu, 3 Mar 2011 00:42:58 +0000 (00:42 +0000)]
Deprecate Control.Exception.blocked in favour of getMaskingState

13 years agofix Haddock error
Simon Marlow [Tue, 29 Mar 2011 15:03:48 +0000 (15:03 +0000)]
fix Haddock error

13 years agoadd forkIOWithUnmask, forkOnIOWithUnmask; deprecate forkIOUnmasked
Simon Marlow [Tue, 29 Mar 2011 13:56:39 +0000 (13:56 +0000)]
add forkIOWithUnmask, forkOnIOWithUnmask; deprecate forkIOUnmasked

With forkIOUnmasked it wasn't possible to reliably set up an exception
handler in the child thread, because exceptions were immediately
unmasked.

forkIOWithUnmask   ::        ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId
forkOnIOWithUnmask :: Int -> ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId

13 years agoAdd GHC.IO.Handle.FD.openFileBlocking (#4248)
Simon Marlow [Tue, 29 Mar 2011 13:09:28 +0000 (13:09 +0000)]
Add GHC.IO.Handle.FD.openFileBlocking (#4248)
like openFile, but opens the file without O_NONBLOCK

13 years agoAdd allowInterrupt :: IO () (#4810)
Simon Marlow [Wed, 22 Dec 2010 10:01:49 +0000 (10:01 +0000)]
Add allowInterrupt :: IO ()  (#4810)

docs:

-- | When invoked inside 'mask', this function allows a blocked
-- asynchronous exception to be raised, if one exists.  It is
-- equivalent to performing an interruptible operation (see
-- #interruptible#), but does not involve any actual blocking.
--
-- When called outside 'mask', or inside 'uninterruptibleMask', this
-- function has no effect.

13 years agoFix documentation for mkWeakIORef: argument is finalizer, not key or value
Dmitry Astapov [Wed, 19 Jan 2011 10:14:45 +0000 (10:14 +0000)]
Fix documentation for mkWeakIORef: argument is finalizer, not key or value

13 years agoWork around a limitation in the hsc2hs cross-compilation mode
Ian Lynagh [Wed, 23 Mar 2011 23:49:06 +0000 (23:49 +0000)]
Work around a limitation in the hsc2hs cross-compilation mode

13 years agoRename System.Event to GHC.Event
Ian Lynagh [Mon, 21 Mar 2011 23:43:46 +0000 (23:43 +0000)]
Rename System.Event to GHC.Event
It's just an internal GHC library, for now at least

13 years agoNever use epoll_create1; fixes trac #5005
Ian Lynagh [Sat, 12 Mar 2011 21:14:26 +0000 (21:14 +0000)]
Never use epoll_create1; fixes trac #5005
There is little benefit to using epoll_create1 (especially if we still
have the epoll_create code too), and it cuases problems if people build
a GHC binary on one machine and try to use it on another.

13 years agoFix warning
Ian Lynagh [Wed, 9 Mar 2011 20:06:09 +0000 (20:06 +0000)]
Fix warning

13 years agoFIX #2271
Daniel Fischer [Mon, 18 Oct 2010 21:03:37 +0000 (21:03 +0000)]
FIX #2271
Faster rounding functions for Double and float with Int or Integer results.
Fixes #2271.
Since some glibc's have buggy rintf or rint functions and the behaviour of
these functions depends on the setting of the rounding mode, we provide our
own implementations which always round ties to even.

Also added rewrite rules and removed trailing whitespace.

13 years agoadd threadCapability :: ThreadId -> IO (Int,Bool)
Simon Marlow [Tue, 1 Mar 2011 10:32:46 +0000 (10:32 +0000)]
add threadCapability :: ThreadId -> IO (Int,Bool)

-- | returns the number of the capability on which the thread is currently
-- running, and a boolean indicating whether the thread is locked to
-- that capability or not.  A thread is locked to a capability if it
-- was created with @forkOnIO@.

13 years agofollow changes to threadStatus#, and update stat values
Simon Marlow [Wed, 22 Dec 2010 13:00:24 +0000 (13:00 +0000)]
follow changes to threadStatus#, and update stat values

13 years agoMake the Timeout exception a newtype instead of a datatype
Bas van Dijk [Tue, 15 Feb 2011 21:24:57 +0000 (21:24 +0000)]
Make the Timeout exception a newtype instead of a datatype

13 years agoimprove discussion of the laws (doc comments only)
Ross Paterson [Mon, 28 Feb 2011 23:32:32 +0000 (23:32 +0000)]
improve discussion of the laws (doc comments only)

following a suggestion of Russell O'Connor on the libraries list.

13 years agoAdd some more explanation to the skip channel example in the MVar docs
Ian Lynagh [Sat, 26 Feb 2011 00:51:44 +0000 (00:51 +0000)]
Add some more explanation to the skip channel example in the MVar docs

13 years agoGrammar fix
Ian Lynagh [Fri, 25 Feb 2011 21:46:14 +0000 (21:46 +0000)]
Grammar fix

13 years agoExpand and clarify MVar documentation.
Edward Z. Yang [Sun, 16 Jan 2011 19:23:34 +0000 (19:23 +0000)]
Expand and clarify MVar documentation.

13 years agoRemove most of GHC.PArr
Manuel M T Chakravarty [Fri, 18 Feb 2011 01:29:52 +0000 (01:29 +0000)]
Remove most of GHC.PArr
- First step of migrating this code into the dph package

13 years agoRoll back generics changes in the HEAD repos
Ian Lynagh [Sat, 19 Feb 2011 13:31:42 +0000 (13:31 +0000)]
Roll back generics changes in the HEAD repos

13 years agoDo not export GHC.Generics from GHC.Base
jpm@cs.uu.nl [Thu, 14 Oct 2010 12:42:40 +0000 (12:42 +0000)]
Do not export GHC.Generics from GHC.Base

13 years agoFix incorrect #ifdef for nhc98
Malcolm.Wallace@me.com [Fri, 11 Feb 2011 11:17:28 +0000 (11:17 +0000)]
Fix incorrect #ifdef for nhc98

13 years agoAdd Data.String to the nhc98 build
Malcolm.Wallace@me.com [Fri, 11 Feb 2011 11:16:34 +0000 (11:16 +0000)]
Add Data.String to the nhc98 build

13 years agoRegenerated cbits/WCsubst.c based on Unicode 6.0.0
Bas van Dijk [Mon, 7 Feb 2011 19:31:49 +0000 (19:31 +0000)]
Regenerated cbits/WCsubst.c based on Unicode 6.0.0

13 years agoDeprecate System.IO.Error.{catch,try} and Prelude.catch; fixes trac #4865
Ian Lynagh [Sat, 5 Feb 2011 15:53:54 +0000 (15:53 +0000)]
Deprecate System.IO.Error.{catch,try} and Prelude.catch; fixes trac #4865

13 years agoadd getNumCapabilities :: IO Int
Simon Marlow [Wed, 22 Dec 2010 12:59:53 +0000 (12:59 +0000)]
add getNumCapabilities :: IO Int

If we ever get around to implementing #3729 and #3210, then the number
of capabilities will vary at runtime, so we need to move
numCapabilities into the IO monad.

13 years agoadd missing extensions for Windows
Simon Marlow [Mon, 31 Jan 2011 14:32:58 +0000 (14:32 +0000)]
add missing extensions for Windows

13 years agoadd NoImplicitPrelude (fix Windows build failure)
Simon Marlow [Mon, 31 Jan 2011 13:52:09 +0000 (13:52 +0000)]
add NoImplicitPrelude (fix Windows build failure)

13 years agoUse explicit language extensions & remove extension fields from base.cabal
simonpj@microsoft.com [Fri, 28 Jan 2011 12:07:19 +0000 (12:07 +0000)]
Use explicit language extensions & remove extension fields from base.cabal

Add explicit {-# LANGUAGE xxx #-} pragmas to each module, that say
what extensions that module uses.  This makes it clearer where
different extensions are used in the (large, variagated) base package.

Now base.cabal doesn't need any extensions field

Thanks to Bas van Dijk for doing all the work.

13 years agofix silly mistake in hGetBufSome (#4895)
Simon Marlow [Fri, 21 Jan 2011 14:35:55 +0000 (14:35 +0000)]
fix silly mistake in hGetBufSome (#4895)

13 years agoClean up remnants of the Event Manager after forkProcess. Closes #4449
Dmitry Astapov [Wed, 19 Jan 2011 10:33:00 +0000 (10:33 +0000)]
Clean up remnants of the Event Manager after forkProcess. Closes #4449

13 years agoDocument System.Event
Johan Tibell [Wed, 12 Jan 2011 12:54:30 +0000 (12:54 +0000)]
Document System.Event

13 years agoAdd NondecreasingIndentation to the extensions needed
Ian Lynagh [Mon, 17 Jan 2011 18:48:20 +0000 (18:48 +0000)]
Add NondecreasingIndentation to the extensions needed