ghc-hetmet.git
19 years ago[project @ 2004-11-20 16:02:41 by panne]
panne [Sat, 20 Nov 2004 16:02:44 +0000 (16:02 +0000)]
[project @ 2004-11-20 16:02:41 by panne]
Pushed -fomit-frame-pointer test down to ghc subdir + cleanup

19 years ago[project @ 2004-11-20 15:12:26 by panne]
panne [Sat, 20 Nov 2004 15:12:30 +0000 (15:12 +0000)]
[project @ 2004-11-20 15:12:26 by panne]
Pushed "ghc has readline" check down to ghc subdir

19 years ago[project @ 2004-11-19 18:00:29 by simonpj]
simonpj [Fri, 19 Nov 2004 18:00:29 +0000 (18:00 +0000)]
[project @ 2004-11-19 18:00:29 by simonpj]
Add missing symbol for InstallConsoleEvent

19 years ago[project @ 2004-11-19 17:24:48 by tharris]
tharris [Fri, 19 Nov 2004 17:24:49 +0000 (17:24 +0000)]
[project @ 2004-11-19 17:24:48 by tharris]
Fix build error during unregistered builds, remove warning building GCCompact

19 years ago[project @ 2004-11-18 16:39:53 by stolz]
stolz [Thu, 18 Nov 2004 16:39:54 +0000 (16:39 +0000)]
[project @ 2004-11-18 16:39:53 by stolz]
Push down more feature-tests

19 years ago[project @ 2004-11-18 09:56:07 by tharris]
tharris [Thu, 18 Nov 2004 09:57:01 +0000 (09:57 +0000)]
[project @ 2004-11-18 09:56:07 by tharris]
Support for atomic memory transactions and associated regression tests conc041-048

19 years ago[project @ 2004-11-18 00:56:18 by igloo]
igloo [Thu, 18 Nov 2004 00:56:25 +0000 (00:56 +0000)]
[project @ 2004-11-18 00:56:18 by igloo]
Implement FunDeps for TH.

19 years ago[project @ 2004-11-17 19:07:38 by sof]
sof [Wed, 17 Nov 2004 19:07:40 +0000 (19:07 +0000)]
[project @ 2004-11-17 19:07:38 by sof]
Expose Win32 console event handling to the user.

Added RTS support for registering and delivering console events quite
a while ago (rts/win32/ConsoleHandler.c), but got bored with it before
completing the job. Here's the concluding commit; it does the following:

- new module, base/GHC/ConsoleHandler.hs which supports registering of
  console event handlers (the null module on plats other than mingw).
- special handling of aborted async read()s on 'standard input' in
  rts/win32/IOManager.c (together with GHC.Conc.asyncRead). See comments
  in that IOManager.c as to why this is needed.
  [ Any other code that performs blocking I/O on 'standard input' will
    need to be tweaked too to be console event handler/signal friendly.]
- for now, disable the delivery of 'close' events (see
  rts/win32/ConsoleHandler.c:generic_handler() for reasons why)

Feel free to hoik GHC/ConsoleHandler.hs around the lib hierarchy to wherever
is considered more fitting. Unifying functionality between System.Posix.Signals
and GHC.ConsoleHandler is one (obvious) thing to do.

-- Demonstrating GHC.ConsoleHandler use; win32 only
module Main(main) where

import GHC.ConsoleHandler
import System.IO  (hFlush, stdout)
import GHC.Conc   (threadDelay)

main :: IO ()
main = do
  installHandler (Catch (\ _ -> putStrLn "Caught console event; ignoring" >> hFlush stdout))
  loop
 where
  loop = do
    threadDelay 100000
    ls <- getLine
    putStrLn ls
    loop
--

19 years ago[project @ 2004-11-17 18:31:08 by josefs]
josefs [Wed, 17 Nov 2004 18:31:08 +0000 (18:31 +0000)]
[project @ 2004-11-17 18:31:08 by josefs]
Needed to include a header file in Compat/Directory on windows

19 years ago[project @ 2004-11-16 10:00:10 by simonmar]
simonmar [Tue, 16 Nov 2004 10:00:10 +0000 (10:00 +0000)]
[project @ 2004-11-16 10:00:10 by simonmar]
Fix build with GHC 6.2.x

19 years ago[project @ 2004-11-16 09:50:13 by simonmar]
simonmar [Tue, 16 Nov 2004 09:50:13 +0000 (09:50 +0000)]
[project @ 2004-11-16 09:50:13 by simonmar]
Quick Start section: add disclaimer for Windows builders

19 years ago[project @ 2004-11-15 12:15:13 by simonmar]
simonmar [Mon, 15 Nov 2004 12:15:13 +0000 (12:15 +0000)]
[project @ 2004-11-15 12:15:13 by simonmar]
Need to add System to ALL_DIRS

19 years ago[project @ 2004-11-14 09:59:48 by krasimir]
krasimir [Sun, 14 Nov 2004 09:59:48 +0000 (09:59 +0000)]
[project @ 2004-11-14 09:59:48 by krasimir]
Use findExecutable from Compat.Directory instead of its own findBinary.
Now the tool works under Windows as well as under Linux.
With cygwin we can use #!runghc ...

19 years ago[project @ 2004-11-14 09:50:33 by krasimir]
krasimir [Sun, 14 Nov 2004 09:50:34 +0000 (09:50 +0000)]
[project @ 2004-11-14 09:50:33 by krasimir]
* Add stub for System.FilePath
* Add findExecutable & copyFile to Compat.Directory

19 years ago[project @ 2004-11-14 02:16:49 by wolfgang]
wolfgang [Sun, 14 Nov 2004 02:16:49 +0000 (02:16 +0000)]
[project @ 2004-11-14 02:16:49 by wolfgang]
Mac OS X: Track Cabal-related changes (extra_frameworks -> extraFrameworks)

19 years ago[project @ 2004-11-13 13:53:32 by panne]
panne [Sat, 13 Nov 2004 13:53:32 +0000 (13:53 +0000)]
[project @ 2004-11-13 13:53:32 by panne]
Fixed DocBook XML once again. Perhaps I should add a "make validate"
CVS hook, hmmm... >:-)

19 years ago[project @ 2004-11-12 15:57:00 by simonmar]
simonmar [Fri, 12 Nov 2004 15:57:00 +0000 (15:57 +0000)]
[project @ 2004-11-12 15:57:00 by simonmar]
we need -package Cabal for stage2

19 years ago[project @ 2004-11-12 15:51:37 by simonmar]
simonmar [Fri, 12 Nov 2004 15:51:37 +0000 (15:51 +0000)]
[project @ 2004-11-12 15:51:37 by simonmar]
Fix build

19 years ago[project @ 2004-11-12 15:17:42 by simonmar]
simonmar [Fri, 12 Nov 2004 15:17:42 +0000 (15:17 +0000)]
[project @ 2004-11-12 15:17:42 by simonmar]
Add Haskell 98 isAlpha divergence

19 years ago[project @ 2004-11-12 15:06:36 by simonmar]
simonmar [Fri, 12 Nov 2004 15:06:36 +0000 (15:06 +0000)]
[project @ 2004-11-12 15:06:36 by simonmar]
darwin-only fix

19 years ago[project @ 2004-11-12 14:56:10 by stolz]
stolz [Fri, 12 Nov 2004 14:56:13 +0000 (14:56 +0000)]
[project @ 2004-11-12 14:56:10 by stolz]
Fix previous commit:
Don't handle Solaris2-flag _POSIX_PTHREAD_SEMANTICS in configure at all
but simply #ifdef solaris2_TARGET_OS #define ... it in the header-file.

19 years ago[project @ 2004-11-12 14:09:39 by simonpj]
simonpj [Fri, 12 Nov 2004 14:09:39 +0000 (14:09 +0000)]
[project @ 2004-11-12 14:09:39 by simonpj]
Windows fix (include config.h)

19 years ago[project @ 2004-11-12 13:35:55 by simonpj]
simonpj [Fri, 12 Nov 2004 13:35:56 +0000 (13:35 +0000)]
[project @ 2004-11-12 13:35:55 by simonpj]
Update to new InstalledPackageInfo

19 years ago[project @ 2004-11-12 13:28:35 by simonpj]
simonpj [Fri, 12 Nov 2004 13:28:58 +0000 (13:28 +0000)]
[project @ 2004-11-12 13:28:35 by simonpj]
build fix for Windows

19 years ago[project @ 2004-11-12 13:27:54 by simonpj]
simonpj [Fri, 12 Nov 2004 13:27:54 +0000 (13:27 +0000)]
[project @ 2004-11-12 13:27:54 by simonpj]
add bits required for Compat.Directory on Windows

19 years ago[project @ 2004-11-12 12:34:50 by stolz]
stolz [Fri, 12 Nov 2004 12:34:52 +0000 (12:34 +0000)]
[project @ 2004-11-12 12:34:50 by stolz]
Push FreeBSD-unicode-detection into package

19 years ago[project @ 2004-11-12 12:12:52 by stolz]
stolz [Fri, 12 Nov 2004 12:12:53 +0000 (12:12 +0000)]
[project @ 2004-11-12 12:12:52 by stolz]
Push some unixisms from toplvl into package:
usleep, SunOS-handling, getpw*

19 years ago[project @ 2004-11-11 23:39:15 by sof]
sof [Thu, 11 Nov 2004 23:39:15 +0000 (23:39 +0000)]
[project @ 2004-11-11 23:39:15 by sof]
drop win32 protos, current windows.h's now provide 'em.

19 years ago[project @ 2004-11-11 17:25:59 by simonmar]
simonmar [Thu, 11 Nov 2004 17:25:59 +0000 (17:25 +0000)]
[project @ 2004-11-11 17:25:59 by simonmar]
Restore compatibility with GHC 6.2

19 years ago[project @ 2004-11-11 17:21:02 by simonmar]
simonmar [Thu, 11 Nov 2004 17:21:02 +0000 (17:21 +0000)]
[project @ 2004-11-11 17:21:02 by simonmar]
add missing file

19 years ago[project @ 2004-11-11 16:48:55 by simonmar]
simonmar [Thu, 11 Nov 2004 16:48:55 +0000 (16:48 +0000)]
[project @ 2004-11-11 16:48:55 by simonmar]
Update comment

19 years ago[project @ 2004-11-11 16:44:33 by simonpj]
simonpj [Thu, 11 Nov 2004 16:44:33 +0000 (16:44 +0000)]
[project @ 2004-11-11 16:44:33 by simonpj]
---------------------------------
     Buglet in the handling of unlifted bindings
---------------------------------

Unlifted bindings, like
let I# v = ... in ...
can't be generalised.  In teh transition to GADTs I introduced a bug
that accidentally discarded some necessary dictionary bindings.

This commit fixes it by moving the test for unlifted bindings to a
much earlier point in tcBindWithSigs, which seems a lot cleaner to me.

19 years ago[project @ 2004-11-11 16:24:41 by simonmar]
simonmar [Thu, 11 Nov 2004 16:24:41 +0000 (16:24 +0000)]
[project @ 2004-11-11 16:24:41 by simonmar]
'make depend' fix

19 years ago[project @ 2004-11-11 16:07:40 by simonmar]
simonmar [Thu, 11 Nov 2004 16:07:49 +0000 (16:07 +0000)]
[project @ 2004-11-11 16:07:40 by simonmar]
Compiler changes for the new package.conf format.

19 years ago[project @ 2004-11-11 16:07:14 by simonmar]
simonmar [Thu, 11 Nov 2004 16:07:15 +0000 (16:07 +0000)]
[project @ 2004-11-11 16:07:14 by simonmar]
The new ghc-pkg tool.

So far, the new syntax is supported, and the format of the package
definitions has changed to InstalledPackageInfo rather than the old
PackageConfig type.  The format of the package.conf file is now
[InstalledPackageInfo] (using show/read).

We still support the old ghc-pkg command line syntax, and the old
PackageConfig syntax for package definitions.  These are deprecated
features, of course.

Not much is done with the list of exposed/hidden modules, or versions
(yet).

19 years ago[project @ 2004-11-11 16:03:51 by simonmar]
simonmar [Thu, 11 Nov 2004 16:03:51 +0000 (16:03 +0000)]
[project @ 2004-11-11 16:03:51 by simonmar]
Add a more prominent description of what this library is all about.

19 years ago[project @ 2004-11-11 13:08:59 by simonmar]
simonmar [Thu, 11 Nov 2004 13:08:59 +0000 (13:08 +0000)]
[project @ 2004-11-11 13:08:59 by simonmar]
Compile fixes

19 years ago[project @ 2004-11-11 09:46:54 by simonmar]
simonmar [Thu, 11 Nov 2004 09:46:57 +0000 (09:46 +0000)]
[project @ 2004-11-11 09:46:54 by simonmar]
Get rawSystem from Compat.RawSystem in libghccompat.

19 years ago[project @ 2004-11-11 09:38:22 by simonmar]
simonmar [Thu, 11 Nov 2004 09:38:22 +0000 (09:38 +0000)]
[project @ 2004-11-11 09:38:22 by simonmar]
- include cbits dir
- omit certain libraries when ghc > 6.2
- build this library at boot-time, because it will be needed by ghc-pkg

19 years ago[project @ 2004-11-11 09:36:55 by simonmar]
simonmar [Thu, 11 Nov 2004 09:36:55 +0000 (09:36 +0000)]
[project @ 2004-11-11 09:36:55 by simonmar]
include lib/ in the build

19 years ago[project @ 2004-11-11 09:36:40 by simonmar]
simonmar [Thu, 11 Nov 2004 09:36:40 +0000 (09:36 +0000)]
[project @ 2004-11-11 09:36:40 by simonmar]
Add directories for ghc/lib & ghc/lib/compat

19 years ago[project @ 2004-11-11 08:58:23 by simonpj]
simonpj [Thu, 11 Nov 2004 08:58:23 +0000 (08:58 +0000)]
[project @ 2004-11-11 08:58:23 by simonpj]
Wibble

19 years ago[project @ 2004-11-10 13:24:06 by simonmar]
simonmar [Wed, 10 Nov 2004 13:24:06 +0000 (13:24 +0000)]
[project @ 2004-11-10 13:24:06 by simonmar]
Use rawSystem from libghccompat.a

19 years ago[project @ 2004-11-10 11:27:54 by simonmar]
simonmar [Wed, 10 Nov 2004 11:27:54 +0000 (11:27 +0000)]
[project @ 2004-11-10 11:27:54 by simonmar]
Move the compatibility code for rawSystem from libraries/base into
ghc/lib/compat.

19 years ago[project @ 2004-11-10 04:17:50 by wolfgang]
wolfgang [Wed, 10 Nov 2004 04:17:59 +0000 (04:17 +0000)]
[project @ 2004-11-10 04:17:50 by wolfgang]
64-bit fix:
Change the type of context_switch from 'nat' to 'int'.
It's accessed as CInt from cmm code, and sizeof(nat) > sizeof(int)
on many 64-bit platforms.

19 years ago[project @ 2004-11-10 03:28:15 by wolfgang]
wolfgang [Wed, 10 Nov 2004 03:28:15 +0000 (03:28 +0000)]
[project @ 2004-11-10 03:28:15 by wolfgang]
Add support for powerpc64-linux and probably powerpc64-AIX.

19 years ago[project @ 2004-11-10 03:27:04 by wolfgang]
wolfgang [Wed, 10 Nov 2004 03:27:04 +0000 (03:27 +0000)]
[project @ 2004-11-10 03:27:04 by wolfgang]
Add powerpc64-unknown-linux

19 years ago[project @ 2004-11-10 03:20:31 by wolfgang]
wolfgang [Wed, 10 Nov 2004 03:20:32 +0000 (03:20 +0000)]
[project @ 2004-11-10 03:20:31 by wolfgang]
Implement the mblock map for 64-bit architectures.
Fairly primitive data structure, but one 4GB-block, described by a
12-bit block map, is cached for speed.

Note that I've nuked the ia64-specific version (I think ia64 wants to
use the general 64-bit solution, too).

19 years ago[project @ 2004-11-10 02:13:12 by wolfgang]
wolfgang [Wed, 10 Nov 2004 02:13:16 +0000 (02:13 +0000)]
[project @ 2004-11-10 02:13:12 by wolfgang]
64-bit fixes.

Don't assume that sizeof(int) == sizeof(StgInt).
This assumption creeped in in many places since 6.2.

19 years ago[project @ 2004-11-10 01:58:32 by wolfgang]
wolfgang [Wed, 10 Nov 2004 01:58:32 +0000 (01:58 +0000)]
[project @ 2004-11-10 01:58:32 by wolfgang]
64-bit fix:
when loading the "era" global variable, convert it from cIntRep to
wordRep after loading (this is a no-op on all 32-bit platforms).

19 years ago[project @ 2004-11-10 01:56:00 by wolfgang]
wolfgang [Wed, 10 Nov 2004 01:56:01 +0000 (01:56 +0000)]
[project @ 2004-11-10 01:56:00 by wolfgang]
Fix pretty-printing of integer constants on 64-bit platforms.
If sizeof(int) == 4 on a 64-bit platform, we have to add an 'L' suffix
to integer constants.

19 years ago[project @ 2004-11-09 18:04:15 by sof]
sof [Tue, 9 Nov 2004 18:04:17 +0000 (18:04 +0000)]
[project @ 2004-11-09 18:04:15 by sof]
threadDelay(mingw32): introduce and use the return continuation
stg_block_async_void; fixes mem leak, cf.

  http://haskell.org/pipermail/cvs-ghc/2004-November/022325.html

19 years ago[project @ 2004-11-09 17:38:01 by simonpj]
simonpj [Tue, 9 Nov 2004 17:38:01 +0000 (17:38 +0000)]
[project @ 2004-11-09 17:38:01 by simonpj]
Remember to zonk the quantified type variables of a for-all type before forming the type

19 years ago[project @ 2004-11-09 17:21:58 by simonmar]
simonmar [Tue, 9 Nov 2004 17:22:01 +0000 (17:22 +0000)]
[project @ 2004-11-09 17:21:58 by simonmar]
Add a compatibility library, which will mean that we can make use of
brand new libraries directly in GHC and the tools even when compiling
with older versions of GHC.  The library just consists of stubs that
#include code from fptools/libraries.

This isn't wired up to the build yet.

19 years ago[project @ 2004-11-09 17:04:29 by sof]
sof [Tue, 9 Nov 2004 17:04:29 +0000 (17:04 +0000)]
[project @ 2004-11-09 17:04:29 by sof]
wibble

19 years ago[project @ 2004-11-09 16:59:31 by simonmar]
simonmar [Tue, 9 Nov 2004 16:59:31 +0000 (16:59 +0000)]
[project @ 2004-11-09 16:59:31 by simonmar]
getOptionsFromSource: fix a bug which caused a file containing just an
OPTIONS pragma to have the pragma ignored.

19 years ago[project @ 2004-11-09 13:28:13 by simonpj]
simonpj [Tue, 9 Nov 2004 13:28:13 +0000 (13:28 +0000)]
[project @ 2004-11-09 13:28:13 by simonpj]
Fix a bug in fixity handling for tycons; we were rembering the data-con RdrName, not the tycon one

19 years ago[project @ 2004-11-09 13:27:05 by simonpj]
simonpj [Tue, 9 Nov 2004 13:27:05 +0000 (13:27 +0000)]
[project @ 2004-11-09 13:27:05 by simonpj]
Refine warning slightly

19 years ago[project @ 2004-11-09 12:45:41 by simonpj]
simonpj [Tue, 9 Nov 2004 12:45:41 +0000 (12:45 +0000)]
[project @ 2004-11-09 12:45:41 by simonpj]
Check for illformed arg type e.g. IO (Num a => a)

19 years ago[project @ 2004-11-09 12:45:04 by simonpj]
simonpj [Tue, 9 Nov 2004 12:45:08 +0000 (12:45 +0000)]
[project @ 2004-11-09 12:45:04 by simonpj]
Permit records with an existential context that binds no tyvars

19 years ago[project @ 2004-11-09 12:41:18 by simonpj]
simonpj [Tue, 9 Nov 2004 12:41:18 +0000 (12:41 +0000)]
[project @ 2004-11-09 12:41:18 by simonpj]
Improve pretty-printing for types

19 years ago[project @ 2004-11-09 10:42:47 by simonmar]
simonmar [Tue, 9 Nov 2004 10:42:47 +0000 (10:42 +0000)]
[project @ 2004-11-09 10:42:47 by simonmar]
duh, undo previous accidental commit

19 years ago[project @ 2004-11-08 12:26:52 by simonmar]
simonmar [Mon, 8 Nov 2004 12:26:58 +0000 (12:26 +0000)]
[project @ 2004-11-08 12:26:52 by simonmar]
Get rid of SUPPORTS_EMPTY_STRUCTS, and just avoid using empty struct
definitions.

19 years ago[project @ 2004-11-07 10:17:20 by ross]
ross [Sun, 7 Nov 2004 10:17:22 +0000 (10:17 +0000)]
[project @ 2004-11-07 10:17:20 by ross]
move CONST_O_BINARY detection down to libraries/base

19 years ago[project @ 2004-11-06 11:10:17 by panne]
panne [Sat, 6 Nov 2004 11:10:18 +0000 (11:10 +0000)]
[project @ 2004-11-06 11:10:17 by panne]
Moved test for C/ISO types to base package, hopefully testing for all
needed headers first.

19 years ago[project @ 2004-11-06 10:45:46 by panne]
panne [Sat, 6 Nov 2004 10:45:47 +0000 (10:45 +0000)]
[project @ 2004-11-06 10:45:46 by panne]
Push down the tests for errno values to the base package. There's really
no need testing for this when e.g. building Happy. :-)

19 years ago[project @ 2004-11-04 19:10:50 by panne]
panne [Thu, 4 Nov 2004 19:10:50 +0000 (19:10 +0000)]
[project @ 2004-11-04 19:10:50 by panne]
Removed auto-autoreconf stuff, it doesn't really work with our
recursive autoconf setup.

19 years ago[project @ 2004-11-03 12:31:42 by ross]
ross [Wed, 3 Nov 2004 12:31:42 +0000 (12:31 +0000)]
[project @ 2004-11-03 12:31:42 by ross]
standalone packages: eliminate the extraneous final comma on PACKAGE_DEPS

19 years ago[project @ 2004-11-03 01:10:53 by igloo]
igloo [Wed, 3 Nov 2004 01:10:59 +0000 (01:10 +0000)]
[project @ 2004-11-03 01:10:53 by igloo]
Implement TH ForallC constructor.

19 years ago[project @ 2004-10-27 15:06:22 by wolfgang]
wolfgang [Wed, 27 Oct 2004 15:06:22 +0000 (15:06 +0000)]
[project @ 2004-10-27 15:06:22 by wolfgang]
Mac OS X: Explicitly align symbol stub sections in Mach-O files; Apple's as
doesn't seem to do that in all cases.

19 years ago[project @ 2004-10-26 17:48:39 by ross]
ross [Tue, 26 Oct 2004 17:48:39 +0000 (17:48 +0000)]
[project @ 2004-10-26 17:48:39 by ross]
bind acosDouble to acos(), rather than asin()

19 years ago[project @ 2004-10-25 09:23:08 by simonmar]
simonmar [Mon, 25 Oct 2004 09:23:08 +0000 (09:23 +0000)]
[project @ 2004-10-25 09:23:08 by simonmar]
Minor changes for VS/Haskell

19 years ago[project @ 2004-10-24 11:35:49 by panne]
panne [Sun, 24 Oct 2004 11:35:49 +0000 (11:35 +0000)]
[project @ 2004-10-24 11:35:49 by panne]
Updated the DocBook story

19 years ago[project @ 2004-10-23 19:15:45 by panne]
panne [Sat, 23 Oct 2004 19:15:45 +0000 (19:15 +0000)]
[project @ 2004-10-23 19:15:45 by panne]
Workaround for some hhc problems

19 years ago[project @ 2004-10-23 11:58:18 by panne]
panne [Sat, 23 Oct 2004 11:58:18 +0000 (11:58 +0000)]
[project @ 2004-10-23 11:58:18 by panne]
Added build dependency on mesaglut-devel (provided by freeglut-devel, too).

19 years ago[project @ 2004-10-20 14:25:34 by simonmar]
simonmar [Wed, 20 Oct 2004 14:25:34 +0000 (14:25 +0000)]
[project @ 2004-10-20 14:25:34 by simonmar]
compile: temporarily add the directory containing the .hs file to the
include path.  This matches what compiling in one-shot mode does, and
fixes a bug whereby the _stub.h file couldn't be found when compiling
with --make.

19 years ago[project @ 2004-10-20 13:34:04 by simonpj]
simonpj [Wed, 20 Oct 2004 13:34:27 +0000 (13:34 +0000)]
[project @ 2004-10-20 13:34:04 by simonpj]
---------------------------------
Fix a bug in usage recording
---------------------------------

As a result of the new stuff on hi-boot-file consistency checking, I
accidentally caused Foo.hi to record a usage line for module Foo, and
this in turn caused rather nasty bad things to happen.  In particular,
there were occasional crashes of form

ghc-6.3: panic! (the `impossible' happened, GHC version 6.3.20041017):
        forkM Constructor Var.TcTyVar{d r1B9}

At least I think that's why the crash happened.

Anyway, it was certainly a bug, and this commit fixes it.  The main
payload of this fix is in Desugar.lhs;  the rest is comments and
tidying.

19 years ago[project @ 2004-10-20 11:16:08 by simonmar]
simonmar [Wed, 20 Oct 2004 11:16:08 +0000 (11:16 +0000)]
[project @ 2004-10-20 11:16:08 by simonmar]
Fix braino in pprAsmCLbl

19 years ago[project @ 2004-10-19 08:52:33 by simonmar]
simonmar [Tue, 19 Oct 2004 08:52:33 +0000 (08:52 +0000)]
[project @ 2004-10-19 08:52:33 by simonmar]
GhcWithNativeCodeGen=NO for Sparc, until the old Sparc native codegen
is updated (not likely to happen soon).

19 years ago[project @ 2004-10-18 18:27:36 by igloo]
igloo [Mon, 18 Oct 2004 18:27:36 +0000 (18:27 +0000)]
[project @ 2004-10-18 18:27:36 by igloo]
Remove -static flags for alpha and hppa.
Turns out mips(el) on Linux is more complicated than first appeared, so
leaving it be for now.

19 years ago[project @ 2004-10-18 18:24:59 by igloo]
igloo [Mon, 18 Oct 2004 18:25:06 +0000 (18:25 +0000)]
[project @ 2004-10-18 18:24:59 by igloo]
Implement -fwarn-incomplete-record-updates

19 years ago[project @ 2004-10-18 15:38:27 by simonmar]
simonmar [Mon, 18 Oct 2004 15:38:27 +0000 (15:38 +0000)]
[project @ 2004-10-18 15:38:27 by simonmar]
Fix a source location bug (by deleting a line of code!)

19 years ago[project @ 2004-10-18 12:40:37 by desrt]
desrt [Mon, 18 Oct 2004 12:40:37 +0000 (12:40 +0000)]
[project @ 2004-10-18 12:40:37 by desrt]
the splitter now supports linux/powerpc

19 years ago[project @ 2004-10-18 11:51:22 by simonmar]
simonmar [Mon, 18 Oct 2004 11:51:22 +0000 (11:51 +0000)]
[project @ 2004-10-18 11:51:22 by simonmar]
Put the '@' suffix on stdcall ForeignLabels on Windows only.

19 years ago[project @ 2004-10-18 11:46:46 by simonmar]
simonmar [Mon, 18 Oct 2004 11:46:46 +0000 (11:46 +0000)]
[project @ 2004-10-18 11:46:46 by simonmar]
ccallConvAttribute: use __attribute__((__stdcall__)) rather than
__stdcall (the latter is Win32-specific).

19 years ago[project @ 2004-10-18 11:38:41 by simonmar]
simonmar [Mon, 18 Oct 2004 11:38:41 +0000 (11:38 +0000)]
[project @ 2004-10-18 11:38:41 by simonmar]
Make foreign import stdcall "dynamic" work via-C (we'd forgotten to
add the __stdcall qualifier to the type cast for the function).

19 years ago[project @ 2004-10-18 08:54:06 by simonmar]
simonmar [Mon, 18 Oct 2004 08:54:06 +0000 (08:54 +0000)]
[project @ 2004-10-18 08:54:06 by simonmar]
Here's the 6.2.2 announcement

19 years ago[project @ 2004-10-18 02:16:34 by desrt]
desrt [Mon, 18 Oct 2004 02:16:34 +0000 (02:16 +0000)]
[project @ 2004-10-18 02:16:34 by desrt]
trivial changes to correct a build-breaker that only affects linux/powerpc

19 years ago[project @ 2004-10-15 15:28:48 by simonmar]
simonmar [Fri, 15 Oct 2004 15:29:00 +0000 (15:29 +0000)]
[project @ 2004-10-15 15:28:48 by simonmar]
Add a SrcSpan to the DataCon in a ConPatOut.

19 years ago[project @ 2004-10-15 07:48:29 by simonmar]
simonmar [Fri, 15 Oct 2004 07:48:29 +0000 (07:48 +0000)]
[project @ 2004-10-15 07:48:29 by simonmar]
Declare rtsSupportsBoundThreads() here.

This change should have gone through with the threaded RTS I/O changes
yesterday.

19 years ago[project @ 2004-10-14 14:58:37 by simonmar]
simonmar [Thu, 14 Oct 2004 14:58:51 +0000 (14:58 +0000)]
[project @ 2004-10-14 14:58:37 by simonmar]
Threaded RTS improvements:

 - Unix only: implement waitRead#, waitWrite# and delay# in Haskell,
   by having a single Haskell thread (the IO manager) performing a blocking
   select() operation.  Threads communicate with the IO manager
   via channels.  This is faster than doing the select() in the RTS,
   because we only restart the select() when a new request arrives,
   rather than each time around the scheduler.

   On Windows we just make blocking IO calls, we don't have a fancy IO
   manager (yet).

 - Simplify the scheduler for the threaded RTS, now that we don't have
   to wait for IO in the scheduler loop.

 - Remove detectBlackHoles(), which isn't used now (not sure how long
   this has been unused for... perhaps it was needed back when main threads
   used to be GC roots, so we had to check for blackholes manually rather
   than relying on the GC.)

Signals aren't quite right in the threaded RTS.  In fact, they're
slightly worse than before, because the thread receiving signals might
be blocked in a C call - previously there always be another thread
stuck in awaitEvent() that would notice the signal, but that's not
true now.  I can't see an easy fix yet.

19 years ago[project @ 2004-10-13 08:48:47 by simonmar]
simonmar [Wed, 13 Oct 2004 08:48:47 +0000 (08:48 +0000)]
[project @ 2004-10-13 08:48:47 by simonmar]
Undo part of previous commit, a little testing code sneaked in and
broke all the GHCi tests.

19 years ago[project @ 2004-10-12 16:33:00 by sof]
sof [Tue, 12 Oct 2004 16:33:01 +0000 (16:33 +0000)]
[project @ 2004-10-12 16:33:00 by sof]
Had enough of 'make boot' completely rebuilding gmp/ each time around.

19 years ago[project @ 2004-10-11 16:16:20 by simonpj]
simonpj [Mon, 11 Oct 2004 16:16:23 +0000 (16:16 +0000)]
[project @ 2004-10-11 16:16:20 by simonpj]
---------------------------------
Add lists to valid derivable methods
---------------------------------

(It'd be nice to merge this into the stable
branch. It is an increase in functionality, but
it's quite separate from everything else.)

Lists are useful in derivable type classes.  E.g. methods like

class Shrinkable a where
  op :: a -> [a]

This commit adds them, to join functions and tuples.

19 years ago[project @ 2004-10-11 16:13:31 by simonpj]
simonpj [Mon, 11 Oct 2004 16:13:31 +0000 (16:13 +0000)]
[project @ 2004-10-11 16:13:31 by simonpj]
Remove dead code tcSplitMethodTy

19 years ago[project @ 2004-10-11 16:12:58 by simonpj]
simonpj [Mon, 11 Oct 2004 16:12:58 +0000 (16:12 +0000)]
[project @ 2004-10-11 16:12:58 by simonpj]
---------------------------------
Fix bug in derivable type classes
---------------------------------

MERGE TO STABLE (if poss)

The test for not-supported method types for derivable type classes
was broken. This fixes it.

19 years ago[project @ 2004-10-11 14:44:36 by simonmar]
simonmar [Mon, 11 Oct 2004 14:44:38 +0000 (14:44 +0000)]
[project @ 2004-10-11 14:44:36 by simonmar]
Fixes to readline detection and use.
VS: ----------------------------------------------------------------------

19 years ago[project @ 2004-10-11 14:25:44 by simonmar]
simonmar [Mon, 11 Oct 2004 14:25:46 +0000 (14:25 +0000)]
[project @ 2004-10-11 14:25:44 by simonmar]
Detect whether $(GHC) supports the readline package.

19 years ago[project @ 2004-10-11 12:45:51 by simonpj]
simonpj [Mon, 11 Oct 2004 12:45:51 +0000 (12:45 +0000)]
[project @ 2004-10-11 12:45:51 by simonpj]
Improve error message

19 years ago[project @ 2004-10-11 12:44:23 by simonpj]
simonpj [Mon, 11 Oct 2004 12:44:23 +0000 (12:44 +0000)]
[project @ 2004-10-11 12:44:23 by simonpj]
Fix typo; fixes simpl007