Jose Pedro Magalhaes [Fri, 16 Jan 2009 14:06:55 +0000 (14:06 +0000)]
Fix #2759: add mkRealConstr and mkIntegralConstr, deprecate mkFloatConstr and mkIntConstr
Jose Pedro Magalhaes [Thu, 11 Dec 2008 14:47:16 +0000 (14:47 +0000)]
Correct SYB's representation of Char
Ross Paterson [Sun, 18 Jan 2009 01:15:08 +0000 (01:15 +0000)]
avoid `mappend` in monoid laws, because it doesn't work with haddock
Ian Lynagh [Wed, 14 Jan 2009 23:45:12 +0000 (23:45 +0000)]
Make Data.Typeable imports and exports more explicit
Ross Paterson [Fri, 16 Jan 2009 15:16:24 +0000 (15:16 +0000)]
add Monoid laws
Malcolm.Wallace@cs.york.ac.uk [Fri, 16 Jan 2009 11:01:32 +0000 (11:01 +0000)]
Unbreak an import cycle caused by moving 'catch' definitions around.
The new cycle was introduced for nhc98 only.
Ross Paterson [Thu, 15 Jan 2009 22:24:41 +0000 (22:24 +0000)]
make the Monoid docs more self-contained
Ian Lynagh [Wed, 14 Jan 2009 21:10:33 +0000 (21:10 +0000)]
Move some catch definitions around to avoid an import loop
As suggested by simonpj in trac #2822.
Ian Lynagh [Wed, 14 Jan 2009 20:28:10 +0000 (20:28 +0000)]
Add NoImplicitPrelude to the extensions used when building with GHC
Simon Marlow [Wed, 14 Jan 2009 13:46:12 +0000 (13:46 +0000)]
#2699: exit silently for EPIPE on stdout
Ian Lynagh [Mon, 5 Jan 2009 10:20:20 +0000 (10:20 +0000)]
Fix build when we have HTYPE_TCFLAG_T
Ian Lynagh [Mon, 5 Jan 2009 01:46:25 +0000 (01:46 +0000)]
Fix the build on Windows
Ian Lynagh [Sun, 4 Jan 2009 17:30:18 +0000 (17:30 +0000)]
Add errno to the IOError type
Ian Lynagh [Sun, 4 Jan 2009 15:44:05 +0000 (15:44 +0000)]
Fix typo (reqwests -> requests); trac #2908, spotted by bancroft
simonpj@microsoft.com [Fri, 2 Jan 2009 14:53:25 +0000 (14:53 +0000)]
More compact error messages for record selectors
Make recSelError generate the standard part of the record selector
error message (i.e. "No match in record selector") rather than have
that string duplicated for every record selector.
Simon Marlow [Wed, 17 Dec 2008 10:46:55 +0000 (10:46 +0000)]
extra dependencies for the new build system
Simon Marlow [Wed, 17 Dec 2008 10:46:37 +0000 (10:46 +0000)]
warning fix: don't use -XPatternSignatures in GHC >= 6.10
Simon Marlow [Tue, 16 Dec 2008 10:41:43 +0000 (10:41 +0000)]
Rollback INLINE patches
rolling back:
Fri Dec 5 17:00:15 GMT 2008 simonpj@microsoft.com
* Update INLINE pragmas for new INLINE story
- (.) and foldr should inline when applied to only two arguments
- Make unpackCString# NOINLINE; it inlines too much (with little gain)
M ./GHC/Base.lhs -10 +31
Ivan Tomac [Wed, 10 Dec 2008 15:05:10 +0000 (15:05 +0000)]
FIX #1364: added support for C finalizers that run as soon as the value is no longer reachable.
Patch amended by Simon Marlow:
- mkWeakFinalizer# commoned up with mkWeakFinalizerEnv#
Jose Pedro Magalhaes [Fri, 21 Nov 2008 14:19:05 +0000 (14:19 +0000)]
Fix #2760: deprecate mkNorepType, add mkNoRepType
simonpj@microsoft.com [Fri, 5 Dec 2008 17:00:15 +0000 (17:00 +0000)]
Update INLINE pragmas for new INLINE story
- (.) and foldr should inline when applied to only two arguments
- Make unpackCString# NOINLINE; it inlines too much (with little gain)
Jose Pedro Magalhaes [Mon, 1 Dec 2008 11:34:11 +0000 (11:34 +0000)]
Fix #2750: change Prelude.(,) to Prelude.(,,)
shelarcy [Sat, 29 Nov 2008 02:46:39 +0000 (02:46 +0000)]
Fix typo (or out of date reference) in throwTo documentation.
Ian Lynagh [Wed, 19 Nov 2008 14:31:31 +0000 (14:31 +0000)]
Add more description of what "round" does, from the H98 report
Simon Marlow [Thu, 20 Nov 2008 10:18:26 +0000 (10:18 +0000)]
re-instate the gcd/Integer and lcm/Integer RULES
Fixes a performance regression between 6.8.3 and 6.10.1
Ian Lynagh [Sun, 16 Nov 2008 16:02:28 +0000 (16:02 +0000)]
Change an "undefined" into a more informative error; trac #2782
jpm@cs.uu.nl [Tue, 11 Nov 2008 09:50:23 +0000 (09:50 +0000)]
updating Haddock documentation
Fixed the broken link from Data.Generics to Data.Data.
Simon Marlow [Thu, 6 Nov 2008 09:54:19 +0000 (09:54 +0000)]
add GHC.Conc.runSparks (required by GHC patch "Run sparks in batches")
Ross Paterson [Tue, 4 Nov 2008 14:45:15 +0000 (14:45 +0000)]
FIX #2722: update RULES for the Category/Arrow split
The rule
arr id = id
interacts unpleasantly with the advice to define
id = arr id
in instances of Category that are also instances of Arrow (#2722).
Also changed a couple of >>>'s to .'s in later rules.
Max Bolingbroke [Thu, 16 Oct 2008 12:26:08 +0000 (12:26 +0000)]
Add AnnotationWrapper type so GHC can capture annotation dictionaries during compilation
Simon Marlow [Thu, 16 Oct 2008 10:04:10 +0000 (10:04 +0000)]
docs about how exceptions are handled by forkIO'd threads (#2651)
Clemens Fruhwirth [Mon, 13 Oct 2008 16:12:20 +0000 (16:12 +0000)]
Import n_capabilities via import symbol when linking dynamically
jpm@cs.uu.nl [Mon, 13 Oct 2008 11:16:05 +0000 (11:16 +0000)]
add link to the new syb wiki
jpm@cs.uu.nl [Fri, 10 Oct 2008 09:54:34 +0000 (09:54 +0000)]
changing haddock links
Simon Marlow [Fri, 10 Oct 2008 11:38:35 +0000 (11:38 +0000)]
add readTVarIO :: TVar a -> IO a
jpm@cs.uu.nl [Mon, 6 Oct 2008 07:52:54 +0000 (07:52 +0000)]
removed (->) instance from Data.Data
Ross Paterson [Tue, 7 Oct 2008 13:48:09 +0000 (13:48 +0000)]
non-GHC: delete unnecessary imports
'Jose Pedro Magalhaes [Thu, 2 Oct 2008 14:05:35 +0000 (14:05 +0000)]
added new module Data.Data
The new Data.Data module contains all of Data.Generics.Basics
and most of Data.Generics.Instances. The missing instances were
deemed dubious and moved to the syb package.
'Jose Pedro Magalhaes [Thu, 2 Oct 2008 08:27:35 +0000 (08:27 +0000)]
add new Data.Data module
'Jose Pedro Magalhaes [Thu, 2 Oct 2008 08:26:55 +0000 (08:26 +0000)]
restore Complex's derived Data instance
'Jose Pedro Magalhaes [Thu, 2 Oct 2008 08:26:04 +0000 (08:26 +0000)]
update Data.Generics import
Ian Lynagh [Sat, 4 Oct 2008 14:26:51 +0000 (14:26 +0000)]
Don't use ^(2::Int) in Data.Complex.magnitude; partially fixes trac #2450
We still might want to make a RULE for this, so the bug is not fully fixed.
Simon Marlow [Tue, 23 Sep 2008 13:49:49 +0000 (13:49 +0000)]
Restore the Haskell 98 behaviour of Show Ratio (#1920)
Ian Lynagh [Sat, 20 Sep 2008 15:58:01 +0000 (15:58 +0000)]
Pad version number to 4.0.0.0
Malcolm.Wallace@cs.york.ac.uk [Wed, 17 Sep 2008 07:53:26 +0000 (07:53 +0000)]
In nhc98, Word is a type synonym, so class instance is not possible.
Simon Marlow [Tue, 16 Sep 2008 13:35:05 +0000 (13:35 +0000)]
Fix bugs in Text.Printf (#1548)
Simon Marlow [Fri, 12 Sep 2008 13:49:01 +0000 (13:49 +0000)]
We should be including Rts.h here, not Stg.h
Stg.h is for .hc files only, and it sets up various global register
variables.
<unknown> [Fri, 22 Aug 2008 02:27:55 +0000 (02:27 +0000)]
Generic functions that take integral arguments should work the same way as their prelude counterparts
The Prelude functions drop, take, and splitAt are unfailing (never call error). This patch changes the Data.List generic versions to behave the same way. At present, they call error on negative arguments.
Ian Lynagh [Thu, 4 Sep 2008 20:28:45 +0000 (20:28 +0000)]
Don't define __hscore_s_issock on Windows
Ian Lynagh [Thu, 4 Sep 2008 18:51:22 +0000 (18:51 +0000)]
Unbreak the GHC build with older versions of gcc
Patch from kili@outback.escape.de, who says:
Stg.h must be included before HsBase.h, because the latter contains
function definitions causing older versions of gcc (3.3.5 in my
case) to bail out with "error: global register variable follows a
function definition" on Regs.h, which is included by Stg.h.
Ian Lynagh [Thu, 4 Sep 2008 16:42:34 +0000 (16:42 +0000)]
Don't make S_ISSOCK use conditional
We were conditionally defining the C wrapper, but unconditionally using
it. So if it didn't exist then things would have broken anyway.
Ian Lynagh [Thu, 4 Sep 2008 10:09:51 +0000 (10:09 +0000)]
Add missing files
Ian Lynagh [Wed, 3 Sep 2008 20:19:08 +0000 (20:19 +0000)]
Remerge concurrent,unique,timeout,st,getopt into base
Ross Paterson [Wed, 3 Sep 2008 14:44:36 +0000 (14:44 +0000)]
remove 'pure' method from Arrow class (#2517)
Ross Paterson [Wed, 3 Sep 2008 11:35:43 +0000 (11:35 +0000)]
make Typeable instances for larger tuples available to non-GHC
Ian Lynagh [Tue, 2 Sep 2008 22:47:30 +0000 (22:47 +0000)]
Don't look for actual OldException.Exception exceptions
We don't actually throw them (we throw the new Exception equivalents
instead), and looking for them was causing an infinite loop
Ross Paterson [Tue, 2 Sep 2008 15:30:29 +0000 (15:30 +0000)]
add include/CTypes.h to extra-source-files
Ross Paterson [Tue, 2 Sep 2008 08:01:13 +0000 (08:01 +0000)]
avoid relying on the implementation of SomeException
This is because Hugs uses a different implementation.
No semantic change.
Ross Paterson [Sun, 31 Aug 2008 18:02:27 +0000 (18:02 +0000)]
non-GHC: leave out Belch functions
Ross Paterson [Sun, 31 Aug 2008 18:00:48 +0000 (18:00 +0000)]
non-GHC: add Typeable instance for ForeignPtr
Simon Marlow [Tue, 2 Sep 2008 09:31:26 +0000 (09:31 +0000)]
docs: mention that killThread on a completed thread is a no-op
Simon Marlow [Tue, 2 Sep 2008 09:29:50 +0000 (09:29 +0000)]
#2528: reverse the order of args to (==) in nubBy to match nub
This only makes a difference when the (==) definition is not
reflexive, but strictly speaking it does violate the report definition
of nubBy, so we should fix it.
Malcolm.Wallace@cs.york.ac.uk [Mon, 1 Sep 2008 14:57:38 +0000 (14:57 +0000)]
System.Timeout is no longer part of base
Malcolm.Wallace@cs.york.ac.uk [Wed, 27 Aug 2008 14:53:36 +0000 (14:53 +0000)]
getopt is no longer part of base
Ian Lynagh [Mon, 25 Aug 2008 21:41:44 +0000 (21:41 +0000)]
Split syb off into its own package
I've also moved the Data (Complex a) instance into it, and made it
portable rather than GHC-only in the process.
Ross Paterson [Mon, 25 Aug 2008 23:13:17 +0000 (23:13 +0000)]
add extra-source-files field
Ian Lynagh [Mon, 25 Aug 2008 14:18:41 +0000 (14:18 +0000)]
Fix warnings in PrelIOUtils.c
Ian Lynagh [Sun, 24 Aug 2008 16:41:46 +0000 (16:41 +0000)]
Windows-only fixes for moving concurrent out of base
Ian Lynagh [Sun, 24 Aug 2008 12:39:56 +0000 (12:39 +0000)]
Split off the concurrent hierarchy (concurrent, unique, timeout)
Ian Lynagh [Sun, 24 Aug 2008 02:02:13 +0000 (02:02 +0000)]
Split getopt off into its own package
Ian Lynagh [Sat, 23 Aug 2008 22:30:14 +0000 (22:30 +0000)]
Remove ST stuff that is now in the new st package
Ian Lynagh [Sat, 23 Aug 2008 00:22:49 +0000 (00:22 +0000)]
Fix Windows-only warnings
Ian Lynagh [Fri, 22 Aug 2008 23:48:37 +0000 (23:48 +0000)]
Fix Windows-only warnings in GHC.Conc
Ian Lynagh [Fri, 22 Aug 2008 23:39:51 +0000 (23:39 +0000)]
Suppress some warnings that are hard to fix because of ifdefs
Ian Lynagh [Thu, 21 Aug 2008 11:07:23 +0000 (11:07 +0000)]
Provide blockedOnDeadMVar, blockedIndefinitely for the RTS
Ian Lynagh [Wed, 20 Aug 2008 23:39:58 +0000 (23:39 +0000)]
Fix more warnings
Ian Lynagh [Wed, 20 Aug 2008 23:20:18 +0000 (23:20 +0000)]
Suppress a couple of warnings in GHC.PArr
The fix isn't immediately obvious to me
Ian Lynagh [Wed, 20 Aug 2008 23:19:37 +0000 (23:19 +0000)]
Fix more warnings
Ian Lynagh [Wed, 20 Aug 2008 23:04:37 +0000 (23:04 +0000)]
Fix warnings in Data.Generics.*
Ian Lynagh [Wed, 20 Aug 2008 22:32:52 +0000 (22:32 +0000)]
Fix some more warnings
Ian Lynagh [Wed, 20 Aug 2008 21:19:01 +0000 (21:19 +0000)]
Ignore some orphan warnings
Simon Marlow [Thu, 21 Aug 2008 14:23:39 +0000 (14:23 +0000)]
remove some functions that aren't used in base
Simon Marlow [Mon, 18 Aug 2008 15:59:50 +0000 (15:59 +0000)]
remove __hscore_renameFile, it is no longer uesd
System.Directory implements renameFile using unix/Win32 now.
Simon Marlow [Mon, 18 Aug 2008 13:28:56 +0000 (13:28 +0000)]
Rewrite the documentation for forkOS again
Try to make it clearer that forkOS is only necessary when calling
foreing libraries that use thread-local state, and it has nothing to
do with scheduling behaviour between Haskell threads. I also added
something about the performance impact of forkOS, and mentioned that
the main thread is a bound thread.
Ross Paterson [Sun, 17 Aug 2008 00:27:19 +0000 (00:27 +0000)]
nhc only: expose Foldable and Traversable instances of Array
These were turned off as a side-effect of a previous nhc-only fix for
#2176 that is no longer needed. They should be fine for nhc now.
Ian Lynagh [Sat, 16 Aug 2008 18:27:15 +0000 (18:27 +0000)]
Fix hReady (trac #1063)
We now throw an EOF exception when appropriate
Bertram Felgenhauer [Sat, 16 Aug 2008 13:26:31 +0000 (13:26 +0000)]
Fix oversight in Control.OldException
The NonTermination constructor slipped through in the Exception instance.
Ian Lynagh [Sat, 16 Aug 2008 12:22:53 +0000 (12:22 +0000)]
Eliminate orphan rules and instances in the array package
Ian Lynagh [Thu, 14 Aug 2008 21:02:19 +0000 (21:02 +0000)]
Control.OldException: Map exceptions to old exceptions and back properly.
* Control.OldException: Map exceptions to old exceptions and back properly.
It's really necessary to map them back as well, or the RTS and base library
will not recognize exceptions that got caught and rethrown. (See #2508)
Patch from Bertram Felgenhauer <int-e@gmx.de>
Ross Paterson [Thu, 14 Aug 2008 16:26:17 +0000 (16:26 +0000)]
add Traversable generalizations of mapAccumL and mapAccumR (#2461)
Ross Paterson [Thu, 14 Aug 2008 14:36:50 +0000 (14:36 +0000)]
simplify definition of Prelude.catch
Ross Paterson [Thu, 14 Aug 2008 11:08:41 +0000 (11:08 +0000)]
remove returns from void functions
Malcolm.Wallace@cs.york.ac.uk [Wed, 13 Aug 2008 12:58:50 +0000 (12:58 +0000)]
No reason for Handler and catches to exclude nhc98.
Malcolm.Wallace@cs.york.ac.uk [Wed, 13 Aug 2008 12:57:10 +0000 (12:57 +0000)]
Must import ExitCode for its instance to be re-exported.
The Cabal library depends on "instance Exception ExitCode", and expects
to import it from Control.Exception, not Control.Exception.Base.
Ross Paterson [Wed, 13 Aug 2008 07:13:07 +0000 (07:13 +0000)]
use New.catch instead of catchException in OldException
Ross Paterson [Wed, 13 Aug 2008 00:02:19 +0000 (00:02 +0000)]
use the Haskell 98 module Control.Exception.Base in the Concurrent modules
Ross Paterson [Tue, 12 Aug 2008 23:36:40 +0000 (23:36 +0000)]
export Control.Exception.Base
Ross Paterson [Tue, 12 Aug 2008 15:16:02 +0000 (15:16 +0000)]
use dummy implementation of timeout for all non-GHCs
Ross Paterson [Tue, 12 Aug 2008 14:56:54 +0000 (14:56 +0000)]
Hugs only: fix imports
Ross Paterson [Tue, 12 Aug 2008 14:56:22 +0000 (14:56 +0000)]
non-GHC: hide Prelude.catch