ghc-hetmet.git
21 years ago[project @ 2002-10-12 23:12:08 by wolfgang]
wolfgang [Sat, 12 Oct 2002 23:12:12 +0000 (23:12 +0000)]
[project @ 2002-10-12 23:12:08 by wolfgang]
Make the Mac OS X build use the HaskellSupport.framework (a MacOS-style "framework" that includes the required libraries libgmp and dlcompat) if it is present. The HaskellSupport.framework is not yet in CVS, but is available from me.

21 years ago[project @ 2002-10-12 18:16:11 by erkok]
erkok [Sat, 12 Oct 2002 18:16:11 +0000 (18:16 +0000)]
[project @ 2002-10-12 18:16:11 by erkok]
mdo wibbles

21 years ago[project @ 2002-10-11 16:56:09 by simonpj]
simonpj [Fri, 11 Oct 2002 16:56:09 +0000 (16:56 +0000)]
[project @ 2002-10-11 16:56:09 by simonpj]
Document infix type constructors

21 years ago[project @ 2002-10-11 16:49:56 by simonpj]
simonpj [Fri, 11 Oct 2002 16:49:56 +0000 (16:49 +0000)]
[project @ 2002-10-11 16:49:56 by simonpj]
title wibble

21 years ago[project @ 2002-10-11 16:45:16 by simonpj]
simonpj [Fri, 11 Oct 2002 16:45:20 +0000 (16:45 +0000)]
[project @ 2002-10-11 16:45:16 by simonpj]
More reification wibbling; and -ddump-splices

21 years ago[project @ 2002-10-11 16:42:44 by simonpj]
simonpj [Fri, 11 Oct 2002 16:42:44 +0000 (16:42 +0000)]
[project @ 2002-10-11 16:42:44 by simonpj]
Docs for Template Haskell

21 years ago[project @ 2002-10-11 15:45:05 by simonpj]
simonpj [Fri, 11 Oct 2002 15:45:05 +0000 (15:45 +0000)]
[project @ 2002-10-11 15:45:05 by simonpj]
Wibble

21 years ago[project @ 2002-10-11 14:46:02 by simonpj]
simonpj [Fri, 11 Oct 2002 14:46:09 +0000 (14:46 +0000)]
[project @ 2002-10-11 14:46:02 by simonpj]
------------------------------------------
Implement reification for Template Haskell
------------------------------------------

This is entirely un-tested, but I don't think it'll break non-TH stuff.

Implements
reifyDecl T :: Dec -- Data type T
reifyDecl C :: Dec -- Class C
reifyType f :: Typ -- Function f

I hope.

21 years ago[project @ 2002-10-11 14:25:24 by stolz]
stolz [Fri, 11 Oct 2002 14:25:25 +0000 (14:25 +0000)]
[project @ 2002-10-11 14:25:24 by stolz]
'usleep' nightmare: Sometimes return type is void, sometimes int.

21 years ago[project @ 2002-10-11 08:48:13 by simonpj]
simonpj [Fri, 11 Oct 2002 08:48:13 +0000 (08:48 +0000)]
[project @ 2002-10-11 08:48:13 by simonpj]
wibbles

21 years ago[project @ 2002-10-11 08:47:12 by simonpj]
simonpj [Fri, 11 Oct 2002 08:47:13 +0000 (08:47 +0000)]
[project @ 2002-10-11 08:47:12 by simonpj]
Fix mdo so that it works with polymorphic functions

21 years ago[project @ 2002-10-11 08:46:26 by simonpj]
simonpj [Fri, 11 Oct 2002 08:46:26 +0000 (08:46 +0000)]
[project @ 2002-10-11 08:46:26 by simonpj]
Remove usage-analysis guff in applyTys

21 years ago[project @ 2002-10-11 08:45:43 by simonpj]
simonpj [Fri, 11 Oct 2002 08:45:44 +0000 (08:45 +0000)]
[project @ 2002-10-11 08:45:43 by simonpj]
Compatibility fixes for Exception.try

21 years ago[project @ 2002-10-11 08:04:55 by simonpj]
simonpj [Fri, 11 Oct 2002 08:04:55 +0000 (08:04 +0000)]
[project @ 2002-10-11 08:04:55 by simonpj]
Add an example about -osuf etc

21 years ago[project @ 2002-10-11 08:04:29 by simonpj]
simonpj [Fri, 11 Oct 2002 08:04:29 +0000 (08:04 +0000)]
[project @ 2002-10-11 08:04:29 by simonpj]
Add a note about existential data constructors

21 years ago[project @ 2002-10-11 07:22:05 by simonpj]
simonpj [Fri, 11 Oct 2002 07:22:05 +0000 (07:22 +0000)]
[project @ 2002-10-11 07:22:05 by simonpj]
Fix two separate egregious errors in RdrHsSyn, which I
heavily modified when re-doing the top level plumbing.

One had the effect of throwing away fixity decls if there
was also a class decl

The other threw away all but the first and last equation of
a function definition.

Sorry about having so utterly broken the head, guys.

21 years ago[project @ 2002-10-10 15:14:37 by sof]
sof [Thu, 10 Oct 2002 15:14:37 +0000 (15:14 +0000)]
[project @ 2002-10-10 15:14:37 by sof]
rules: permit trailing semi-colon(s) again (inserted by the lexer & needed when compiling Base.lhs)

21 years ago[project @ 2002-10-10 14:35:55 by sof]
sof [Thu, 10 Oct 2002 14:35:55 +0000 (14:35 +0000)]
[project @ 2002-10-10 14:35:55 by sof]
make it compile with 4.08 (module author may very reasonably want to abstract away the ifdef this commit intros.)

21 years ago[project @ 2002-10-10 14:20:54 by sof]
sof [Thu, 10 Oct 2002 14:20:54 +0000 (14:20 +0000)]
[project @ 2002-10-10 14:20:54 by sof]
make it compile in non-DEBUG mode

21 years ago[project @ 2002-10-10 13:58:18 by sof]
sof [Thu, 10 Oct 2002 13:58:18 +0000 (13:58 +0000)]
[project @ 2002-10-10 13:58:18 by sof]
partial undo of prev commit (AC_CHECK_HEADERS([foo],..) isn't equal to AC_CHECK_HEADER([foo],..). Fixes HEAD breakage (cf. _SC_CLK_TCK undefinedness)

21 years ago[project @ 2002-10-09 16:53:10 by simonpj]
simonpj [Wed, 9 Oct 2002 16:53:13 +0000 (16:53 +0000)]
[project @ 2002-10-09 16:53:10 by simonpj]
Fix to mdo, plus SrcLocs on splices and brackets

21 years ago[project @ 2002-10-09 16:35:56 by simonpj]
simonpj [Wed, 9 Oct 2002 16:35:56 +0000 (16:35 +0000)]
[project @ 2002-10-09 16:35:56 by simonpj]
Import Exception.Try via HsVersions

21 years ago[project @ 2002-10-09 16:28:56 by simonpj]
simonpj [Wed, 9 Oct 2002 16:28:57 +0000 (16:28 +0000)]
[project @ 2002-10-09 16:28:56 by simonpj]
Fix and simplify renamer warnings about export lists

21 years ago[project @ 2002-10-09 15:51:43 by simonpj]
simonpj [Wed, 9 Oct 2002 15:51:43 +0000 (15:51 +0000)]
[project @ 2002-10-09 15:51:43 by simonpj]
Dont try to splice if compiler isnt bootstrapped

21 years ago[project @ 2002-10-09 15:37:57 by simonpj]
simonpj [Wed, 9 Oct 2002 15:37:57 +0000 (15:37 +0000)]
[project @ 2002-10-09 15:37:57 by simonpj]
Missing eqn in getMonoBind

21 years ago[project @ 2002-10-09 15:36:47 by simonpj]
simonpj [Wed, 9 Oct 2002 15:36:48 +0000 (15:36 +0000)]
[project @ 2002-10-09 15:36:47 by simonpj]
Remove circular dependencies

21 years ago[project @ 2002-10-09 15:16:53 by simonpj]
simonpj [Wed, 9 Oct 2002 15:16:53 +0000 (15:16 +0000)]
[project @ 2002-10-09 15:16:53 by simonpj]
Dont complain about unused things bound by deriving clause

21 years ago[project @ 2002-10-09 15:15:59 by simonpj]
simonpj [Wed, 9 Oct 2002 15:15:59 +0000 (15:15 +0000)]
[project @ 2002-10-09 15:15:59 by simonpj]
Bale out if duplicate binders

21 years ago[project @ 2002-10-09 15:05:05 by simonpj]
simonpj [Wed, 9 Oct 2002 15:05:05 +0000 (15:05 +0000)]
[project @ 2002-10-09 15:05:05 by simonpj]
---------------------
PS: remove ParseUtils
---------------------

I've combined ParseUtils into RdrHsSyn.  I could never
figure out which thing was defined in which module, and
they were both short.

21 years ago[project @ 2002-10-09 15:03:48 by simonpj]
simonpj [Wed, 9 Oct 2002 15:04:01 +0000 (15:04 +0000)]
[project @ 2002-10-09 15:03:48 by simonpj]
-----------------------------------
Lots more Template Haskell stuff
-----------------------------------

At last!  Top-level declaration splices work!
Syntax is

$(f x)

not "splice (f x)" as in the paper.

Lots jiggling around, particularly with the top-level plumbining.
Note the new data type HsDecls.HsGroup.

21 years ago[project @ 2002-10-08 08:03:01 by wolfgang]
wolfgang [Tue, 8 Oct 2002 08:03:02 +0000 (08:03 +0000)]
[project @ 2002-10-08 08:03:01 by wolfgang]
Make the new Posix bindings compile on Mac OS X.
Most notable, Mac OS X lacks
*) lchown
*) SIGPOLL
I don't know of a replacement of either, so they are just left out when
they are not detected by configure.

21 years ago[project @ 2002-10-06 12:45:41 by wolfgang]
wolfgang [Sun, 6 Oct 2002 12:45:41 +0000 (12:45 +0000)]
[project @ 2002-10-06 12:45:41 by wolfgang]
Make it compile for Mac OS X again.

21 years ago[project @ 2002-10-05 23:54:53 by panne]
panne [Sat, 5 Oct 2002 23:54:54 +0000 (23:54 +0000)]
[project @ 2002-10-05 23:54:53 by panne]
The never-ending docbook tragedy: Adapt the catalogs once more... >:-P
NOTE: I don't really have a clue what I'm doing here, but at least it
works with the current SuSE Linux distribution 8.1.

21 years ago[project @ 2002-10-05 22:31:04 by panne]
panne [Sat, 5 Oct 2002 22:31:04 +0000 (22:31 +0000)]
[project @ 2002-10-05 22:31:04 by panne]
Warning police #13: Sync fprintf format strings with args in an
architecture-neutral way.

21 years ago[project @ 2002-10-05 22:18:45 by panne]
panne [Sat, 5 Oct 2002 22:18:46 +0000 (22:18 +0000)]
[project @ 2002-10-05 22:18:45 by panne]
Warning police #12: Multi-line string literals are uncool.

21 years ago[project @ 2002-10-02 09:36:00 by wolfgang]
wolfgang [Wed, 2 Oct 2002 09:36:00 +0000 (09:36 +0000)]
[project @ 2002-10-02 09:36:00 by wolfgang]
PowerPC Mach-O:
Handle more kinds of relocations, so that non-PIC-code can be loaded

21 years ago[project @ 2002-10-02 09:08:44 by wolfgang]
wolfgang [Wed, 2 Oct 2002 09:08:44 +0000 (09:08 +0000)]
[project @ 2002-10-02 09:08:44 by wolfgang]
PowerPC-related changes:
Use proper register names for floating-point registers
Define SpillTmp registers for NCG

21 years ago[project @ 2002-10-02 02:04:44 by erkok]
erkok [Wed, 2 Oct 2002 02:04:44 +0000 (02:04 +0000)]
[project @ 2002-10-02 02:04:44 by erkok]
typos never end.

21 years ago[project @ 2002-10-01 18:10:00 by erkok]
erkok [Tue, 1 Oct 2002 18:10:00 +0000 (18:10 +0000)]
[project @ 2002-10-01 18:10:00 by erkok]
typo

21 years ago[project @ 2002-10-01 17:48:37 by erkok]
erkok [Tue, 1 Oct 2002 17:48:37 +0000 (17:48 +0000)]
[project @ 2002-10-01 17:48:37 by erkok]
wibbles on mdo-documentation

21 years ago[project @ 2002-10-01 16:28:20 by simonpj]
simonpj [Tue, 1 Oct 2002 16:28:20 +0000 (16:28 +0000)]
[project @ 2002-10-01 16:28:20 by simonpj]
Wibble in loading of boot interfaces

21 years ago[project @ 2002-10-01 15:59:03 by erkok]
erkok [Tue, 1 Oct 2002 15:59:03 +0000 (15:59 +0000)]
[project @ 2002-10-01 15:59:03 by erkok]
MonadRec => MonadFix changes

21 years ago[project @ 2002-10-01 15:58:42 by erkok]
erkok [Tue, 1 Oct 2002 15:58:42 +0000 (15:58 +0000)]
[project @ 2002-10-01 15:58:42 by erkok]
get mfix from Control.Monad.Fix

21 years ago[project @ 2002-10-01 09:55:38 by simonpj]
simonpj [Tue, 1 Oct 2002 09:55:38 +0000 (09:55 +0000)]
[project @ 2002-10-01 09:55:38 by simonpj]
Better derived Ord code

21 years ago[project @ 2002-10-01 08:59:43 by simonpj]
simonpj [Tue, 1 Oct 2002 08:59:43 +0000 (08:59 +0000)]
[project @ 2002-10-01 08:59:43 by simonpj]
Use the ModSummary fields in record construction

21 years ago[project @ 2002-10-01 08:53:14 by simonmar]
simonmar [Tue, 1 Oct 2002 08:53:14 +0000 (08:53 +0000)]
[project @ 2002-10-01 08:53:14 by simonmar]
The help text for the -i profiling option was wrong: it claimed the
argument was in milliseconds rather than seconds.

MERGE TO STABLE

21 years ago[project @ 2002-09-30 13:42:01 by simonpj]
simonpj [Mon, 30 Sep 2002 13:42:01 +0000 (13:42 +0000)]
[project @ 2002-09-30 13:42:01 by simonpj]
Move mdo section

21 years ago[project @ 2002-09-30 13:38:30 by simonpj]
simonpj [Mon, 30 Sep 2002 13:38:30 +0000 (13:38 +0000)]
[project @ 2002-09-30 13:38:30 by simonpj]
Minor wibble

21 years ago[project @ 2002-09-30 10:53:21 by simonmar]
simonmar [Mon, 30 Sep 2002 10:53:21 +0000 (10:53 +0000)]
[project @ 2002-09-30 10:53:21 by simonmar]
.PHONY: package-way-dist

21 years ago[project @ 2002-09-30 10:34:04 by simonmar]
simonmar [Mon, 30 Sep 2002 10:34:04 +0000 (10:34 +0000)]
[project @ 2002-09-30 10:34:04 by simonmar]
wibble in dist-manifest rule (writing to MANIFEST.tmp isn't necessary
and may hide errors)

21 years ago[project @ 2002-09-30 10:32:41 by simonmar]
simonmar [Mon, 30 Sep 2002 10:32:41 +0000 (10:32 +0000)]
[project @ 2002-09-30 10:32:41 by simonmar]
Don't bother with the $@.tmp hack in the rule for building libraries,
.DELETE_ON_ERROR (in suffix.mk) should do the job for us.

21 years ago[project @ 2002-09-30 10:26:58 by simonmar]
simonmar [Mon, 30 Sep 2002 10:26:58 +0000 (10:26 +0000)]
[project @ 2002-09-30 10:26:58 by simonmar]
s/rm -f/$(RM)

21 years ago[project @ 2002-09-30 10:23:56 by simonmar]
simonmar [Mon, 30 Sep 2002 10:23:56 +0000 (10:23 +0000)]
[project @ 2002-09-30 10:23:56 by simonmar]
Use $(RM) rather than explicit 'rm -f'

21 years ago[project @ 2002-09-30 10:22:37 by simonmar]
simonmar [Mon, 30 Sep 2002 10:22:37 +0000 (10:22 +0000)]
[project @ 2002-09-30 10:22:37 by simonmar]
Set .DELETE_ON_ERROR rather than using the strange construction

<command> || ($(RM) $@; exit 1)

in a few places.

21 years ago[project @ 2002-09-30 10:17:38 by simonmar]
simonmar [Mon, 30 Sep 2002 10:17:38 +0000 (10:17 +0000)]
[project @ 2002-09-30 10:17:38 by simonmar]
Replace
.PRECIOUS: %.hs
with
.SECONDARY: %.hs

.PRECIOUS is the wrong thing: it keeps the file when 'make' is
killed, as well as preventing automatic deletion.  .SECONDARY just
prevents the automatic deletion.

Spotted by: Ian Lynagh.

21 years ago[project @ 2002-09-30 10:14:02 by simonmar]
simonmar [Mon, 30 Sep 2002 10:14:02 +0000 (10:14 +0000)]
[project @ 2002-09-30 10:14:02 by simonmar]
Fix cut-n-pasto

21 years ago[project @ 2002-09-30 10:13:23 by simonmar]
simonmar [Mon, 30 Sep 2002 10:13:23 +0000 (10:13 +0000)]
[project @ 2002-09-30 10:13:23 by simonmar]
$(EXE_SUFFIX) duplicates $(exeext), and the latter seems to be more
widely used, so nuke the former.

21 years ago[project @ 2002-09-30 10:09:38 by simonmar]
simonmar [Mon, 30 Sep 2002 10:09:38 +0000 (10:09 +0000)]
[project @ 2002-09-30 10:09:38 by simonmar]
Remove unused $(PRINTER)

21 years ago[project @ 2002-09-28 07:12:55 by erkok]
erkok [Sat, 28 Sep 2002 07:12:55 +0000 (07:12 +0000)]
[project @ 2002-09-28 07:12:55 by erkok]
clarifications on the mdo documentation.

21 years ago[project @ 2002-09-28 00:29:32 by erkok]
erkok [Sat, 28 Sep 2002 00:29:32 +0000 (00:29 +0000)]
[project @ 2002-09-28 00:29:32 by erkok]
documentation for the mdo-notation.

(I've run this through jade, no syntax errors, but couldn't get
any html output as my docbook installation is a bit weird: couldn't
find style-files etc. it'll be great if someone can run it through
to make sure what I added looks acceptable..)

21 years ago[project @ 2002-09-27 23:10:59 by erkok]
erkok [Fri, 27 Sep 2002 23:10:59 +0000 (23:10 +0000)]
[project @ 2002-09-27 23:10:59 by erkok]
get mfix from MonadRec

21 years ago[project @ 2002-09-27 17:12:23 by erkok]
erkok [Fri, 27 Sep 2002 17:12:23 +0000 (17:12 +0000)]
[project @ 2002-09-27 17:12:23 by erkok]
make sure we get the name right when we call doStmtListErr

21 years ago[project @ 2002-09-27 12:42:42 by simonpj]
simonpj [Fri, 27 Sep 2002 12:42:45 +0000 (12:42 +0000)]
[project @ 2002-09-27 12:42:42 by simonpj]
Wibbles to improve error reporting

21 years ago[project @ 2002-09-27 08:20:43 by simonpj]
simonpj [Fri, 27 Sep 2002 08:20:50 +0000 (08:20 +0000)]
[project @ 2002-09-27 08:20:43 by simonpj]
--------------------------------
        Implement recursive do-notation
--------------------------------

This commit adds recursive do-notation, which Hugs has had for some time.

mdo { x <- foo y ;
      y <- baz x ;
      return (y,x) }

turns into

do { (x,y) <- mfix (\~(x,y) -> do { x <- foo y;
    y <- baz x }) ;
     return (y,x) }

This is all based on work by Levent Erkok and John Lanuchbury.

The really tricky bit is in the renamer (RnExpr.rnMDoStmts) where
we break things up into minimal segments.  The rest is easy, including
the type checker.

Levent laid the groundwork, and Simon finished it off. Needless to say,
I couldn't resist tidying up other stuff, so there's no guaranteed I
have not broken something.

21 years ago[project @ 2002-09-27 08:16:24 by simonpj]
simonpj [Fri, 27 Sep 2002 08:16:25 +0000 (08:16 +0000)]
[project @ 2002-09-27 08:16:24 by simonpj]
--------------------------------
     Do type-checking of external-core input
--------------------------------

When we read in an External Core file, we should really type-check it.
We weren't, because we treated it as if it were trusted, interface-file
material.

This commit fixes the problem, albeit in a bit of a hacky way.  The
typechecking is done by Lint, which does not give as friendly error
messages as does the normal typechecker.  But it's much better than nothing.

I also removed the entirely-unused 'warnings' from the Lint monad.

21 years ago[project @ 2002-09-27 07:51:57 by simonpj]
simonpj [Fri, 27 Sep 2002 07:51:57 +0000 (07:51 +0000)]
[project @ 2002-09-27 07:51:57 by simonpj]
typo

21 years ago[project @ 2002-09-26 16:29:10 by simonpj]
simonpj [Thu, 26 Sep 2002 16:29:10 +0000 (16:29 +0000)]
[project @ 2002-09-26 16:29:10 by simonpj]
Fix case of C {} for non-record constructor C, but with strict fields

21 years ago[project @ 2002-09-26 16:28:35 by simonpj]
simonpj [Thu, 26 Sep 2002 16:28:35 +0000 (16:28 +0000)]
[project @ 2002-09-26 16:28:35 by simonpj]
Fix egregious loop error

21 years ago[project @ 2002-09-26 09:07:50 by simonmar]
simonmar [Thu, 26 Sep 2002 09:07:50 +0000 (09:07 +0000)]
[project @ 2002-09-26 09:07:50 by simonmar]
In 'make html', bale out with a useful message if Haddock is not installed.

21 years ago[project @ 2002-09-26 09:01:34 by simonpj]
simonpj [Thu, 26 Sep 2002 09:01:34 +0000 (09:01 +0000)]
[project @ 2002-09-26 09:01:34 by simonpj]
Notes on .exe files

21 years ago[project @ 2002-09-26 08:44:48 by simonpj]
simonpj [Thu, 26 Sep 2002 08:44:48 +0000 (08:44 +0000)]
[project @ 2002-09-26 08:44:48 by simonpj]
Bale out a little earlier on renamer errors

21 years ago[project @ 2002-09-26 08:44:14 by simonpj]
simonpj [Thu, 26 Sep 2002 08:44:14 +0000 (08:44 +0000)]
[project @ 2002-09-26 08:44:14 by simonpj]
Comments

21 years ago[project @ 2002-09-25 21:30:26 by wolfgang]
wolfgang [Wed, 25 Sep 2002 21:30:26 +0000 (21:30 +0000)]
[project @ 2002-09-25 21:30:26 by wolfgang]
merge rev. 1.78.2.7

21 years ago[project @ 2002-09-25 20:44:23 by wolfgang]
wolfgang [Wed, 25 Sep 2002 20:44:23 +0000 (20:44 +0000)]
[project @ 2002-09-25 20:44:23 by wolfgang]
merge rev. 1.33.8.1

21 years ago[project @ 2002-09-25 20:43:34 by wolfgang]
wolfgang [Wed, 25 Sep 2002 20:43:34 +0000 (20:43 +0000)]
[project @ 2002-09-25 20:43:34 by wolfgang]
merge rev. 1.19.2.1

21 years ago[project @ 2002-09-25 16:10:36 by simonmar]
simonmar [Wed, 25 Sep 2002 16:10:36 +0000 (16:10 +0000)]
[project @ 2002-09-25 16:10:36 by simonmar]
Update the list of packages already loaded to match recent changes.

21 years ago[project @ 2002-09-25 16:00:50 by simonmar]
simonmar [Wed, 25 Sep 2002 16:00:50 +0000 (16:00 +0000)]
[project @ 2002-09-25 16:00:50 by simonmar]
When a command-line evaluation returns an exception, revert to the old
interactive context, because the new context will bind 'it' to a name
that doesn't exist in the linker's symbol table.

21 years ago[project @ 2002-09-25 15:36:50 by sof]
sof [Wed, 25 Sep 2002 15:36:50 +0000 (15:36 +0000)]
[project @ 2002-09-25 15:36:50 by sof]
fix logic in prev. commit

21 years ago[project @ 2002-09-25 15:24:06 by simonmar]
simonmar [Wed, 25 Sep 2002 15:24:07 +0000 (15:24 +0000)]
[project @ 2002-09-25 15:24:06 by simonmar]
Re-instate the checking for the values of errno constants at configure
time.  The problem with doing it using foreign calls is simply that
this tickles a bad case in the code gen machinery, which in this case
results in an extra 10-20k of goop ending up in pretty much every
binary, and it impacts GC performance too.

This has some portability implications, but the situation is no worse
than before.  To reliably cross-compile for a new platform you need to
build a set of .hc files for the libraries using a config.h generated on
the *target* machine.  (at some point we'll formalise the
cross-compilation story, but that's another thing on the todo list...)

21 years ago[project @ 2002-09-25 14:46:31 by simonmar]
simonmar [Wed, 25 Sep 2002 14:46:34 +0000 (14:46 +0000)]
[project @ 2002-09-25 14:46:31 by simonmar]
Fix a scheduling/GC bug, spotted by Wolfgang Thaller.  If a main
thread completes, and a GC runs before the return (from rts_evalIO())
happens, then the thread might be GC'd before we get a chance to
extract its return value, leading to barf("main thread has been GC'd")
from the garbage collector.

The fix is to treat all main threads which have completed as roots:
this is logically the right thing to do, because these threads must be
retained by virtue of holding the return value, and this is a property of
main threads only.

21 years ago[project @ 2002-09-25 12:47:42 by simonmar]
simonmar [Wed, 25 Sep 2002 12:47:42 +0000 (12:47 +0000)]
[project @ 2002-09-25 12:47:42 by simonmar]
The variable in a foreign declaration should be 'var' not 'varid',
which means that the following should be legal:

foreign export "plusInt" (+) :: Int -> Int -> Int

(this example is even in the FFI spec!)

21 years ago[project @ 2002-09-25 11:56:33 by simonpj]
simonpj [Wed, 25 Sep 2002 11:56:34 +0000 (11:56 +0000)]
[project @ 2002-09-25 11:56:33 by simonpj]
Better location for type/class cycle errors

21 years ago[project @ 2002-09-25 11:55:07 by simonpj]
simonpj [Wed, 25 Sep 2002 11:55:07 +0000 (11:55 +0000)]
[project @ 2002-09-25 11:55:07 by simonpj]
Better reporting of unused imports

21 years ago[project @ 2002-09-25 11:46:02 by simonpj]
simonpj [Wed, 25 Sep 2002 11:46:02 +0000 (11:46 +0000)]
[project @ 2002-09-25 11:46:02 by simonpj]
Remember to import the things used by foreign export

21 years ago[project @ 2002-09-25 11:09:11 by simonpj]
simonpj [Wed, 25 Sep 2002 11:09:11 +0000 (11:09 +0000)]
[project @ 2002-09-25 11:09:11 by simonpj]
Dont warn of missing signatures in interface mode

21 years ago[project @ 2002-09-25 10:53:34 by simonpj]
simonpj [Wed, 25 Sep 2002 10:53:46 +0000 (10:53 +0000)]
[project @ 2002-09-25 10:53:34 by simonpj]
Better error locations for instance errors

21 years ago[project @ 2002-09-25 10:53:11 by simonpj]
simonpj [Wed, 25 Sep 2002 10:53:11 +0000 (10:53 +0000)]
[project @ 2002-09-25 10:53:11 by simonpj]
Fix assertion handling

21 years ago[project @ 2002-09-25 10:53:06 by simonmar]
simonmar [Wed, 25 Sep 2002 10:53:06 +0000 (10:53 +0000)]
[project @ 2002-09-25 10:53:06 by simonmar]
Hopefully fix recent breakage in mangling/splitting: toss the .size
directives over the fence into the next block along with .globl and
.type directives (but carefullly avoid tossing the .size directives
for a function, which appear at the *end* of a function block).

21 years ago[project @ 2002-09-25 10:32:34 by simonmar]
simonmar [Wed, 25 Sep 2002 10:32:34 +0000 (10:32 +0000)]
[project @ 2002-09-25 10:32:34 by simonmar]
Clean out stamp-pkg-conf*

21 years ago[project @ 2002-09-25 10:32:23 by simonmar]
simonmar [Wed, 25 Sep 2002 10:32:23 +0000 (10:32 +0000)]
[project @ 2002-09-25 10:32:23 by simonmar]
Put the stamp-pkg-conf file in $(GHC_DRIVER_DIR), so that if someone
does 'make clean' in ghc without also cleaning in libraries, we don't
get into an inconsistent state w.r.t. which packages have been
installed.

21 years ago[project @ 2002-09-25 10:12:44 by simonpj]
simonpj [Wed, 25 Sep 2002 10:12:44 +0000 (10:12 +0000)]
[project @ 2002-09-25 10:12:44 by simonpj]
More notes about building on windows

21 years ago[project @ 2002-09-24 14:31:20 by simonmar]
simonmar [Tue, 24 Sep 2002 14:31:20 +0000 (14:31 +0000)]
[project @ 2002-09-24 14:31:20 by simonmar]
Stale interface files left by modules which no longer exist can cause
build problems, so in make clean we now delete all the interface files
we can find, rather than just the ones we know were generated from
existing source files.

21 years ago[project @ 2002-09-23 14:33:50 by simonmar]
simonmar [Mon, 23 Sep 2002 14:33:50 +0000 (14:33 +0000)]
[project @ 2002-09-23 14:33:50 by simonmar]
remove HEAP_HWM_WORDS; it probably hasn't been used for about 5 years

21 years ago[project @ 2002-09-23 10:44:07 by simonmar]
simonmar [Mon, 23 Sep 2002 10:44:07 +0000 (10:44 +0000)]
[project @ 2002-09-23 10:44:07 by simonmar]
Don't throw away .size and .type directives.  This lets us profile
with cachegrind and get meaningful results from vg_annotate (*very*
useful).

21 years ago[project @ 2002-09-20 23:48:53 by lewie]
lewie [Fri, 20 Sep 2002 23:48:53 +0000 (23:48 +0000)]
[project @ 2002-09-20 23:48:53 by lewie]
Make sure that permissions on installed files are right by adding
`%defattr(-,root,root)' to the `%files' entries.
Not a critical patch - Manuel built the rpms as root anyway, but this
makes it so that you are not dependent on building the rpm as root.

21 years ago[project @ 2002-09-20 13:08:42 by simonmar]
simonmar [Fri, 20 Sep 2002 13:08:42 +0000 (13:08 +0000)]
[project @ 2002-09-20 13:08:42 by simonmar]
Fix the install-datas target when $(INSTALL) is ./install-sh

21 years ago[project @ 2002-09-19 13:22:07 by simonmar]
simonmar [Thu, 19 Sep 2002 13:22:07 +0000 (13:22 +0000)]
[project @ 2002-09-19 13:22:07 by simonmar]
Remove vestiges of GHC.Prim.assert

21 years ago[project @ 2002-09-19 12:31:08 by simonmar]
simonmar [Thu, 19 Sep 2002 12:31:09 +0000 (12:31 +0000)]
[project @ 2002-09-19 12:31:08 by simonmar]
Fix records with infix constructors (parser/should_compile/read010).
Also tidy up the parser a bit:

 - clean up the tycon productions

 - check the current s/r conflicts (29) against reality,
   and update the comment.

21 years ago[project @ 2002-09-18 16:05:45 by simonpj]
simonpj [Wed, 18 Sep 2002 16:05:45 +0000 (16:05 +0000)]
[project @ 2002-09-18 16:05:45 by simonpj]
Fix LIE-plumbing bogon that killed spectral/fibheaps

21 years ago[project @ 2002-09-18 12:36:39 by simonmar]
simonmar [Wed, 18 Sep 2002 12:36:40 +0000 (12:36 +0000)]
[project @ 2002-09-18 12:36:39 by simonmar]
Add support for slurping in nofib dumps created with
EXTRA_RUNTEST_OPTS=-cachegrind, and output tables for number of
instructions, memory reads/writes, and cache misses.