ghc-hetmet.git
19 years ago[project @ 2004-08-10 13:51:25 by simonmar]
simonmar [Tue, 10 Aug 2004 13:51:25 +0000 (13:51 +0000)]
[project @ 2004-08-10 13:51:25 by simonmar]
Add $(Windows), which is "YES" if the host platform is a Windows
platform (mingw32 or cygwin32), and "NO" otherwise.

19 years ago[project @ 2004-08-10 09:02:36 by simonmar]
simonmar [Tue, 10 Aug 2004 09:02:41 +0000 (09:02 +0000)]
[project @ 2004-08-10 09:02:36 by simonmar]
Fix problem with inline foreign-call changes yesterday.  Foreign call
args sometimes have to be modified using shimFCallArg - nowadays this
is done at code generation time, whereas it used to be done at
pretty-printing time.

19 years ago[project @ 2004-08-09 14:27:53 by simonmar]
simonmar [Mon, 9 Aug 2004 14:27:53 +0000 (14:27 +0000)]
[project @ 2004-08-09 14:27:53 by simonmar]
Two changes:

  - newly created or unblocked threads go to the back of the run
    queue.  This is fairer because it avoids possible starvation.
    Fixes problem with conc004 test going much slower with optimisation.

  - The context switch flag is only reset after a yield.  Previously,
    it was being reset before we ran a thread, which meant that a tick
    that arrived during GC would be lost, and a thread doing lots of
    GC could hog the CPU.  Now, GC is effectively counted as part of
    the last running thread's timeslice.

MERGE TO STABLE.

19 years ago[project @ 2004-08-09 13:19:29 by simonmar]
simonmar [Mon, 9 Aug 2004 13:19:29 +0000 (13:19 +0000)]
[project @ 2004-08-09 13:19:29 by simonmar]
Allow case-of-unsafe-ccall to compile to straight-line code, like it
used to.  This has already been fixed on the backend-hacking-branch,
but I'm doing it here so that it can be merged into the STABLE branch,
where it will help to work around a bug.

The bug is in CgExpr.lhs:primRetUnboxedTuple, which picks temporaries
to assign the result of a ccall to.  The Cg monad doesn't have a uniq
supply (in the HEAD), so we always pick the same temporaries.  This
leads to clashes in complex function with multiple ccalls.  Again,
this is already fixed in the backend-hacking-branch.  I don't see an
easy fix for this bug.

The compilation of case-of-unsafe-ccall doesn't suffer from this
problem, and it will help work around some cases of the bug, so I'm
going to merge this onto the STABLE branch after some testing.

19 years ago[project @ 2004-08-09 12:35:02 by simonmar]
simonmar [Mon, 9 Aug 2004 12:35:02 +0000 (12:35 +0000)]
[project @ 2004-08-09 12:35:02 by simonmar]
Fix scoped type variable example.

19 years ago[project @ 2004-08-09 12:15:09 by simonmar]
simonmar [Mon, 9 Aug 2004 12:15:09 +0000 (12:15 +0000)]
[project @ 2004-08-09 12:15:09 by simonmar]
Put a "-- " before the location info, since the rest of the output
looks like Haskell source.

19 years ago[project @ 2004-08-08 20:46:44 by panne]
panne [Sun, 8 Aug 2004 20:46:52 +0000 (20:46 +0000)]
[project @ 2004-08-08 20:46:44 by panne]
DocBook XML is case-sensitive. Note that this is still not correct DocBook, tons
of indexterm elements within varlistentries are still misplaced.

19 years ago[project @ 2004-08-08 17:26:26 by krasimir]
krasimir [Sun, 8 Aug 2004 17:26:47 +0000 (17:26 +0000)]
[project @ 2004-08-08 17:26:26 by krasimir]
xmlize sgml docbooks

19 years ago[project @ 2004-08-06 11:33:06 by simonmar]
simonmar [Fri, 6 Aug 2004 11:33:06 +0000 (11:33 +0000)]
[project @ 2004-08-06 11:33:06 by simonmar]
Update from Robert Ennals: allow either the ctags or etags file to be
generated, so as to be more friendly to case-insensitive filesystems.

19 years ago[project @ 2004-08-05 18:29:47 by krasimir]
krasimir [Thu, 5 Aug 2004 18:29:47 +0000 (18:29 +0000)]
[project @ 2004-08-05 18:29:47 by krasimir]
Bugfix. --auto-ghci-libs doesn't work if the package was previously installed.

19 years ago[project @ 2004-08-02 18:23:25 by panne]
panne [Mon, 2 Aug 2004 18:23:25 +0000 (18:23 +0000)]
[project @ 2004-08-02 18:23:25 by panne]
Fixed dvips commandline

MERGE TO STABLE

19 years ago[project @ 2004-07-30 08:40:11 by simonpj]
simonpj [Fri, 30 Jul 2004 08:40:11 +0000 (08:40 +0000)]
[project @ 2004-07-30 08:40:11 by simonpj]
Add case for foreign types

19 years ago[project @ 2004-07-30 08:39:51 by simonpj]
simonpj [Fri, 30 Jul 2004 08:39:51 +0000 (08:39 +0000)]
[project @ 2004-07-30 08:39:51 by simonpj]
Fix foreign-type predicate

19 years ago[project @ 2004-07-28 12:59:53 by simonpj]
simonpj [Wed, 28 Jul 2004 12:59:53 +0000 (12:59 +0000)]
[project @ 2004-07-28 12:59:53 by simonpj]
Comments only

19 years ago[project @ 2004-07-28 12:59:14 by simonpj]
simonpj [Wed, 28 Jul 2004 12:59:14 +0000 (12:59 +0000)]
[project @ 2004-07-28 12:59:14 by simonpj]
Fix GHCi buglet when browsing module

19 years ago[project @ 2004-07-23 15:31:58 by ross]
ross [Fri, 23 Jul 2004 15:32:00 +0000 (15:32 +0000)]
[project @ 2004-07-23 15:31:58 by ross]
To make Text.Regex.Posix work with Hugs, move cbits/regex/regex.h under
include, where Hugs can find it.

19 years ago[project @ 2004-07-21 10:47:28 by simonmar]
simonmar [Wed, 21 Jul 2004 10:47:29 +0000 (10:47 +0000)]
[project @ 2004-07-21 10:47:28 by simonmar]
Make total_allocated be an ullong, to accommodate programs that do a lot
of allocation.

MERGE TO STABLE

19 years ago[project @ 2004-07-21 10:44:49 by simonpj]
simonpj [Wed, 21 Jul 2004 10:44:49 +0000 (10:44 +0000)]
[project @ 2004-07-21 10:44:49 by simonpj]
Wibble to :i for (,); make algTyConRhs behave right

19 years ago[project @ 2004-07-21 10:07:29 by simonpj]
simonpj [Wed, 21 Jul 2004 10:07:39 +0000 (10:07 +0000)]
[project @ 2004-07-21 10:07:29 by simonpj]
Add location information to :i command

19 years ago[project @ 2004-07-21 09:25:42 by simonpj]
simonpj [Wed, 21 Jul 2004 09:25:45 +0000 (09:25 +0000)]
[project @ 2004-07-21 09:25:42 by simonpj]
-------------------------------
       Sort out the :i command for GHCi
-------------------------------

The :info command has been broken in the HEAD for some time, since the new IfaceSyn
story.  This commit sorts it out, and makes it nicer than before. For example, when
you :i a record selector, you get a cut-down data type declaration, so you can see
the context.

19 years ago[project @ 2004-07-19 11:51:16 by simonmar]
simonmar [Mon, 19 Jul 2004 11:51:16 +0000 (11:51 +0000)]
[project @ 2004-07-19 11:51:16 by simonmar]
do the file writes one after another, so if the underlying file system
happens to be case-insensitive we won't run into a file locking issue.

MERGE TO STABLE

19 years ago[project @ 2004-07-19 11:29:34 by simonpj]
simonpj [Mon, 19 Jul 2004 11:29:39 +0000 (11:29 +0000)]
[project @ 2004-07-19 11:29:34 by simonpj]
Template Haskell improvements

a) Make '() and '[] work.
b) Add tupleTypeName, tupleDataName
b) Try to improve error message for (lack of) existential data constructors in TH

19 years ago[project @ 2004-07-19 11:26:13 by simonpj]
simonpj [Mon, 19 Jul 2004 11:27:36 +0000 (11:27 +0000)]
[project @ 2004-07-19 11:26:13 by simonpj]
Comments only

19 years ago[project @ 2004-07-15 20:50:40 by sof]
sof [Thu, 15 Jul 2004 20:50:40 +0000 (20:50 +0000)]
[project @ 2004-07-15 20:50:40 by sof]
oops, back out rev. 1.31

19 years ago[project @ 2004-07-15 20:42:45 by sof]
sof [Thu, 15 Jul 2004 20:42:45 +0000 (20:42 +0000)]
[project @ 2004-07-15 20:42:45 by sof]
awaitEvent(): for Integrity, use socketpair() instead of pipe() to implement socket()-aborting mechanism

19 years ago[project @ 2004-07-12 08:47:19 by simonmar]
simonmar [Mon, 12 Jul 2004 08:47:19 +0000 (08:47 +0000)]
[project @ 2004-07-12 08:47:19 by simonmar]
Add a (rather vague) FAQ entry about the readline build problem
reported in bug #988585.

19 years ago[project @ 2004-07-09 21:13:35 by sof]
sof [Fri, 9 Jul 2004 21:13:35 +0000 (21:13 +0000)]
[project @ 2004-07-09 21:13:35 by sof]
back out rev 1.61; to hardwire path to gcc, use --with-gcc=<foo>

19 years ago[project @ 2004-07-09 16:47:59 by sof]
sof [Fri, 9 Jul 2004 16:47:59 +0000 (16:47 +0000)]
[project @ 2004-07-09 16:47:59 by sof]
tidy up gcc warnings re: %-related format specifiers, mainly rewriting \%%\% to %%%%

19 years ago[project @ 2004-06-29 17:14:01 by panne]
panne [Tue, 29 Jun 2004 17:14:01 +0000 (17:14 +0000)]
[project @ 2004-06-29 17:14:01 by panne]
Workaround for hbc: It compiles matching against 0-ary constructors in
list comprehensions into wrong code, e.g.

   [ () | True <- [False] ]

results in something like

   Error: No match in I4680Pinteractive

when issued in hbi.

19 years ago[project @ 2004-06-28 16:35:08 by sof]
sof [Mon, 28 Jun 2004 16:35:08 +0000 (16:35 +0000)]
[project @ 2004-06-28 16:35:08 by sof]
sec-makefile-dependencies: -o option is no longer supported.

Merge to STABLE.

19 years ago[project @ 2004-06-27 20:41:07 by panne]
panne [Sun, 27 Jun 2004 20:41:07 +0000 (20:41 +0000)]
[project @ 2004-06-27 20:41:07 by panne]
Small syntactic changes to please hbc's interpretation of the layout rule and records

19 years ago[project @ 2004-06-24 09:41:11 by simonmar]
simonmar [Thu, 24 Jun 2004 09:41:11 +0000 (09:41 +0000)]
[project @ 2004-06-24 09:41:11 by simonmar]
Correction to the construction of .hi filenames in dependency
generation.

Fixes sourceforge bug #978543

Merge to STABLE

19 years ago[project @ 2004-06-24 09:35:13 by simonmar]
simonmar [Thu, 24 Jun 2004 09:35:13 +0000 (09:35 +0000)]
[project @ 2004-06-24 09:35:13 by simonmar]
Tiny perf improvement

19 years ago[project @ 2004-06-24 08:44:35 by simonmar]
simonmar [Thu, 24 Jun 2004 08:44:35 +0000 (08:44 +0000)]
[project @ 2004-06-24 08:44:35 by simonmar]
Add FAQ item: how to compile a program with and without profiling in
the same directory.

19 years ago[project @ 2004-06-24 08:43:53 by simonmar]
simonmar [Thu, 24 Jun 2004 08:43:53 +0000 (08:43 +0000)]
[project @ 2004-06-24 08:43:53 by simonmar]
Remove "EXOTICA" from the description of -osuf/-hisuf

19 years ago[project @ 2004-06-23 22:43:20 by ross]
ross [Wed, 23 Jun 2004 22:43:21 +0000 (22:43 +0000)]
[project @ 2004-06-23 22:43:20 by ross]
arrow notation fixes (problems reported bu John Hughes):

* allow an infixexp (exp0) to the left of -<.  This adds 4 more
  shift/reduce conflicts, because it makes if/lambda/let/case/proc
  before -< ambiguous.  This is the same sort of thing as
  "if x then y else z + 1", and as there shifting does the right thing.

* described the grammar more precisely

* fixed an example

merge to STABLE

19 years ago[project @ 2004-06-23 10:31:02 by ross]
ross [Wed, 23 Jun 2004 10:31:02 +0000 (10:31 +0000)]
[project @ 2004-06-23 10:31:02 by ross]
rearrange documentation of SPECIALIZE.

19 years ago[project @ 2004-06-22 13:47:47 by simonpj]
simonpj [Tue, 22 Jun 2004 13:47:47 +0000 (13:47 +0000)]
[project @ 2004-06-22 13:47:47 by simonpj]
Typo about TH

19 years ago[project @ 2004-06-22 13:47:27 by simonpj]
simonpj [Tue, 22 Jun 2004 13:47:27 +0000 (13:47 +0000)]
[project @ 2004-06-22 13:47:27 by simonpj]
Clarify words about the -package flag

19 years ago[project @ 2004-06-22 11:03:42 by simonpj]
simonpj [Tue, 22 Jun 2004 11:03:51 +0000 (11:03 +0000)]
[project @ 2004-06-22 11:03:42 by simonpj]
-----------------------------------------------
       Improve reporting of TH reify out-of-scope errors
-----------------------------------------------

No change to functionality, just better error reports.

19 years ago[project @ 2004-06-22 11:03:16 by simonpj]
simonpj [Tue, 22 Jun 2004 11:03:16 +0000 (11:03 +0000)]
[project @ 2004-06-22 11:03:16 by simonpj]
Improve pretty printing slightly

19 years ago[project @ 2004-06-20 17:58:46 by panne]
panne [Sun, 20 Jun 2004 17:58:49 +0000 (17:58 +0000)]
[project @ 2004-06-20 17:58:46 by panne]
Renamed Opt_WarnMisc to Opt_WarnDodgyImports

19 years ago[project @ 2004-06-18 09:02:40 by dons]
dons [Fri, 18 Jun 2004 09:02:40 +0000 (09:02 +0000)]
[project @ 2004-06-18 09:02:40 by dons]
Have loadObj ignore requests to load an object more than once, instead
of actually loading the object, then dying.

This change lets user-land loaders safely work inside GHCi, when they
would have no way to know what packages had already been loaded.

Help from SimonM and Andre Pang.

19 years ago[project @ 2004-06-17 13:35:33 by simonmar]
simonmar [Thu, 17 Jun 2004 13:35:33 +0000 (13:35 +0000)]
[project @ 2004-06-17 13:35:33 by simonmar]
Mention the splitter in the section on porting.

19 years ago[project @ 2004-06-16 10:47:48 by dons]
dons [Wed, 16 Jun 2004 10:47:48 +0000 (10:47 +0000)]
[project @ 2004-06-16 10:47:48 by dons]
Add linker symbols into linker symbol table.
This lets things that bind to the linker run in GHCi.
Tested on OSX and OpenBSD.

Thanks to Andre Pang.

19 years ago[project @ 2004-06-12 12:04:19 by panne]
panne [Sat, 12 Jun 2004 12:04:19 +0000 (12:04 +0000)]
[project @ 2004-06-12 12:04:19 by panne]
Tell the linker that we barf in lockFile now. Nuked an evil $Id$ on the way.

19 years ago[project @ 2004-06-11 12:42:18 by panne]
panne [Fri, 11 Jun 2004 12:42:18 +0000 (12:42 +0000)]
[project @ 2004-06-11 12:42:18 by panne]
Synched "Overflown relocation field" message with reality

19 years ago[project @ 2004-06-11 11:14:58 by malcolm]
malcolm [Fri, 11 Jun 2004 11:14:58 +0000 (11:14 +0000)]
[project @ 2004-06-11 11:14:58 by malcolm]
Oops, accidentally deleted this.  Reinstate.

19 years ago[project @ 2004-06-11 11:12:52 by malcolm]
malcolm [Fri, 11 Jun 2004 11:12:52 +0000 (11:12 +0000)]
[project @ 2004-06-11 11:12:52 by malcolm]
Remove hsc2hs files prior to re-grafting the entire directory.

19 years ago[project @ 2004-06-11 11:10:57 by malcolm]
malcolm [Fri, 11 Jun 2004 11:10:57 +0000 (11:10 +0000)]
[project @ 2004-06-11 11:10:57 by malcolm]
Move Makefiles for nhc98's build here, prior to grafting the directory.

19 years ago[project @ 2004-06-06 20:59:18 by panne]
panne [Sun, 6 Jun 2004 20:59:18 +0000 (20:59 +0000)]
[project @ 2004-06-06 20:59:18 by panne]
* Fixed ANNOUNCE, LICENSE and README handling
* Made binaries explicit
* Small reformatting

19 years ago[project @ 2004-06-06 11:44:37 by panne]
panne [Sun, 6 Jun 2004 11:44:37 +0000 (11:44 +0000)]
[project @ 2004-06-06 11:44:37 by panne]
Added empty "install" and "install-docs" targets

19 years ago[project @ 2004-06-06 11:22:28 by panne]
panne [Sun, 6 Jun 2004 11:22:28 +0000 (11:22 +0000)]
[project @ 2004-06-06 11:22:28 by panne]
* Moved snapshot handling to configure.ac (well, sort of...)
* Updated Requires and BuildRequires
* Synched documentation building/packaging with reality

19 years ago[project @ 2004-06-06 10:50:47 by panne]
panne [Sun, 6 Jun 2004 10:50:47 +0000 (10:50 +0000)]
[project @ 2004-06-06 10:50:47 by panne]
Advance HEAD version to 6.3.

19 years ago[project @ 2004-06-06 10:43:19 by panne]
panne [Sun, 6 Jun 2004 10:43:20 +0000 (10:43 +0000)]
[project @ 2004-06-06 10:43:19 by panne]
Added empty "all" and "boot" targets

19 years ago[project @ 2004-06-05 21:55:51 by panne]
panne [Sat, 5 Jun 2004 21:55:51 +0000 (21:55 +0000)]
[project @ 2004-06-05 21:55:51 by panne]
"make dvi ps html" in $(TOP) builds *all* documentation now

19 years ago[project @ 2004-06-05 21:48:41 by panne]
panne [Sat, 5 Jun 2004 21:48:41 +0000 (21:48 +0000)]
[project @ 2004-06-05 21:48:41 by panne]
* Added list of current committers
* Slight change of description

19 years ago[project @ 2004-06-05 18:01:00 by panne]
panne [Sat, 5 Jun 2004 18:01:01 +0000 (18:01 +0000)]
[project @ 2004-06-05 18:01:00 by panne]
More rpm spec file cleanup, including:
* added some BuildRequires
* changed packager to me, so people can complain at the right place :-]
* consistently refer to haskell.org instead of www.haskell.org

19 years ago[project @ 2004-06-05 13:17:56 by panne]
panne [Sat, 5 Jun 2004 13:17:56 +0000 (13:17 +0000)]
[project @ 2004-06-05 13:17:56 by panne]
ffi-art is dead, Jim...

19 years ago[project @ 2004-06-04 06:51:01 by panne]
panne [Fri, 4 Jun 2004 06:51:01 +0000 (06:51 +0000)]
[project @ 2004-06-04 06:51:01 by panne]
ANSIfication (from Ralf Wildenhues)

19 years ago[project @ 2004-06-02 09:23:43 by panne]
panne [Wed, 2 Jun 2004 09:23:43 +0000 (09:23 +0000)]
[project @ 2004-06-02 09:23:43 by panne]
Extremely strange: Some backend emit an ugly trailing ">" when "xref" is an
empty element, but none when only a start tag is used. *sigh* So let's revert
this part of the changes for now...

19 years ago[project @ 2004-06-02 09:17:51 by panne]
panne [Wed, 2 Jun 2004 09:17:51 +0000 (09:17 +0000)]
[project @ 2004-06-02 09:17:51 by panne]
* Fixed some "screen" vs. "programlisting"

* Don't use leading spaces in verbatim elements just for formatting purposes

* Be extremely cautious with whitespace in verbatim elements to avoid strange
  empty leading/trailing lines. More investigation needed what's really going on
  here, this shouldn't be necessary...

19 years ago[project @ 2004-06-02 08:53:54 by panne]
panne [Wed, 2 Jun 2004 08:53:54 +0000 (08:53 +0000)]
[project @ 2004-06-02 08:53:54 by panne]
Make the Building Guide almost valid DocBook XML V4.2 (to get the real thing,
simply add an XML prolog and change "artheader" to "articleinfo"). Things that
had to be changed:

 * XML tags are case-sensitive, so lowercase must be used for tags/attributes

 * Make "xref" an empty element.

 * "constant" is not allowed within "filename"

 * Move "indexterm" to a valid place.

 * Change some "&" to "&amp;"

 * The "_" character in titles makes some trouble in the TeX backend => avoid it

19 years ago[project @ 2004-06-02 08:25:10 by simonpj]
simonpj [Wed, 2 Jun 2004 08:25:15 +0000 (08:25 +0000)]
[project @ 2004-06-02 08:25:10 by simonpj]
-----------------------------------------------
       Record whether data constructors are declared infix
-----------------------------------------------

This allows us to generate the InfixC form in Template Hasekll.
And for 'deriving' Read and Show, we now read and parse the infix
form iff the constructor was declared infix, rather than just if
it does not have the default fixity (as before).

IfaceSyn changes slightly, so that IfaceConDecl can record their
fixity, so there are trivial changes scattered about, and
you'll need to recompile everything.

In TysWiredIn I took the opportunity to simplify pcDataCon slightly,
by eliminating the unused Theta argument.

19 years ago[project @ 2004-06-02 08:23:43 by simonpj]
simonpj [Wed, 2 Jun 2004 08:23:46 +0000 (08:23 +0000)]
[project @ 2004-06-02 08:23:43 by simonpj]
-------------------------------
Fix a grevious bug in DsMeta
which caused a seg fault
-------------------------------

The bug was an incorrectly declared type for one of the Template
Haskell construction functions in DsMeta (repRecCon, repRecUpd)
and some associated jiggery pokery.

-dcore-lint showed it up nicely, because the desugarer generated
ill-typed code.

DsMeta PrelNames TH.Lib

19 years ago[project @ 2004-06-02 08:09:58 by simonpj]
simonpj [Wed, 2 Jun 2004 08:09:58 +0000 (08:09 +0000)]
[project @ 2004-06-02 08:09:58 by simonpj]
Comments only

19 years ago[project @ 2004-06-01 23:22:30 by igloo]
igloo [Tue, 1 Jun 2004 23:22:33 +0000 (23:22 +0000)]
[project @ 2004-06-01 23:22:30 by igloo]
Add missing functions to TH export list (mostly spotted by Duncan Coutts).

Update TH test output.

Add TH support for patterns with type signatures, and test for same
(requested by Isaac Jones).

Add TH support for pattern guards, and tests for same
(requested by Isaac Jones).

Add infix patterns to TH datatypes.

Added Lift instances for 2- to 7-tuples (requested by Duncan Coutts).

19 years ago[project @ 2004-05-27 16:13:59 by simonmar]
simonmar [Thu, 27 May 2004 16:13:59 +0000 (16:13 +0000)]
[project @ 2004-05-27 16:13:59 by simonmar]
Change the 'can't load package' message from a panic to an ordinary
error.

19 years ago[project @ 2004-05-27 15:21:37 by simonmar]
simonmar [Thu, 27 May 2004 15:21:37 +0000 (15:21 +0000)]
[project @ 2004-05-27 15:21:37 by simonmar]
Remove part of previous patch which was for debugging only.

19 years ago[project @ 2004-05-27 15:18:31 by simonmar]
simonmar [Thu, 27 May 2004 15:18:31 +0000 (15:18 +0000)]
[project @ 2004-05-27 15:18:31 by simonmar]
Fix a nasty bug: when saving errno in the TSO after running a thread,
beware that the TSO might have moved, e.g. if the thread made a safe
foreign call in the threaded RTS and a GC happened.

We have to grab the new location of the TSO *before* saving errno.

MERGE TO STABLE

This was the most interesting bug hunt I've had in a while.  The crash
only showed up in about 1 in 4 runs of a program with 1000 Haskell
threads, running on the threaded RTS.  To make things worse, gdb
doesn't support watchpoints in programs with multiple threads... :-/

19 years ago[project @ 2004-05-27 09:29:28 by simonmar]
simonmar [Thu, 27 May 2004 09:29:29 +0000 (09:29 +0000)]
[project @ 2004-05-27 09:29:28 by simonmar]
Make getAllocations() return an Int64 to avoid Int overflow.

19 years ago[project @ 2004-05-25 09:06:38 by simonpj]
simonpj [Tue, 25 May 2004 09:06:38 +0000 (09:06 +0000)]
[project @ 2004-05-25 09:06:38 by simonpj]
-----------------------------------------------
Decent error on re-use of built-in syntax
-----------------------------------------------

Make the renamer complain nicely on stupid stuff like

data T = []

(except in the Prelude, of course!)

19 years ago[project @ 2004-05-25 08:09:37 by simonpj]
simonpj [Tue, 25 May 2004 08:09:42 +0000 (08:09 +0000)]
[project @ 2004-05-25 08:09:37 by simonpj]
-----------------------------------------------
Improve location info on unused-import warnings
-----------------------------------------------

Improving the location involves plumbing the location of the import a bit
more assiduously -- hence change to imp_mods in TcRnTypes

19 years ago[project @ 2004-05-24 09:13:21 by simonmar]
simonmar [Mon, 24 May 2004 09:13:21 +0000 (09:13 +0000)]
[project @ 2004-05-24 09:13:21 by simonmar]
Comment update

19 years ago[project @ 2004-05-24 08:35:41 by simonmar]
simonmar [Mon, 24 May 2004 08:35:41 +0000 (08:35 +0000)]
[project @ 2004-05-24 08:35:41 by simonmar]
Mention that ordering is important on the GHCi command line

19 years ago[project @ 2004-05-24 02:49:07 by dons]
dons [Mon, 24 May 2004 02:49:07 +0000 (02:49 +0000)]
[project @ 2004-05-24 02:49:07 by dons]
spelling mistake in comment only

19 years ago[project @ 2004-05-22 12:27:38 by panne]
panne [Sat, 22 May 2004 12:27:38 +0000 (12:27 +0000)]
[project @ 2004-05-22 12:27:38 by panne]
Reverse the order in which DLLs are loaded. This makes more sense in general and
should fix the trouble with the broken OpenGL libs on Gentoo. This fix has been
tested on x86 Linux, but reports from other platforms (WinDoze, MacOS X, ...)
are highly welcome, dynamic linking is quite platform-specific and surprising
things can happen from time to time...

Merge to STABLE when tested on other platforms

19 years ago[project @ 2004-05-22 01:43:37 by dons]
dons [Sat, 22 May 2004 01:43:37 +0000 (01:43 +0000)]
[project @ 2004-05-22 01:43:37 by dons]
Add x86_64-*-openbsd* as synonym for amd64-*-openbsd.

Which one you get depends on which config.sub we have, and newer
(2004-*) config.subs normalise all amd64s to x86_64s.

19 years ago[project @ 2004-05-21 13:28:59 by simonmar]
simonmar [Fri, 21 May 2004 13:28:59 +0000 (13:28 +0000)]
[project @ 2004-05-21 13:28:59 by simonmar]
Fix yet another bug in the THUNK_SELECTOR code.  Interestingly, I
spotted this one earlier but left a ToDo in the code rather than
fixing it (I think I wasn't sure whether it could happen or not).

The bug is to close another another way that eval_thunk_selector()
could return a pointer into to-space.  See comments for details.

19 years ago[project @ 2004-05-21 09:25:03 by geoffw]
geoffw [Fri, 21 May 2004 09:25:03 +0000 (09:25 +0000)]
[project @ 2004-05-21 09:25:03 by geoffw]
mingw/msys fix: keep .lcomm directives

19 years ago[project @ 2004-05-20 07:15:47 by mthomas]
mthomas [Thu, 20 May 2004 07:15:49 +0000 (07:15 +0000)]
[project @ 2004-05-20 07:15:47 by mthomas]
Install MinGW32 gcc and perl.

19 years ago[project @ 2004-05-19 08:46:21 by simonpj]
simonpj [Wed, 19 May 2004 08:46:21 +0000 (08:46 +0000)]
[project @ 2004-05-19 08:46:21 by simonpj]
Improve error reporting for static flags

19 years ago[project @ 2004-05-18 07:53:34 by mthomas]
mthomas [Tue, 18 May 2004 07:53:34 +0000 (07:53 +0000)]
[project @ 2004-05-18 07:53:34 by mthomas]
Windows make install sees an eagle.  It's heart aches - one day it will soar.

19 years ago[project @ 2004-05-15 15:35:47 by dons]
dons [Sat, 15 May 2004 15:35:47 +0000 (15:35 +0000)]
[project @ 2004-05-15 15:35:47 by dons]
Enable GHCi on OpenBSD
     1. fix dlopen(NULL, ..) not working
     2. set USE_MMAP to overcome malloc'd memory not being executable

19 years ago[project @ 2004-05-12 13:01:30 by simonpj]
simonpj [Wed, 12 May 2004 13:01:30 +0000 (13:01 +0000)]
[project @ 2004-05-12 13:01:30 by simonpj]
Tidy-up only; behaviour unchanged

19 years ago[project @ 2004-05-12 12:55:12 by simonpj]
simonpj [Wed, 12 May 2004 12:55:12 +0000 (12:55 +0000)]
[project @ 2004-05-12 12:55:12 by simonpj]
---------------------------------
Another delicate fix to the way that the
Dreaded Monomorpism Restriction is handled
---------------------------------

     I think this should merge nicely to the STABLE branch

In TcSimplify 1.130 I changed tcSimplifyRestricted (used for
declarations that fall under the monomorphism restriction) to use Plan
C.  Unfortunately, it later transpired that George Russel and Serge
Mechveliani both made somewhat-dubious use of overlapping instances
that conflicted with this change. Here's the example

  instance (HasBinary ty IO) => HasCodedValue ty

  foo :: HasCodedValue a => String -> IO a

  doDecodeIO :: HasCodedValue a => () -> () -> IO a
  doDecodeIO codedValue view = let { act = foo "" } in  act

You might think this should work becuase the call to 'foo' in the last
line gives rise to a constraint (HasCodedValue t), which can be
satisfied by the type sig for doDecodeIO.  But the restricted binding
act = ... calls tcSimplifyRestricted, and Plan C simplifies the
constraint using the (rather bogus) instance declaration, and now we
are stuffed.

This commit implements Plan D, which is like plan B except that it does no
improvement, and hence avoids plan B's flaw.  See the comments with Plan D.

The only criticism one might make of Plan D is that it may sometimes quantify
a restricted binding over "too few" type variables; but one can solve that
by adding a type sig.  So this seems better than the very subtle problems
with Plan C.

All of this is very much at the margin: George and Sergey are pushing
their luck.

19 years ago[project @ 2004-05-11 18:36:10 by panne]
panne [Tue, 11 May 2004 18:36:10 +0000 (18:36 +0000)]
[project @ 2004-05-11 18:36:10 by panne]
Make the printing of samples really locale-independent

19 years ago[project @ 2004-05-11 11:40:59 by simonmar]
simonmar [Tue, 11 May 2004 11:41:00 +0000 (11:41 +0000)]
[project @ 2004-05-11 11:40:59 by simonmar]
Nuke old version of the FFI spec

19 years ago[project @ 2004-05-10 11:53:41 by simonmar]
simonmar [Mon, 10 May 2004 11:53:41 +0000 (11:53 +0000)]
[project @ 2004-05-10 11:53:41 by simonmar]
Fix mishandling of the BF_COMPACTED flag, which could lead to problems
when using the compacting collector (+RTS -c, or +RTS -M<size>).  In
fact, I'm not sure how it worked at all.

MERGE TO STABLE

19 years ago[project @ 2004-05-10 10:26:07 by simonmar]
simonmar [Mon, 10 May 2004 10:26:07 +0000 (10:26 +0000)]
[project @ 2004-05-10 10:26:07 by simonmar]
Hack to generate correct dependencies for the RTS.  We now #define
PROFILING, THREADED_RTS and DEBUG when generating dependencies so that
we get (hopefully) a superset of all the deps.

19 years ago[project @ 2004-05-10 10:05:34 by simonmar]
simonmar [Mon, 10 May 2004 10:05:34 +0000 (10:05 +0000)]
[project @ 2004-05-10 10:05:34 by simonmar]
In multiple declaration errors, give the location of one of the
declarations as the location of the error message, instead of the
top-level of the file.

19 years ago[project @ 2004-05-09 14:38:13 by panne]
panne [Sun, 9 May 2004 14:38:13 +0000 (14:38 +0000)]
[project @ 2004-05-09 14:38:13 by panne]
Documentation typos

19 years ago[project @ 2004-05-08 03:10:57 by dons]
dons [Sat, 8 May 2004 03:10:57 +0000 (03:10 +0000)]
[project @ 2004-05-08 03:10:57 by dons]
3 more openbsd platforms: m88k, sparc64 & vax
Just in case someone tries to run the testsuite.

19 years ago[project @ 2004-05-08 01:49:56 by dons]
dons [Sat, 8 May 2004 01:49:56 +0000 (01:49 +0000)]
[project @ 2004-05-08 01:49:56 by dons]
Add openbsd platforms: alpha, arm, hppa, powerpc

19 years ago[project @ 2004-05-07 21:19:21 by panne]
panne [Fri, 7 May 2004 21:19:21 +0000 (21:19 +0000)]
[project @ 2004-05-07 21:19:21 by panne]
GCC's __attribute__ handling seems to be a little bit stricter with GCC 3.3.3:

   * When a function declaration uses it, the corresponding definition has to
     use it, too.

   * Syntactically it is allowed only at the beginning of the function
     definition.

Let's hope that the current syntax is backwards compatible...

19 years ago[project @ 2004-05-07 14:06:45 by simonpj]
simonpj [Fri, 7 May 2004 14:06:45 +0000 (14:06 +0000)]
[project @ 2004-05-07 14:06:45 by simonpj]
---------------------------------
Make sure that GHCi loads all
necessary orphan-instance modules
---------------------------------

When you do :m A, we need to load any orphan-instance modules
below A.  That's easily done, but had been forgotten.

Do not merge to stable: the fix is different there

19 years ago[project @ 2004-05-07 14:06:12 by simonpj]
simonpj [Fri, 7 May 2004 14:06:12 +0000 (14:06 +0000)]
[project @ 2004-05-07 14:06:12 by simonpj]
White space

19 years ago[project @ 2004-05-07 11:23:56 by simonmar]
simonmar [Fri, 7 May 2004 11:23:56 +0000 (11:23 +0000)]
[project @ 2004-05-07 11:23:56 by simonmar]
make a SrcSpan for the whole file that is not "unhelpful"

20 years ago[project @ 2004-05-06 12:30:38 by simonpj]
simonpj [Thu, 6 May 2004 12:30:38 +0000 (12:30 +0000)]
[project @ 2004-05-06 12:30:38 by simonpj]
Report error in GHCi for unlifted bindings

20 years ago[project @ 2004-05-06 12:29:50 by simonpj]
simonpj [Thu, 6 May 2004 12:29:50 +0000 (12:29 +0000)]
[project @ 2004-05-06 12:29:50 by simonpj]
Make addSrcSpan ignore unhelpful spans