ghc-hetmet.git
23 years ago[project @ 2001-01-17 12:46:13 by simonmar]
simonmar [Wed, 17 Jan 2001 12:46:13 +0000 (12:46 +0000)]
[project @ 2001-01-17 12:46:13 by simonmar]
dcs.gla.ac.uk ==> haskell.org

23 years ago[project @ 2001-01-17 12:14:30 by simonmar]
simonmar [Wed, 17 Jan 2001 12:14:30 +0000 (12:14 +0000)]
[project @ 2001-01-17 12:14:30 by simonmar]
merge changes from gmp-3.1.1

23 years ago[project @ 2001-01-17 12:06:02 by simonmar]
simonmar [Wed, 17 Jan 2001 12:06:21 +0000 (12:06 +0000)]
[project @ 2001-01-17 12:06:02 by simonmar]
Import stripped down gmp-3.1.1

23 years ago[project @ 2001-01-17 10:14:40 by simonmar]
simonmar [Wed, 17 Jan 2001 10:14:40 +0000 (10:14 +0000)]
[project @ 2001-01-17 10:14:40 by simonmar]
more wibbles

23 years ago[project @ 2001-01-17 10:11:17 by sewardj]
sewardj [Wed, 17 Jan 2001 10:11:17 +0000 (10:11 +0000)]
[project @ 2001-01-17 10:11:17 by sewardj]
Remove semicolon which was causing a syntax error on sparc-solaris /bin/sh.

23 years ago[project @ 2001-01-17 10:08:10 by simonmar]
simonmar [Wed, 17 Jan 2001 10:08:10 +0000 (10:08 +0000)]
[project @ 2001-01-17 10:08:10 by simonmar]
wibbles

23 years ago[project @ 2001-01-17 10:07:14 by simonmar]
simonmar [Wed, 17 Jan 2001 10:07:14 +0000 (10:07 +0000)]
[project @ 2001-01-17 10:07:14 by simonmar]
remove the message that says "now do gmake boot followed by gmake..."

23 years ago[project @ 2001-01-16 21:05:51 by qrczak]
qrczak [Tue, 16 Jan 2001 21:05:51 +0000 (21:05 +0000)]
[project @ 2001-01-16 21:05:51 by qrczak]
Correctly delimit a LINE pragma.

23 years ago[project @ 2001-01-16 17:47:10 by simonmar]
simonmar [Tue, 16 Jan 2001 17:47:10 +0000 (17:47 +0000)]
[project @ 2001-01-16 17:47:10 by simonmar]
Change the way the top-level Makefile works, now that we have a
dependency between ghc and hslibs which means that you can't `make
boot' in hslibs until you've done `make all' in ghc.

  - now you just type `make all' at the top-level, and the makefile
    arranges to do `make boot all' in each of the subdirectories.
    Typing `make boot' at the top-level now yields a message explaining
    what's going on.

  - Now it's no longer necessary to set $(ProjectsToBuild).  If you don't
    set it, the build system attempts to build all the projects in
    the source tree, in the order determined by $(AllProjects) in
    config.mk.  I've been meaning to fix this for ages, since it meant
    that one had to hand-edit config.mk.in when making a distribution
    for anything other than GHC - this is no longer the case.

    You still *can* set ProjectsToBuild if you want to, however.

  - ProjectsToInstall has been replaced by ProjectsDontInstall, and
    has the obvious, reverse, meaning.  It also has a reasonable default,
    so the need to set it should be rare.

All this has the obvious benefit that to build GHC you need one fewer
commands (no more `make boot'), and anyone that has "./configure &&
make && make install" hardwired into their brains will feel right at
home.

23 years ago[project @ 2001-01-16 17:09:43 by sewardj]
sewardj [Tue, 16 Jan 2001 17:09:43 +0000 (17:09 +0000)]
[project @ 2001-01-16 17:09:43 by sewardj]
Various ghci interactive UI fixes/improvements.

23 years ago[project @ 2001-01-16 15:44:42 by sewardj]
sewardj [Tue, 16 Jan 2001 15:44:42 +0000 (15:44 +0000)]
[project @ 2001-01-16 15:44:42 by sewardj]
hscExpr: be a bit more careful about which pcs version is returned, so
that the environment isn't totally hosed following a type error.

23 years ago[project @ 2001-01-16 14:16:44 by simonmar]
simonmar [Tue, 16 Jan 2001 14:16:44 +0000 (14:16 +0000)]
[project @ 2001-01-16 14:16:44 by simonmar]
Improve a parser error message.

23 years ago[project @ 2001-01-16 14:06:14 by simonmar]
simonmar [Tue, 16 Jan 2001 14:06:14 +0000 (14:06 +0000)]
[project @ 2001-01-16 14:06:14 by simonmar]
Fix a problem with our use of tcsetattr() which caused background
processes to stop when the buffering mode, or the echo status, was
changed.

tcSetAttr() is a wrapper around tcsetattr() that temporarily blocks
SIGTTOU around the call.

23 years ago[project @ 2001-01-16 12:44:34 by sewardj]
sewardj [Tue, 16 Jan 2001 12:44:34 +0000 (12:44 +0000)]
[project @ 2001-01-16 12:44:34 by sewardj]
Give the correct commit message for rev 1.59:
"rm debug printing"

23 years ago[project @ 2001-01-16 12:42:18 by sewardj]
sewardj [Tue, 16 Jan 2001 12:42:19 +0000 (12:42 +0000)]
[project @ 2001-01-16 12:42:18 by sewardj]
Fill in some more missing cases.

23 years ago[project @ 2001-01-16 12:41:05 by sewardj]
sewardj [Tue, 16 Jan 2001 12:41:05 +0000 (12:41 +0000)]
[project @ 2001-01-16 12:41:05 by sewardj]
rm

23 years ago[project @ 2001-01-16 12:41:03 by simonmar]
simonmar [Tue, 16 Jan 2001 12:41:03 +0000 (12:41 +0000)]
[project @ 2001-01-16 12:41:03 by simonmar]
take account of GhcUnregisterised

23 years ago[project @ 2001-01-16 12:32:45 by simonmar]
simonmar [Tue, 16 Jan 2001 12:32:45 +0000 (12:32 +0000)]
[project @ 2001-01-16 12:32:45 by simonmar]
add GhcUnregisterised to Config.hs

23 years ago[project @ 2001-01-16 12:31:18 by simonmar]
simonmar [Tue, 16 Jan 2001 12:31:18 +0000 (12:31 +0000)]
[project @ 2001-01-16 12:31:18 by simonmar]
Add GhcUnregisterised, to make unregisterised compilation the default.
Also include a lengthy comment about how the whole unregisterised
compilation / boostrapping thing is supposed to hold together.

23 years ago[project @ 2001-01-16 12:02:04 by simonmar]
simonmar [Tue, 16 Jan 2001 12:02:04 +0000 (12:02 +0000)]
[project @ 2001-01-16 12:02:04 by simonmar]
Don't use the same name for a typedef and variable.

23 years ago[project @ 2001-01-16 11:59:06 by simonmar]
simonmar [Tue, 16 Jan 2001 11:59:06 +0000 (11:59 +0000)]
[project @ 2001-01-16 11:59:06 by simonmar]
this isn't legal C, apparently:

switch (e) {
label:
}

without at least one statement between the label and the end block.

23 years ago[project @ 2001-01-16 11:57:06 by simonmar]
simonmar [Tue, 16 Jan 2001 11:57:06 +0000 (11:57 +0000)]
[project @ 2001-01-16 11:57:06 by simonmar]
make the dummy Callable and Returnable static arrays one element long,
because some C compilers can't cope with zero-length static arrays.

23 years ago[project @ 2001-01-16 11:54:25 by simonmar]
simonmar [Tue, 16 Jan 2001 11:54:25 +0000 (11:54 +0000)]
[project @ 2001-01-16 11:54:25 by simonmar]
add MaxOSX version of mmap.

23 years ago[project @ 2001-01-16 11:53:32 by simonmar]
simonmar [Tue, 16 Jan 2001 11:53:32 +0000 (11:53 +0000)]
[project @ 2001-01-16 11:53:32 by simonmar]
add MacOSX HEAP_BASE

23 years ago[project @ 2001-01-16 11:50:30 by simonmar]
simonmar [Tue, 16 Jan 2001 11:50:30 +0000 (11:50 +0000)]
[project @ 2001-01-16 11:50:30 by simonmar]
Don't use the same name for a typedef and variable.  Some C compilers
can handle this without complaint (eg. gcc), but some others it seems
can't.

23 years ago[project @ 2001-01-16 11:28:45 by simonmar]
simonmar [Tue, 16 Jan 2001 11:28:45 +0000 (11:28 +0000)]
[project @ 2001-01-16 11:28:45 by simonmar]
add dummy freeHaskellFunctionPtr when we don't have a real one on this arch.

23 years ago[project @ 2001-01-16 11:27:45 by simonmar]
simonmar [Tue, 16 Jan 2001 11:27:45 +0000 (11:27 +0000)]
[project @ 2001-01-16 11:27:45 by simonmar]
temp. bug fix for MacOS X which has a large off_t.  This code is
broken anyway.

23 years ago[project @ 2001-01-16 11:14:29 by simonmar]
simonmar [Tue, 16 Jan 2001 11:14:29 +0000 (11:14 +0000)]
[project @ 2001-01-16 11:14:29 by simonmar]
platform definitions for PPC/MacOSX

23 years ago[project @ 2001-01-16 10:51:39 by rrt]
rrt [Tue, 16 Jan 2001 10:51:39 +0000 (10:51 +0000)]
[project @ 2001-01-16 10:51:39 by rrt]
Fixed some typos.

23 years ago[project @ 2001-01-16 10:49:13 by simonmar]
simonmar [Tue, 16 Jan 2001 10:49:13 +0000 (10:49 +0000)]
[project @ 2001-01-16 10:49:13 by simonmar]
re-instate -Rghc-timing

23 years ago[project @ 2001-01-16 06:02:29 by qrczak]
qrczak [Tue, 16 Jan 2001 06:02:29 +0000 (06:02 +0000)]
[project @ 2001-01-16 06:02:29 by qrczak]
Oops, parens are bad in config.h values.

23 years ago[project @ 2001-01-15 22:24:54 by lewie]
lewie [Mon, 15 Jan 2001 22:24:54 +0000 (22:24 +0000)]
[project @ 2001-01-15 22:24:54 by lewie]
Just testing..

23 years ago[project @ 2001-01-15 20:55:14 by qrczak]
qrczak [Mon, 15 Jan 2001 20:55:15 +0000 (20:55 +0000)]
[project @ 2001-01-15 20:55:14 by qrczak]
Use -1 instead of 0 to mark unsupported errno names.
Add eOK for no error, i.e. corresponding to errno == 0.

23 years ago[project @ 2001-01-15 17:05:46 by sewardj]
sewardj [Mon, 15 Jan 2001 17:05:47 +0000 (17:05 +0000)]
[project @ 2001-01-15 17:05:46 by sewardj]
More stuff to do with primop support in the interpreter.  Also, track
some changes to the libraries.

23 years ago[project @ 2001-01-15 16:55:24 by sewardj]
sewardj [Mon, 15 Jan 2001 16:55:25 +0000 (16:55 +0000)]
[project @ 2001-01-15 16:55:24 by sewardj]
In interpreted code, basic support for routing primop calls through
to functions in PrelPrimopWrappers.lhs.

23 years ago[project @ 2001-01-15 09:57:33 by sewardj]
sewardj [Mon, 15 Jan 2001 09:57:33 +0000 (09:57 +0000)]
[project @ 2001-01-15 09:57:33 by sewardj]
Use mkApUpd0# to ensure top-level things are updateable.

23 years ago[project @ 2001-01-15 09:57:07 by sewardj]
sewardj [Mon, 15 Jan 2001 09:57:07 +0000 (09:57 +0000)]
[project @ 2001-01-15 09:57:07 by sewardj]
Handle nullary constructors more correctly.

23 years ago[project @ 2001-01-15 09:55:41 by sewardj]
sewardj [Mon, 15 Jan 2001 09:55:41 +0000 (09:55 +0000)]
[project @ 2001-01-15 09:55:41 by sewardj]
Add mkApUpd0# primop, used to make sure bytecode-compiled top-level things
are updateable.

23 years ago[project @ 2001-01-15 09:16:03 by simonmar]
simonmar [Mon, 15 Jan 2001 09:16:03 +0000 (09:16 +0000)]
[project @ 2001-01-15 09:16:03 by simonmar]
Improve the test for "still has jump to fast entry point": it was
turning up a false positive.

23 years ago[project @ 2001-01-15 07:33:02 by qrczak]
qrczak [Mon, 15 Jan 2001 07:33:02 +0000 (07:33 +0000)]
[project @ 2001-01-15 07:33:02 by qrczak]
Implemented #enum construct.

23 years ago[project @ 2001-01-14 15:46:53 by simonmar]
simonmar [Sun, 14 Jan 2001 15:46:53 +0000 (15:46 +0000)]
[project @ 2001-01-14 15:46:53 by simonmar]
Add a slightly stronger test for Time that the ones in tests/io.  This
one reads the current time, converts it to CalendarTime and back
again, and tests that all three times converted to strings compare equal.

23 years ago[project @ 2001-01-14 15:36:04 by simonmar]
simonmar [Sun, 14 Jan 2001 15:36:04 +0000 (15:36 +0000)]
[project @ 2001-01-14 15:36:04 by simonmar]
oops, fix a sign error that caused toClockTime to be wrong outside GMT.

23 years ago[project @ 2001-01-14 15:34:31 by simonmar]
simonmar [Sun, 14 Jan 2001 15:34:31 +0000 (15:34 +0000)]
[project @ 2001-01-14 15:34:31 by simonmar]
Patterns in the case statement didn't work on my FreeBSD box due to a
bogus-looking extra '(', so I removed it.  Hope I haven't broken anything.

23 years ago[project @ 2001-01-14 10:48:34 by panne]
panne [Sun, 14 Jan 2001 10:48:34 +0000 (10:48 +0000)]
[project @ 2001-01-14 10:48:34 by panne]
After Mr. HsLibs's std/lang library re-organization we need
hsc2hs-inplace in the "make boot" stage

23 years ago[project @ 2001-01-13 23:10:45 by qrczak]
qrczak [Sat, 13 Jan 2001 23:10:45 +0000 (23:10 +0000)]
[project @ 2001-01-13 23:10:45 by qrczak]
Don't output so many unnecessary C line markers.

23 years ago[project @ 2001-01-13 20:33:51 by qrczak]
qrczak [Sat, 13 Jan 2001 20:34:25 +0000 (20:34 +0000)]
[project @ 2001-01-13 20:33:51 by qrczak]
Use a replacement for LINE pragmas under nhc.

23 years ago[project @ 2001-01-13 19:46:49 by qrczak]
qrczak [Sat, 13 Jan 2001 19:46:49 +0000 (19:46 +0000)]
[project @ 2001-01-13 19:46:49 by qrczak]
Generate correct LINE pragmas.

23 years ago[project @ 2001-01-13 12:11:00 by qrczak]
qrczak [Sat, 13 Jan 2001 12:11:00 +0000 (12:11 +0000)]
[project @ 2001-01-13 12:11:00 by qrczak]
Remove #options construct: all released ghc versions understand multuple
{-# OPTIONS #-} pragmas.

23 years ago[project @ 2001-01-12 22:54:22 by qrczak]
qrczak [Fri, 12 Jan 2001 22:54:23 +0000 (22:54 +0000)]
[project @ 2001-01-12 22:54:22 by qrczak]
Expand #-constructs only outside Haskell comments and string literals.

23 years ago[project @ 2001-01-12 20:17:35 by qrczak]
qrczak [Fri, 12 Jan 2001 20:17:35 +0000 (20:17 +0000)]
[project @ 2001-01-12 20:17:35 by qrczak]
Define __GLASGOW_HASKELL__.

23 years ago[project @ 2001-01-12 18:49:25 by qrczak]
qrczak [Fri, 12 Jan 2001 18:49:25 +0000 (18:49 +0000)]
[project @ 2001-01-12 18:49:25 by qrczak]
Use $(CC) instead of ghc-inplace as C compiler in hsc2hs-inplace.
(Generally ghc is used here to obtain include dirs.)

23 years ago[project @ 2001-01-12 17:45:30 by qrczak]
qrczak [Fri, 12 Jan 2001 17:45:30 +0000 (17:45 +0000)]
[project @ 2001-01-12 17:45:30 by qrczak]
Add resetErrno :: IO ()
Use it in Directory, before calling readdir.

23 years ago[project @ 2001-01-12 17:38:27 by simonmar]
simonmar [Fri, 12 Jan 2001 17:38:27 +0000 (17:38 +0000)]
[project @ 2001-01-12 17:38:27 by simonmar]
need Integral CClock too.

23 years ago[project @ 2001-01-12 17:04:00 by simonmar]
simonmar [Fri, 12 Jan 2001 17:04:00 +0000 (17:04 +0000)]
[project @ 2001-01-12 17:04:00 by simonmar]
Add a comment about the tzname[] stuff

23 years ago[project @ 2001-01-12 16:44:13 by simonmar]
simonmar [Fri, 12 Jan 2001 16:44:13 +0000 (16:44 +0000)]
[project @ 2001-01-12 16:44:13 by simonmar]
re-order some of the conditional compilation & make it a bit more generic.

23 years ago[project @ 2001-01-12 16:40:07 by simonmar]
simonmar [Fri, 12 Jan 2001 16:40:07 +0000 (16:40 +0000)]
[project @ 2001-01-12 16:40:07 by simonmar]
fix toUTCTime, fill in some of the conditionally compiled bits

23 years ago[project @ 2001-01-12 16:16:36 by simonmar]
simonmar [Fri, 12 Jan 2001 16:16:37 +0000 (16:16 +0000)]
[project @ 2001-01-12 16:16:36 by simonmar]
Time library FFI'd.

23 years ago[project @ 2001-01-12 15:48:56 by simonmar]
simonmar [Fri, 12 Jan 2001 15:48:56 +0000 (15:48 +0000)]
[project @ 2001-01-12 15:48:56 by simonmar]
get CTime from PrelCTypesISO

23 years ago[project @ 2001-01-12 15:48:36 by simonmar]
simonmar [Fri, 12 Jan 2001 15:48:36 +0000 (15:48 +0000)]
[project @ 2001-01-12 15:48:36 by simonmar]
remove dup definition of CTime

23 years ago[project @ 2001-01-12 15:48:09 by simonmar]
simonmar [Fri, 12 Jan 2001 15:48:09 +0000 (15:48 +0000)]
[project @ 2001-01-12 15:48:09 by simonmar]
I need an Integral CTime.  Numeric only won't do.

23 years ago[project @ 2001-01-12 12:36:28 by simonmar]
simonmar [Fri, 12 Jan 2001 12:36:28 +0000 (12:36 +0000)]
[project @ 2001-01-12 12:36:28 by simonmar]
Add conversion tests to arith011.

23 years ago[project @ 2001-01-12 12:35:54 by simonmar]
simonmar [Fri, 12 Jan 2001 12:35:54 +0000 (12:35 +0000)]
[project @ 2001-01-12 12:35:54 by simonmar]
fix some bogus conversions.

23 years ago[project @ 2001-01-12 12:06:24 by sewardj]
sewardj [Fri, 12 Jan 2001 12:06:24 +0000 (12:06 +0000)]
[project @ 2001-01-12 12:06:24 by sewardj]
Latest bug fixes.

23 years ago[project @ 2001-01-12 12:04:53 by sewardj]
sewardj [Fri, 12 Jan 2001 12:04:53 +0000 (12:04 +0000)]
[project @ 2001-01-12 12:04:53 by sewardj]
Hopefully sort out heap-stack movement for constructors/cases.

23 years ago[project @ 2001-01-12 11:36:24 by simonpj]
simonpj [Fri, 12 Jan 2001 11:36:24 +0000 (11:36 +0000)]
[project @ 2001-01-12 11:36:24 by simonpj]
Amazingly, SimplCore.simplifyExpr didn't call the occurrence
analyser, so expressions typed in at the prompt were being
simplified very weedily.  Ditto the LHS and RHS of RULES.

So SimplCore.simplExprGently now does the business.  It runs
the simplifier twice because one pass leaves tons of crud.

This doesn't fix any bugs but it is cleaner.

23 years ago[project @ 2001-01-12 11:04:45 by simonmar]
simonmar [Fri, 12 Jan 2001 11:04:45 +0000 (11:04 +0000)]
[project @ 2001-01-12 11:04:45 by simonmar]
- Incorporate static STG flags (just -flet-no-escape at the mo) into
  hsc_minusO_flags and hsc_minusNoO_flags.

- Fix -v to be equivalent to -v3 (it was wrongly -v2 before).

- Make -v3 output hsc's list of static flags.

23 years ago[project @ 2001-01-12 10:18:14 by sewardj]
sewardj [Fri, 12 Jan 2001 10:18:14 +0000 (10:18 +0000)]
[project @ 2001-01-12 10:18:14 by sewardj]
Split ByteCodeGen up into more manageable-sized pieces.

23 years ago[project @ 2001-01-12 07:44:50 by qrczak]
qrczak [Fri, 12 Jan 2001 07:44:50 +0000 (07:44 +0000)]
[project @ 2001-01-12 07:44:50 by qrczak]
Adapt to the Addr/Ptr changes.
Throw away mkFastSubStringFO, mkFastSubStringFO#, eqStrPrefixFO.

23 years ago[project @ 2001-01-11 22:04:39 by qrczak]
qrczak [Thu, 11 Jan 2001 22:04:39 +0000 (22:04 +0000)]
[project @ 2001-01-11 22:04:39 by qrczak]
Allow Ptr in foreign dynamic declarations

23 years ago[project @ 2001-01-11 19:50:19 by qrczak]
qrczak [Thu, 11 Jan 2001 19:50:19 +0000 (19:50 +0000)]
[project @ 2001-01-11 19:50:19 by qrczak]
Remove backslash-newline pairs in #-constructs.

23 years ago[project @ 2001-01-11 19:48:28 by qrczak]
qrczak [Thu, 11 Jan 2001 19:48:28 +0000 (19:48 +0000)]
[project @ 2001-01-11 19:48:28 by qrczak]
CChar is Num so NUL can be written as 0.

23 years ago[project @ 2001-01-11 17:51:02 by simonmar]
simonmar [Thu, 11 Jan 2001 17:51:02 +0000 (17:51 +0000)]
[project @ 2001-01-11 17:51:02 by simonmar]
oops, I broke getArgs.  Unbreak it, and remove an unused import while
I'm here.

23 years ago[project @ 2001-01-11 17:35:24 by simonmar]
simonmar [Thu, 11 Jan 2001 17:35:24 +0000 (17:35 +0000)]
[project @ 2001-01-11 17:35:24 by simonmar]
add missing -u symbols.

23 years ago[project @ 2001-01-11 17:33:32 by simonmar]
simonmar [Thu, 11 Jan 2001 17:33:32 +0000 (17:33 +0000)]
[project @ 2001-01-11 17:33:32 by simonmar]
s/PrelAddr/Addr

23 years ago[project @ 2001-01-11 17:25:56 by simonmar]
simonmar [Thu, 11 Jan 2001 17:25:59 +0000 (17:25 +0000)]
[project @ 2001-01-11 17:25:56 by simonmar]
Re-organisation of ghc/lib/std and hslibs/lang
----------------------------------------------

In brief: move deprecated features out of ghc/lib/std and into
hslibs/lang, move new FFI libraries into ghc/lib/std and start
using them.

- foreign import may now return an unboxed type (this was
  advertised to work before, but in fact didn't).  Subsequent
  cleanups in PrelInt/PrelWord.

- Ptr is now defined in ghc/lib/std/PrelPtr.lhs.  Ptr is no
  longer a newtype of Addr, it is defined directly in terms of
  Addr#.

- PrelAddr has disappeared from ghc/lib/std, all uses of Addr in
  ghc/lib/std have been replaced with Ptr.  The definitions of
  Addr has been moved to hslibs/lang/Addr.lhs, as has
  lots of other Addr-related stuff.

- ForeignObj has been removed from ghc/lib/std, and replaced with
  ForeignPtr.  The definition of ForeignObj has been moved to
  hslibs/lang/ForeignObj.lhs.

- Most of the new FFI has been moved into ghc/lib/std in the form
  of modules PrelMarshalAlloc, PrelCString, PrelCError,
  PrelMarshalError, PrelMarshalArray, PrelMarshalUtils,
  PrelCTypes, PrelCTypesISO, and PrelStorable.  The corresponding
  modules in hslibs/lang simply re-export the contents of these
  modules.

- PrelPosixTypes defines a few POSIX types (CMode == mode_t,
  etc.)

- PrelCError changed to access errno using foreign label and peek
  (the POSIX book I have says that errno is guaranteed to be an
  extern int, so this should be OK until I get around to making
  errno thread-safe).

- Hacked the macros that generate the code for CTypes and
  CTypesISO to generate much less code
  (ghc/lib/std/cbits/CTypes.h).

- RtsAPI is now a bit more honest when it comes to building heap
  objects (it uses the correct constructors).

- the Bits class and related stuff has been moved to ghc/lib/std
  (it was simpler this way).

- Directory and System have been converted to use the new FFI.

23 years ago[project @ 2001-01-11 14:09:50 by simonpj]
simonpj [Thu, 11 Jan 2001 14:09:50 +0000 (14:09 +0000)]
[project @ 2001-01-11 14:09:50 by simonpj]
Add debug print for rule firings; controlled by -ddump-inlinings.

Also, make -ddump-inlinings work without -DDEBUG is off.
It's jolly useful, and it's tiresome to have to tell
people to rebuild their compiler.

23 years ago[project @ 2001-01-11 13:58:05 by simonpj]
simonpj [Thu, 11 Jan 2001 13:58:05 +0000 (13:58 +0000)]
[project @ 2001-01-11 13:58:05 by simonpj]
Fix a grotesque bug in the HsCore.pprUfExpr
The expression

((\x -> f x y) a b)

printed as

(\x -> f x y a b)

which in turn caused any importing module to
behave most oddly.

This didn't show up before, because such expressions don't
happen much (they are simplified).  But one showed up in a
RULE (which happens to be simplified only very gently), and
that tickled this bug.

23 years ago[project @ 2001-01-11 07:04:16 by qrczak]
qrczak [Thu, 11 Jan 2001 07:04:17 +0000 (07:04 +0000)]
[project @ 2001-01-11 07:04:16 by qrczak]
Change the representation of IOException: add optional filename.

23 years ago[project @ 2001-01-10 17:19:01 by sewardj]
sewardj [Wed, 10 Jan 2001 17:21:18 +0000 (17:21 +0000)]
[project @ 2001-01-10 17:19:01 by sewardj]
Today's interpreter bug fixes: FP stuff, and unpacking constrs onto stack.

23 years ago[project @ 2001-01-10 16:28:15 by qrczak]
qrczak [Wed, 10 Jan 2001 16:28:15 +0000 (16:28 +0000)]
[project @ 2001-01-10 16:28:15 by qrczak]
Remove CError.throwCError. Export the new function errnoToIOError.

Add a missing colon in a string inside IOException formed from
the error-specific part and optional filename. The IOException
representation has not changed yet, but IMHO the filename should
be kept separate.

Correctly handle user errors in IO.ioeGet* functions like other
IO errors.

Let fail :: String -> IO a throw a user error instead of invoking error
(Haskell98 is ambiguous about that and IMHO it should be this way;
this is also what nhc does).

23 years ago[project @ 2001-01-10 11:50:43 by rrt]
rrt [Wed, 10 Jan 2001 11:50:43 +0000 (11:50 +0000)]
[project @ 2001-01-10 11:50:43 by rrt]
Improved Windows installation instructions, thanks to a test drive by Andrew
Tolmach.

23 years ago[project @ 2001-01-09 17:43:57 by rrt]
rrt [Tue, 9 Jan 2001 17:43:57 +0000 (17:43 +0000)]
[project @ 2001-01-09 17:43:57 by rrt]
Add cMkDLL for --mk-dll switch.

23 years ago[project @ 2001-01-09 17:36:21 by sewardj]
sewardj [Tue, 9 Jan 2001 17:36:41 +0000 (17:36 +0000)]
[project @ 2001-01-09 17:36:21 by sewardj]
Various bug fixes for the interpreter/byte-code-gen combination.

23 years ago[project @ 2001-01-09 17:16:35 by rrt]
rrt [Tue, 9 Jan 2001 17:16:36 +0000 (17:16 +0000)]
[project @ 2001-01-09 17:16:35 by rrt]
Add --mk-dll.

23 years ago[project @ 2001-01-09 02:04:25 by chak]
chak [Tue, 9 Jan 2001 02:04:25 +0000 (02:04 +0000)]
[project @ 2001-01-09 02:04:25 by chak]
Due to problems with the pcl-cvs mode, I missed checking in these files, which
made my last commit break the build.  Sorry about that.

(Is anybody else using pcl-cvs v2.9.9 and getting strange parse errors when
updating from cvs.haskell.org?)

23 years ago[project @ 2001-01-08 12:58:45 by chak]
chak [Mon, 8 Jan 2001 12:58:45 +0000 (12:58 +0000)]
[project @ 2001-01-08 12:58:45 by chak]
Revision of Marcin's QError module

* I think, there was a rough consensus that Marcin's module provides the
  right kind of interface for handling "errno"s

* Malcolm preferred an enumeration, but Marcin made a convincing argument
  that this doesn't go well with architecture-dependent variations of "errno"

* Recoded the hsc magic into autoconf magic

* In hsc files, errno constants can be accessed directly; to provide access
  for ordinary Haskell programmer, constants for a range of common symbols are
  provided (their values are determined by configure)

* Introduced an `Errno' newtype to increase type safety

* renamed the throwIfXXX functions to throwErrnoIfXXX to have the original
  names available in the language independent MarshalError

* FIXME: We need a thread local getErrno in the RTS!

(It all compiles, but is still to be tested.)

23 years ago[project @ 2001-01-08 12:31:34 by rrt]
rrt [Mon, 8 Jan 2001 12:31:34 +0000 (12:31 +0000)]
[project @ 2001-01-08 12:31:34 by rrt]
Add -dynamic and make -static always the default.

23 years ago[project @ 2001-01-06 12:52:58 by panne]
panne [Sat, 6 Jan 2001 12:52:58 +0000 (12:52 +0000)]
[project @ 2001-01-06 12:52:58 by panne]
* Tab -> spaces
* Moved test for 4.11 to the correct place and revert Reuben's last fix.

23 years ago[project @ 2001-01-06 12:45:13 by panne]
panne [Sat, 6 Jan 2001 12:45:13 +0000 (12:45 +0000)]
[project @ 2001-01-06 12:45:13 by panne]
Make ghc/hslibs instead of happy the default projects to build/install
again.

23 years ago[project @ 2001-01-05 17:57:07 by rrt]
rrt [Fri, 5 Jan 2001 17:57:07 +0000 (17:57 +0000)]
[project @ 2001-01-05 17:57:07 by rrt]
Added some -Ks to keep 4.08 happy when compiling the compiler.

23 years ago[project @ 2001-01-05 17:56:23 by rrt]
rrt [Fri, 5 Jan 2001 17:56:23 +0000 (17:56 +0000)]
[project @ 2001-01-05 17:56:23 by rrt]
Windows fixes.

23 years ago[project @ 2001-01-05 16:06:01 by simonmar]
simonmar [Fri, 5 Jan 2001 16:06:01 +0000 (16:06 +0000)]
[project @ 2001-01-05 16:06:01 by simonmar]
Add some constraints to the tryRhsTyLam transformation to prevent it
floating out expressions of unlifted type.

23 years ago[project @ 2001-01-05 15:24:28 by sewardj]
sewardj [Fri, 5 Jan 2001 15:24:28 +0000 (15:24 +0000)]
[project @ 2001-01-05 15:24:28 by sewardj]
Various bug fixes.

23 years ago[project @ 2001-01-05 15:23:32 by sewardj]
sewardj [Fri, 5 Jan 2001 15:23:32 +0000 (15:23 +0000)]
[project @ 2001-01-05 15:23:32 by sewardj]
Various bug fixes, and implementation of string literals.

23 years ago[project @ 2001-01-04 19:43:07 by qrczak]
qrczak [Thu, 4 Jan 2001 19:43:07 +0000 (19:43 +0000)]
[project @ 2001-01-04 19:43:07 by qrczak]
Added --version parameter.
(QForeign must known whether to replace ghc's hsc2hs with its own.)

23 years ago[project @ 2001-01-04 16:22:55 by simonmar]
simonmar [Thu, 4 Jan 2001 16:22:55 +0000 (16:22 +0000)]
[project @ 2001-01-04 16:22:55 by simonmar]
add suffix rule for hsc2hs

23 years ago[project @ 2001-01-04 16:22:01 by simonmar]
simonmar [Thu, 4 Jan 2001 16:22:01 +0000 (16:22 +0000)]
[project @ 2001-01-04 16:22:01 by simonmar]
Add path to hsc2hs

23 years ago[project @ 2001-01-04 13:18:14 by simonmar]
simonmar [Thu, 4 Jan 2001 13:18:14 +0000 (13:18 +0000)]
[project @ 2001-01-04 13:18:14 by simonmar]
exit(1) in the case of a parse error.

23 years ago[project @ 2001-01-04 11:05:54 by qrczak]
qrczak [Thu, 4 Jan 2001 11:05:54 +0000 (11:05 +0000)]
[project @ 2001-01-04 11:05:54 by qrczak]
Fix bogus extra_libraries for rts (s/\[ "" \]/[]/).

23 years ago[project @ 2001-01-04 10:48:46 by simonmar]
simonmar [Thu, 4 Jan 2001 10:48:46 +0000 (10:48 +0000)]
[project @ 2001-01-04 10:48:46 by simonmar]
Fix the test for epilogue junk, and change it into a warning.