Malcolm.Wallace@cs.york.ac.uk [Tue, 26 Jun 2007 09:52:22 +0000 (09:52 +0000)]
Use a combination of Haskell/C comments to ensure robustness.
e.g. -- // ensures that _no_ preprocessor will try to tokenise the
rest of the line.
Malcolm.Wallace@cs.york.ac.uk [Mon, 25 Jun 2007 09:45:15 +0000 (09:45 +0000)]
Change C-style comments to Haskell-style.
These two headers are only ever used for pre-processing Haskell code,
and are never seen by any C tools except cpp. Using the Haskell comment
convention means that cpphs no longer needs to be given the --strip
option to remove C comments from open code. This is a Good Thing,
because all of /* */ and // are valid Haskell operator names, and there
is no compelling reason to forbid using them in files which also happen
to have C-preprocessor directives.
Simon Marlow [Fri, 22 Jun 2007 07:34:24 +0000 (07:34 +0000)]
makefileHook needs to generate PrimopWrappers.hs too
Ross Paterson [Wed, 20 Jun 2007 00:03:43 +0000 (00:03 +0000)]
Hugs now gets MonadFix(mfix) from its prelude
Ian Lynagh [Tue, 19 Jun 2007 12:41:40 +0000 (12:41 +0000)]
Typo (consUtils.hs -> consUtils.h)
Bertram Felgenhauer [Wed, 13 Jun 2007 04:17:34 +0000 (04:17 +0000)]
install dependent include files and Typeable.h
Simon Marlow [Thu, 14 Jun 2007 09:53:09 +0000 (09:53 +0000)]
update prototype following inputReady->fdReady change
Simon Marlow [Thu, 14 Jun 2007 09:42:22 +0000 (09:42 +0000)]
FIX hGetBuf001: cut-and-pasto in readRawBufferNoBlock
Ross Paterson [Tue, 5 Jun 2007 22:33:45 +0000 (22:33 +0000)]
fix description of CWStringLen
Isaac Dupree [Fri, 1 Jun 2007 20:36:25 +0000 (20:36 +0000)]
Remove unsafeCoerce-importing kludgery in favor of Unsafe.Coerce
Ross Paterson [Mon, 4 Jun 2007 11:52:33 +0000 (11:52 +0000)]
--configure-option and --ghc-option are now provided by Cabal
Ross Paterson [Tue, 29 May 2007 23:24:27 +0000 (23:24 +0000)]
Data.PackedString: Data.Generics is GHC-only
Ian Lynagh [Tue, 29 May 2007 20:54:20 +0000 (20:54 +0000)]
Add Data instance for PackedString; patch from greenrd in trac #1263
shae@ScannedInAvian.com [Thu, 24 May 2007 16:33:25 +0000 (16:33 +0000)]
Control.Concurrent documentation fix
Malcolm.Wallace@cs.york.ac.uk [Mon, 28 May 2007 12:26:26 +0000 (12:26 +0000)]
add nhc98-options: field to .cabal file
Malcolm.Wallace@cs.york.ac.uk [Mon, 28 May 2007 11:03:09 +0000 (11:03 +0000)]
add a dummy implementation of System.Timeout.timeout for nhc98
Ian Lynagh [Sun, 27 May 2007 12:33:14 +0000 (12:33 +0000)]
Add System.Timeout to base.cabal
Filtered out for non-GHC by Setup.hs.
Malcolm.Wallace@cs.york.ac.uk [Fri, 25 May 2007 14:10:21 +0000 (14:10 +0000)]
add module Data.Fixed to nhc98 build
Malcolm.Wallace@cs.york.ac.uk [Fri, 25 May 2007 11:17:49 +0000 (11:17 +0000)]
DIRS now lives in package Makefile, not script/pkgdirlist
Ross Paterson [Fri, 25 May 2007 00:17:41 +0000 (00:17 +0000)]
delete unused constants
Malcolm.Wallace@cs.york.ac.uk [Thu, 24 May 2007 16:32:00 +0000 (16:32 +0000)]
remove System.Cmd and System.Time too
Malcolm.Wallace@cs.york.ac.uk [Thu, 24 May 2007 16:19:43 +0000 (16:19 +0000)]
remove locale as well
Malcolm.Wallace@cs.york.ac.uk [Thu, 24 May 2007 16:06:15 +0000 (16:06 +0000)]
nhc98 version of instance Show (a->b) copied from Prelude
Malcolm.Wallace@cs.york.ac.uk [Thu, 24 May 2007 16:06:08 +0000 (16:06 +0000)]
remove directory, pretty, and random bits from base for nhc98
Ian Lynagh [Thu, 24 May 2007 14:25:45 +0000 (14:25 +0000)]
Remove Makefile and package.conf.in (used in the old build system)
Ian Lynagh [Wed, 23 May 2007 21:05:23 +0000 (21:05 +0000)]
Split off process package
Ian Lynagh [Wed, 23 May 2007 18:13:31 +0000 (18:13 +0000)]
Fix comment: maperrno is in Win32Utils.c, not runProcess.c
Ian Lynagh [Sat, 19 May 2007 13:26:38 +0000 (13:26 +0000)]
System.Locale is now split out
Ian Lynagh [Sat, 19 May 2007 12:06:42 +0000 (12:06 +0000)]
Split off directory, random and old-time packages
Ian Lynagh [Fri, 18 May 2007 16:54:31 +0000 (16:54 +0000)]
Remove Control.Parallel*, now in package parallel
Ian Lynagh [Fri, 18 May 2007 16:25:21 +0000 (16:25 +0000)]
Remove the pretty-printing modules (now in package pretty(
Simon Marlow [Thu, 17 May 2007 09:49:48 +0000 (09:49 +0000)]
add install-includes: field
Simon Marlow [Wed, 16 May 2007 08:20:19 +0000 (08:20 +0000)]
correct the documentation for newForeignPtr
Simon Marlow [Tue, 15 May 2007 11:46:15 +0000 (11:46 +0000)]
When doing safe writes, handle EAGAIN rather than raising an exception
It might be that stdin was set to O_NONBLOCK by someone else, and we
should handle this case. (this happens with GHCi, I'm not quite sure why)
Ian Lynagh [Mon, 14 May 2007 11:04:09 +0000 (11:04 +0000)]
Use FilePath to make paths when building GHC/Prim.hs and GHC/PrimopWrappers.hs
Ian Lynagh [Wed, 9 May 2007 14:26:55 +0000 (14:26 +0000)]
Build GHC/Prim.hs and GHC/PrimopWrappers.hs from Cabal
Ross Paterson [Sun, 13 May 2007 00:11:38 +0000 (00:11 +0000)]
fix imports for non-GHC
Ian Lynagh [Sat, 12 May 2007 16:02:53 +0000 (16:02 +0000)]
Give an example of how intersection takes elements from the first set
Malcolm.Wallace@cs.york.ac.uk [Tue, 8 May 2007 10:11:24 +0000 (10:11 +0000)]
further clarify the docs for 'evaluate'
Simon Marlow [Tue, 8 May 2007 08:17:12 +0000 (08:17 +0000)]
improve documentation for evaluate
Simon Marlow [Mon, 7 May 2007 12:35:37 +0000 (12:35 +0000)]
FIX: #724 (tee complains if used in a process started by ghc)
Now, we only set O_NONBLOCK on file descriptors that we create
ourselves. File descriptors that we inherit (stdin, stdout, stderr)
are kept in blocking mode. The way we deal with this differs between
the threaded and non-threaded runtimes:
- with -threaded, we just make a safe foreign call to read(), which
may block, but this is ok.
- without -threaded, we test the descriptor with select() before
attempting any I/O. This isn't completely safe - someone else
might read the data between the select() and the read() - but it's
a reasonable compromise and doesn't seem to measurably affect
performance.
Simon Marlow [Thu, 26 Apr 2007 13:59:31 +0000 (13:59 +0000)]
the "unknown" types are no longer required
Malcolm.Wallace@cs.york.ac.uk [Fri, 4 May 2007 10:55:48 +0000 (10:55 +0000)]
Make Control.Exception buildable by nhc98.
The nhc98 does not have true exceptions, but these additions should be
enough infrastructure to pretend that it does. Only IO exceptions will
actually work.
simonpj@microsoft [Thu, 3 May 2007 12:30:10 +0000 (12:30 +0000)]
Trim imports, remove a cycle
A first attempt at removing gratuitous cycles in the base package.
I've removed the useless module GHC.Dynamic, which gets rid of a cycle;
and trimmed off various unnecesary imports.
This also fixes the IsString import problem.
simonpj@microsoft [Thu, 3 May 2007 09:37:07 +0000 (09:37 +0000)]
Be less quiet about building the base package
simonpj@microsoft [Wed, 21 Feb 2007 10:43:29 +0000 (10:43 +0000)]
Remove Splittable class (a vestige of linear implicit parameters)
simonpj@microsoft [Wed, 21 Feb 2007 10:42:49 +0000 (10:42 +0000)]
Add IsString to exports of GHC.Exts
Simon Marlow [Thu, 26 Apr 2007 07:59:21 +0000 (07:59 +0000)]
tweak documentation as per suggestion from Marc Weber on libraries@haskell.org
Ian Lynagh [Tue, 24 Apr 2007 21:31:27 +0000 (21:31 +0000)]
Add extra libraries when compiling with GHC on Windows
Ian Lynagh [Wed, 18 Apr 2007 11:43:45 +0000 (11:43 +0000)]
Follow Cabal changes in Setup.hs
Malcolm.Wallace@cs.york.ac.uk [Tue, 17 Apr 2007 08:55:56 +0000 (08:55 +0000)]
inclusion of libc.h is conditional on __APPLE__
Simon Marlow [Mon, 16 Apr 2007 10:15:30 +0000 (10:15 +0000)]
MERGE: fix ugly uses of memcpy foreign import inside ST
fixes cg026
Ian Lynagh [Sun, 15 Apr 2007 16:51:43 +0000 (16:51 +0000)]
Fix configure with no --with-cc
Malcolm.Wallace@cs.york.ac.uk [Sat, 14 Apr 2007 15:55:07 +0000 (15:55 +0000)]
MacOS 10.3 needs #include <libc.h> as well
Malcolm.Wallace@cs.york.ac.uk [Fri, 13 Apr 2007 15:58:31 +0000 (15:58 +0000)]
For nhc98 only, use hsc2hs to determine System.Posix.Types.
Avoids the existing autoconf stuff, by introducing an auxiliary module
called NHC.PosixTypes that uses hsc2hs, which is then simply re-exported
from System.Posix.Types.
Simon Marlow [Fri, 13 Apr 2007 15:13:07 +0000 (15:13 +0000)]
we need a makefileHook too
Ian Lynagh [Thu, 12 Apr 2007 23:59:08 +0000 (23:59 +0000)]
Remove unnecesary SOURCE import of GHC.Err in GHC.Pack
Malcolm.Wallace@cs.york.ac.uk [Thu, 12 Apr 2007 19:50:26 +0000 (19:50 +0000)]
add System.Posix.Types to default nhc98 build
Malcolm.Wallace@cs.york.ac.uk [Thu, 12 Apr 2007 13:53:59 +0000 (13:53 +0000)]
mark System.IO.openTempFile as non-portable in haddocks
Ian Lynagh [Wed, 11 Apr 2007 15:57:21 +0000 (15:57 +0000)]
Don't turn on -Werror in Data.Fixed
This may be responsible for the x86_64/Linux nightly build failing.
Ian Lynagh [Wed, 11 Apr 2007 00:49:29 +0000 (00:49 +0000)]
Fix -Wall warnings
Ian Lynagh [Wed, 11 Apr 2007 00:25:37 +0000 (00:25 +0000)]
Add missing case in removePrefix
Ian Lynagh [Fri, 6 Apr 2007 15:18:56 +0000 (15:18 +0000)]
Allow additional options to pass on to ./configure to be given
Ross Paterson [Fri, 6 Apr 2007 11:37:31 +0000 (11:37 +0000)]
Hugs only: fix location of unsafeCoerce
Ross Paterson [Fri, 6 Apr 2007 11:13:04 +0000 (11:13 +0000)]
fix isPortableBuild test
Ian Lynagh [Thu, 5 Apr 2007 17:59:30 +0000 (17:59 +0000)]
Unsafe.Coerce doesn't need Prelude
Ian Lynagh [Thu, 8 Mar 2007 16:38:24 +0000 (16:38 +0000)]
make Setup and base.cabal suitable for building the libraries with GHC
Ian Lynagh [Wed, 4 Apr 2007 16:30:51 +0000 (16:30 +0000)]
HsByteArray doesn't exist
Ian Lynagh [Wed, 4 Apr 2007 15:58:22 +0000 (15:58 +0000)]
Don't use Fd/FD in foreign decls
Using CInt makes it much easier to verify that it is right, and we won't
get caught out by possible newtype switches between CInt/Int.
Ian Lynagh [Wed, 4 Apr 2007 15:57:32 +0000 (15:57 +0000)]
HsByteArray doesn't exist
Ian Lynagh [Wed, 4 Apr 2007 14:45:08 +0000 (14:45 +0000)]
Fix braino
Malcolm.Wallace@cs.york.ac.uk [Wed, 4 Apr 2007 12:09:54 +0000 (12:09 +0000)]
Fix incorrect changes to C types in a foreign import for nhc98.
If we use type CTime, it needs to be imported. Also, CTime is not an
instance of Integral, so use some other mechanism to convert it.
Ian Lynagh [Tue, 3 Apr 2007 19:49:43 +0000 (19:49 +0000)]
Fix C/Haskell type mismatches
Malcolm.Wallace@cs.york.ac.uk [Tue, 3 Apr 2007 13:13:33 +0000 (13:13 +0000)]
add new module Unsafe.Coerce to build system
Ian Lynagh [Tue, 3 Apr 2007 00:16:11 +0000 (00:16 +0000)]
Fix type mismatches between foreign imports and HsBase.h
Merge to stable, checking for interface changes.
Malcolm.Wallace@cs.york.ac.uk [Mon, 13 Nov 2006 11:41:03 +0000 (11:41 +0000)]
put 'unsafeCoerce' in a standard location
Malcolm.Wallace@cs.york.ac.uk [Mon, 2 Apr 2007 14:17:12 +0000 (14:17 +0000)]
fix for nhc98 build
Manuel M T Chakravarty [Mon, 2 Apr 2007 08:29:06 +0000 (08:29 +0000)]
Function crossMapP for fixing desugaring of comprehensions
Merge into 6.6 branch.
jeanphilippe.bernardy@gmail.com [Thu, 15 Mar 2007 07:23:52 +0000 (07:23 +0000)]
Add min/max handling operations for IntSet/IntMap
Jeffrey Yasskin [Fri, 9 Mar 2007 06:25:50 +0000 (06:25 +0000)]
Monoid instance for Maybe and two wrappers: First and Last. trac proposal #1189
Ian Lynagh [Thu, 29 Mar 2007 16:42:23 +0000 (16:42 +0000)]
Fix the type of wgencat
Simon Marlow [Tue, 27 Mar 2007 10:39:41 +0000 (10:39 +0000)]
fix strictness of foldr/build rule for take, see #1219
Malcolm.Wallace@cs.york.ac.uk [Tue, 20 Mar 2007 12:00:57 +0000 (12:00 +0000)]
remove Makefile.inc (only affects nhc98)
Ian Lynagh [Mon, 12 Mar 2007 11:35:55 +0000 (11:35 +0000)]
copyBytes copies bytes, not elements; fixes trac #1203
Ian Lynagh [Sun, 4 Mar 2007 13:03:15 +0000 (13:03 +0000)]
Add ioeGetLocation, ioeSetLocation to System/IO/Error.hs; trac #1191
Simon Marlow [Wed, 7 Mar 2007 13:43:30 +0000 (13:43 +0000)]
fix race condition in prodServiceThread
See #1187
Simon Marlow [Tue, 6 Mar 2007 14:54:24 +0000 (14:54 +0000)]
Prevent duplication of unsafePerformIO on a multiprocessor
Fixes #986. The idea is to add a new operation
noDuplicate :: IO ()
it is guaranteed that if two threads have executed noDuplicate, then
they are not duplicating any computation.
We now provide two new unsafe operations:
unsafeDupablePerformIO :: IO a -> a
unsafeDupableInterleaveIO :: IO a -> IO a
which are equivalent to the old unsafePerformIO and unsafeInterleaveIO
respectively. The new versions of these functions are defined as:
unsafePerformIO m = unsafeDupablePerformIO (noDuplicate >> m)
unsafeInterleaveIO m = unsafeDupableInterleaveIO (noDuplicate >> m)
Simon Marlow [Mon, 5 Mar 2007 16:09:21 +0000 (16:09 +0000)]
expand docs for forkOS
Peter Simons [Wed, 28 Feb 2007 22:35:40 +0000 (22:35 +0000)]
document timeout limitations
Peter Simons [Wed, 28 Feb 2007 22:34:15 +0000 (22:34 +0000)]
So many people were involved in the writing of this module that
it feels unfair to single anyone out as the lone copyright
holder.
Peter Simons [Fri, 26 Jan 2007 22:26:15 +0000 (22:26 +0000)]
This patch adds a timeout function to the base libraries. Trac #980 is
concerned with this issue. The design guideline for this implementation
is that 'timeout N E' should behave exactly the same as E as long as E
doesn't time out. In our implementation, this means that E has the same
myThreadId it would have without the timeout wrapper. Any exception E
might throw cancels the timeout and propagates further up. It also
possible for E to receive exceptions thrown to it by another thread.
Manuel M T Chakravarty [Mon, 5 Mar 2007 05:58:07 +0000 (05:58 +0000)]
PArr: fixed permutations
Ian Lynagh [Tue, 30 Jan 2007 13:48:41 +0000 (13:48 +0000)]
Add Data.String, containing IsString(fromString); trac proposal #1126
This is used by the overloaded strings extension (-foverloaded-strings in GHC).
Manuel M T Chakravarty [Fri, 2 Mar 2007 05:32:24 +0000 (05:32 +0000)]
GHC.PArr: add bounds checking
sven.panne@aedion.de [Thu, 1 Mar 2007 15:30:09 +0000 (15:30 +0000)]
Bump nhc98 stack size for System/Time.hsc
sven.panne@aedion.de [Sun, 25 Feb 2007 10:56:20 +0000 (10:56 +0000)]
FDs are CInts now, fixing non-GHC builds
Manuel M T Chakravarty [Thu, 22 Feb 2007 03:24:05 +0000 (03:24 +0000)]
Fixed PArr.dropP
- Thanks to Audrey Tang for the bug report
Ian Lynagh [Tue, 20 Feb 2007 14:10:39 +0000 (14:10 +0000)]
Keep the same FD in both halves of a duplex handle when dup'ing
Otherwise we only close one of the FDs when closing the handle.
Fixes trac #1149.
Ian Lynagh [Tue, 20 Feb 2007 09:25:20 +0000 (09:25 +0000)]
Remove more redundant FD conversions
Ian Lynagh [Tue, 20 Feb 2007 09:15:16 +0000 (09:15 +0000)]
Fix FD changes on Windows