rrt [Wed, 6 Jun 2001 10:33:35 +0000 (10:33 +0000)]
[project @ 2001-06-06 10:33:35 by rrt]
Say that building packages as DLLs is now no longer supported, but may still
work.
simonmar [Wed, 6 Jun 2001 09:36:02 +0000 (09:36 +0000)]
[project @ 2001-06-06 09:36:02 by simonmar]
Note in the documentation for :load that you can't load a package
module, and describe how we decide what the context is set to after a
:load.
simonmar [Tue, 5 Jun 2001 16:45:57 +0000 (16:45 +0000)]
[project @ 2001-06-05 16:45:57 by simonmar]
Clean up the SRCS story. This still won't fix the problem with
GhcLibsWithReadline=NO, but it's headed in the right direction.
sewardj [Tue, 5 Jun 2001 16:21:25 +0000 (16:21 +0000)]
[project @ 2001-06-05 16:21:25 by sewardj]
Make c_read visible on Win32.
sewardj [Tue, 5 Jun 2001 14:09:45 +0000 (14:09 +0000)]
[project @ 2001-06-05 14:09:45 by sewardj]
Updates for 5.01.
sewardj [Tue, 5 Jun 2001 10:53:36 +0000 (10:53 +0000)]
[project @ 2001-06-05 10:53:36 by sewardj]
Calculate the correct set of modules to link in the case of upsweep
partial failure.
MERGE INTO 5.00.2
sewardj [Tue, 5 Jun 2001 10:31:57 +0000 (10:31 +0000)]
[project @ 2001-06-05 10:31:57 by sewardj]
Improve instance Outputable Linkable (purely cosmetic).
simonpj [Tue, 5 Jun 2001 10:09:33 +0000 (10:09 +0000)]
[project @ 2001-06-05 10:09:33 by simonpj]
ghc/rts/gmp/configure hangs up altogether on this
rm command:
rm -f mpn/${tmp_fn}.[Ssc] mpn/${tmp_fn}.asm
I added lots of print statements to show progress
(hence the more verbose output) and found, I think,
that expanding the [Ssc] fixes the problem.
simonpj [Tue, 5 Jun 2001 09:30:20 +0000 (09:30 +0000)]
[project @ 2001-06-05 09:30:20 by simonpj]
Add str002 (recursive newtype test)
simonpj [Mon, 4 Jun 2001 16:49:15 +0000 (16:49 +0000)]
[project @ 2001-06-04 16:49:15 by simonpj]
----------------------------------
Make exprArity give the right answer
----------------------------------
MERGE INTO 5.00.2
This fixes a fairly long-standing bug in exprArity, dating from
the time we allowed arguments to be non-atoms. If f had arity
2, it was saying that
f (factorial x)
had arity 2, as well, which is plain wrong.
simonpj [Mon, 4 Jun 2001 16:47:06 +0000 (16:47 +0000)]
[project @ 2001-06-04 16:47:06 by simonpj]
----------------------------------
Fix an existential-constructor bug
----------------------------------
MERGE INTO 5.00.2
This fixes a long-standing bug that made the strictness
analyser go into a loop if it met a recursive newtype:
newtype Void = MkVoid Void
simonpj [Mon, 4 Jun 2001 16:46:00 +0000 (16:46 +0000)]
[project @ 2001-06-04 16:46:00 by simonpj]
Import wibbles
simonmar [Mon, 4 Jun 2001 16:34:19 +0000 (16:34 +0000)]
[project @ 2001-06-04 16:34:19 by simonmar]
Add test for Manuel's finalizer bug.
simonmar [Mon, 4 Jun 2001 16:26:54 +0000 (16:26 +0000)]
[project @ 2001-06-04 16:26:54 by simonmar]
Try doing a major GC before declaring that we're deadlocked, since
there might be finalizers waiting to run that can unblock the system.
Noticed by: Manuel.
qrczak [Mon, 4 Jun 2001 15:42:30 +0000 (15:42 +0000)]
[project @ 2001-06-04 15:42:30 by qrczak]
Remove unused files.
simonmar [Mon, 4 Jun 2001 14:51:15 +0000 (14:51 +0000)]
[project @ 2001-06-04 14:51:15 by simonmar]
Hmm, thought I removed this file. Anyway, it's now been replaced by
PrelPosix.
simonpj [Mon, 4 Jun 2001 13:40:39 +0000 (13:40 +0000)]
[project @ 2001-06-04 13:40:39 by simonpj]
Add storage mgt doc
qrczak [Mon, 4 Jun 2001 06:20:35 +0000 (06:20 +0000)]
[project @ 2001-06-04 06:20:35 by qrczak]
Don't use exitWith where exceptions are treated as errors.
qrczak [Sat, 2 Jun 2001 09:45:51 +0000 (09:45 +0000)]
[project @ 2001-06-02 09:45:51 by qrczak]
Don't panic on ExitException.
apt [Fri, 1 Jun 2001 17:14:08 +0000 (17:14 +0000)]
[project @ 2001-06-01 17:14:07 by apt]
added support for emiting external core format
sewardj [Fri, 1 Jun 2001 14:33:02 +0000 (14:33 +0000)]
[project @ 2001-06-01 14:33:01 by sewardj]
More tracking of IO lib changes.
sewardj [Fri, 1 Jun 2001 13:07:36 +0000 (13:07 +0000)]
[project @ 2001-06-01 13:07:35 by sewardj]
Track recent changes to lib/std for mingw. Mostly, make all seeked-on
file handles be in binary mode.
sewardj [Fri, 1 Jun 2001 13:06:01 +0000 (13:06 +0000)]
[project @ 2001-06-01 13:06:01 by sewardj]
More fixups to make the new IO lib work on mingw.
* Outlaw changing the file position on a text-mode file. After
consideration of the mingw translation semantics I cannot see
how to make a correct implementation.
* Add a field to Handle__ to say whether or not the handle is in
binary mode.
* Restrict seek operations on Handles to those in binary mode.
* Export hSetBinaryMode from IO.lhs.
sof [Thu, 31 May 2001 17:13:30 +0000 (17:13 +0000)]
[project @ 2001-05-31 17:13:30 by sof]
perl config: Remove bogus test I introduced
simonmar [Thu, 31 May 2001 13:50:44 +0000 (13:50 +0000)]
[project @ 2001-05-31 13:50:44 by simonmar]
correct mistake in the documentation of index<blah>Array# and
index<blah>OffAddr#. The documentation on primitives is all wildly
out of date in other ways, though.
simonmar [Thu, 31 May 2001 12:40:59 +0000 (12:40 +0000)]
[project @ 2001-05-31 12:40:59 by simonmar]
- document -hidir option
- move -ohi documentation to "redirecting output" section
- remove duplicate -ohi in the flags table.
- add a warning about -ohi confusing the recompilation checker.
simonmar [Thu, 31 May 2001 11:32:25 +0000 (11:32 +0000)]
[project @ 2001-05-31 11:32:25 by simonmar]
- add -hidir flag to control the destination for .hi files when doing
multiple compilations (matches -odir).
- change the ml_hi_file component of ModuleLocation from Maybe FilePath to
FilePath. We never made use of its Maybeness.
- clear out some unused code from the Hsc phase of run_phase and clean up
a bit. Fix a bug with the -ohi option at the same time (I don't think
it works in 5.xx.x before this patch).
simonmar [Thu, 31 May 2001 11:25:51 +0000 (11:25 +0000)]
[project @ 2001-05-31 11:25:51 by simonmar]
If we can't read the old interface file for some reason (eg. it isn't
there, or it has the wrong version), then output the error if
-ddump-hi-diffs is on. It used to be part of -ddump-rn-trace, but
-ddump-hi-diffs seems more logical, since it covers all the other
information about why a module is being recompiled.
simonpj [Thu, 31 May 2001 11:10:30 +0000 (11:10 +0000)]
[project @ 2001-05-31 11:10:30 by simonpj]
More echoes; I have no idea why we get stuck, but sometimes we do
simonmar [Thu, 31 May 2001 10:59:14 +0000 (10:59 +0000)]
[project @ 2001-05-31 10:59:14 by simonmar]
Fix bug in the GC info for an stg_ap_1_upd closure (it was one word too short).
sewardj [Thu, 31 May 2001 10:32:28 +0000 (10:32 +0000)]
[project @ 2001-05-31 10:32:28 by sewardj]
Various mingw fixes.
simonpj [Thu, 31 May 2001 10:19:49 +0000 (10:19 +0000)]
[project @ 2001-05-31 10:19:49 by simonpj]
Add a few more echos, to avoid anxiety in the long pause when looking for files
simonmar [Thu, 31 May 2001 10:03:35 +0000 (10:03 +0000)]
[project @ 2001-05-31 10:03:35 by simonmar]
- don't put a TTY into RAW mode if the handle is an output-only handle (so
if you set stdout to NoBuffering and leave stdin as it is, you don't
lose TTY processing on stdin).
- some cleanups.
simonmar [Thu, 31 May 2001 10:01:57 +0000 (10:01 +0000)]
[project @ 2001-05-31 10:01:57 by simonmar]
update expected output
sewardj [Thu, 31 May 2001 09:48:54 +0000 (09:48 +0000)]
[project @ 2001-05-31 09:48:54 by sewardj]
Avoid use of /dev/null on mingw.
simonpj [Thu, 31 May 2001 09:46:21 +0000 (09:46 +0000)]
[project @ 2001-05-31 09:46:21 by simonpj]
----------------------------------
Fix an existential-constructor bug
----------------------------------
DON'T MERGE!
This fixes a bug I introduced in my
tidying up for scoped type variables.
You'll get bizarre behaviour from the HEAD if
you use existentials, until you add this fix!
simonmar [Thu, 31 May 2001 09:37:23 +0000 (09:37 +0000)]
[project @ 2001-05-31 09:37:23 by simonmar]
Clarify the situation with GHCi object files, and add instructions for
building one from a .a file.
simonmar [Thu, 31 May 2001 09:28:41 +0000 (09:28 +0000)]
[project @ 2001-05-31 09:28:41 by simonmar]
markup wibble
simonmar [Thu, 31 May 2001 09:28:22 +0000 (09:28 +0000)]
[project @ 2001-05-31 09:28:22 by simonmar]
markup fixes
simonmar [Thu, 31 May 2001 09:18:34 +0000 (09:18 +0000)]
[project @ 2001-05-31 09:18:34 by simonmar]
Clarify where we look for libraries named on the command line (-lfoo),
and mention LD_LIBRARY_PATH.
The implementation is still wrong, however.
rrt [Thu, 31 May 2001 09:00:28 +0000 (09:00 +0000)]
[project @ 2001-05-31 09:00:28 by rrt]
Add -mwin32 -mno-cygwin to CPPFLAGS.
sewardj [Wed, 30 May 2001 16:39:48 +0000 (16:39 +0000)]
[project @ 2001-05-30 16:39:48 by sewardj]
Give correct output for mingw.
sewardj [Wed, 30 May 2001 16:39:22 +0000 (16:39 +0000)]
[project @ 2001-05-30 16:39:22 by sewardj]
Initial mods to make the Glorious New IO Library (tm) work on mingw.
Not everything works, but is compilable, and off to a good start.
simonmar [Wed, 30 May 2001 13:20:11 +0000 (13:20 +0000)]
[project @ 2001-05-30 13:20:11 by simonmar]
Fix a difference between the NCG implementation of the UPD_CAF() macro
and the C version. I think the C version was changed recently but the
NCG version never caught up. Fixes a crash in GHCi with NCG compiled
code.
simonmar [Wed, 30 May 2001 11:09:12 +0000 (11:09 +0000)]
[project @ 2001-05-30 11:09:12 by simonmar]
Correct the instructions for compiling a debugging RTS (-optc isn't
needed before options in GhcRtsCcOpts any more).
sof [Tue, 29 May 2001 17:53:59 +0000 (17:53 +0000)]
[project @ 2001-05-29 17:53:59 by sof]
missing whitespaces caused touch/rm to fail
simonpj [Tue, 29 May 2001 15:37:16 +0000 (15:37 +0000)]
[project @ 2001-05-29 15:37:16 by simonpj]
Stuff about scoped type variables
rrt [Tue, 29 May 2001 11:39:00 +0000 (11:39 +0000)]
[project @ 2001-05-29 11:39:00 by rrt]
Don't build lndir on mingwin, which doesn't have symlinks.
rrt [Tue, 29 May 2001 11:38:14 +0000 (11:38 +0000)]
[project @ 2001-05-29 11:38:14 by rrt]
Reimplement getCPUTime in Haskell for Windows.
sof [Tue, 29 May 2001 01:07:00 +0000 (01:07 +0000)]
[project @ 2001-05-29 01:07:00 by sof]
Deal with nested comments (HDirect sources showed up this bug)
qrczak [Mon, 28 May 2001 17:34:24 +0000 (17:34 +0000)]
[project @ 2001-05-28 17:34:24 by qrczak]
Fix removing temporary files.
simonmar [Mon, 28 May 2001 13:57:19 +0000 (13:57 +0000)]
[project @ 2001-05-28 13:57:19 by simonmar]
When we auto-load a module because the user typed a qualified name at
the prompt, we better not auto-load a home interface (because we won't
have the code to go with it).
So, introduce a new constructor in the WhereFrom datatype, namely
ImportByCmdLine for these auto-imports, and make findAndReadIface fail
if it tries to load a home interface by this route.
ToDo: GHCi should *never* demand-load a home interface under any
circumstances, but we don't have an ASSERT for this yet.
simonmar [Mon, 28 May 2001 12:56:35 +0000 (12:56 +0000)]
[project @ 2001-05-28 12:56:35 by simonmar]
Change the GHCi monad from type
GHCiState -> IO (GHCiState, a)
to
IORef GHCiState -> IO a
to avoid losing recent changes to the state when we receive an
exception (which would normally be harmless, except that the state
isn't purely functional: it must match some state kept by the RTS's
dynamic linker). Asynchonous exceptions could still cause us some
difficulty.
simonpj [Mon, 28 May 2001 11:42:56 +0000 (11:42 +0000)]
[project @ 2001-05-28 11:42:56 by simonpj]
Wibble for scoped type variables
sof [Mon, 28 May 2001 07:13:54 +0000 (07:13 +0000)]
[project @ 2001-05-28 07:13:54 by sof]
get rid of some more cpp warnings
sof [Mon, 28 May 2001 05:52:55 +0000 (05:52 +0000)]
[project @ 2001-05-28 05:52:55 by sof]
de-ramble previous commit
sof [Mon, 28 May 2001 03:31:19 +0000 (03:31 +0000)]
[project @ 2001-05-28 03:31:19 by sof]
Misc minor changes to integrate GHC a little bit better on Win32 platforms.
Specifically, the commit does the following (assuming you've configured
fptools/ with the option --enable-minimal-unix-deps on a mingw platform):
* when GHC uses System.system, it expects an MSDOS command processor to
interpret the command. This implies that 'normal' UNIX shell utils will
no longer be used, but substituted with MSDOS equivalents.
* the GHC backend relies on gcc and perl to handle .s/.hc/.o/.a files. GHC
will now assume that these all live in one 'tool directory', making it
easier to bundle these backend tools with GHC.
The upshot of these changes is that it is now possible for the user not to
have to install cygwin prior to installing GHC (as the upcoming ghc-win32
binary release will prove).
sof [Mon, 28 May 2001 03:17:03 +0000 (03:17 +0000)]
[project @ 2001-05-28 03:17:03 by sof]
Avoid the use of Posix when compiling for target i386-unknown-mingw32
sof [Sun, 27 May 2001 23:55:07 +0000 (23:55 +0000)]
[project @ 2001-05-27 23:55:07 by sof]
Added GHC_TOUCHY_DIR and GHC_TOUCHY
sof [Sun, 27 May 2001 23:53:47 +0000 (23:53 +0000)]
[project @ 2001-05-27 23:53:47 by sof]
New configure script option, --enable-minimal-unix-deps, a Win32-specific
option which lets you build a compiler that doesn't depend on cygwin tools
to run. Well, you still need tools such as gcc and perl in the backend, but
these don't have to be cygwin ports.
sof [Sun, 27 May 2001 06:08:24 +0000 (06:08 +0000)]
[project @ 2001-05-27 06:08:24 by sof]
wibble
sof [Sun, 27 May 2001 05:00:08 +0000 (05:00 +0000)]
[project @ 2001-05-27 05:00:08 by sof]
'flex' or 'lex' is required to compile up fptools/ (e.g., reqd in
glafp-utils/sgmlverb). autoconf's standard macro AC_PROG_LEX just
defaults to 'lex' if 'flex' isn't found, but doesn't actually
check whether 'lex' is available along PATH.
Added AC_PROG_LEX_STRICT, which extends AC_PROG_LEX by checking
for the presence of 'lex' if 'flex' isn't found. It bails
out with an error message if 'lex' cannot be found.
sof [Fri, 25 May 2001 18:35:29 +0000 (18:35 +0000)]
[project @ 2001-05-25 18:35:29 by sof]
wibble - silence CPP warning
sof [Fri, 25 May 2001 18:33:46 +0000 (18:33 +0000)]
[project @ 2001-05-25 18:33:46 by sof]
wibble - silence CPP warnings
sof [Fri, 25 May 2001 18:32:51 +0000 (18:32 +0000)]
[project @ 2001-05-25 18:32:51 by sof]
wibble - drop a ? from a fprintf format string to avoid having it look like a trigraph seq might be present
dsyme [Fri, 25 May 2001 16:14:02 +0000 (16:14 +0000)]
[project @ 2001-05-25 16:14:02 by dsyme]
Minor tweaks to IlxGen backend
simonmar [Fri, 25 May 2001 13:56:25 +0000 (13:56 +0000)]
[project @ 2001-05-25 13:56:25 by simonmar]
Check for re_search_2() when checking whether libc has GNU regex.
This is a temporary fix until we get rid of GNU regex altogether and
do something more portable.
*** MAYBE MERGE ***
simonmar [Fri, 25 May 2001 13:50:39 +0000 (13:50 +0000)]
[project @ 2001-05-25 13:50:39 by simonmar]
NetBSD is ELF only now.
*** MAYBE MERGE (and the last revision) ***
simonmar [Fri, 25 May 2001 13:49:35 +0000 (13:49 +0000)]
[project @ 2001-05-25 13:49:35 by simonmar]
we're only supporting NetBSD/ELF now, not a.out (Lennart's suggestion)
simonpj [Fri, 25 May 2001 12:09:43 +0000 (12:09 +0000)]
[project @ 2001-05-25 12:09:43 by simonpj]
wibble
simonmar [Fri, 25 May 2001 10:53:59 +0000 (10:53 +0000)]
[project @ 2001-05-25 10:53:59 by simonmar]
Add -lm to HC_BOOT_LIBS
*** MAYBE MERGE ***
simonmar [Fri, 25 May 2001 10:50:27 +0000 (10:50 +0000)]
[project @ 2001-05-25 10:50:27 by simonmar]
Link with HStext_cbits in case we need regex (bug from Lennart).
*** MAYBE MERGE ***
simonmar [Fri, 25 May 2001 10:31:08 +0000 (10:31 +0000)]
[project @ 2001-05-25 10:31:08 by simonmar]
netbsd_aout => netbsdaout
simonmar [Fri, 25 May 2001 10:30:53 +0000 (10:30 +0000)]
[project @ 2001-05-25 10:30:53 by simonmar]
NetBSD <= 1.4 is a.out, apparently
simonmar [Fri, 25 May 2001 10:28:58 +0000 (10:28 +0000)]
[project @ 2001-05-25 10:28:58 by simonmar]
NetBSD is ELF by default.
simonpj [Fri, 25 May 2001 08:55:04 +0000 (08:55 +0000)]
[project @ 2001-05-25 08:55:03 by simonpj]
-------------------------------------
Wibbles to Don's runtime-types commit
-------------------------------------
There was an upside down predicate which utterly broke the compiler.
While I was about it
* I changed the global flag to
opt_RuntimeTypes
with command line option
-fruntime-types (was -fkeep-stg-types)
* I moved isRuntimeArg, isRuntimeVar to CoreSyn
sof [Fri, 25 May 2001 01:15:36 +0000 (01:15 +0000)]
[project @ 2001-05-25 01:15:36 by sof]
Conditionally descend into touchy/
sof [Fri, 25 May 2001 01:15:07 +0000 (01:15 +0000)]
[project @ 2001-05-25 01:15:07 by sof]
'touch' replacement (for use under Win32 in a cygwin-free setup only)
dsyme [Thu, 24 May 2001 15:10:20 +0000 (15:10 +0000)]
[project @ 2001-05-24 15:10:19 by dsyme]
Various changes for ILX backend and type-passing compilers, code reviewed by SimonPJ
simonpj [Thu, 24 May 2001 15:01:33 +0000 (15:01 +0000)]
[project @ 2001-05-24 15:01:33 by simonpj]
wibble
simonpj [Thu, 24 May 2001 13:59:12 +0000 (13:59 +0000)]
[project @ 2001-05-24 13:59:09 by simonpj]
------------------------------------------------------
More stuff towards generalising 'foreign' declarations
------------------------------------------------------
This is the second step towards generalising 'foreign' declarations to
handle langauges other than C. Now I can handle
foreign import dotnet type T
foreign import dotnet "void Foo.Baz.f( T )" f :: T -> IO ()
** WARNING **
I believe that all the foreign stuff for C should
work exactly as before, but I have not tested it
thoroughly. Sven, Manuel, Marcin: please give it a
whirl and compare old with new output.
Lots of fiddling around with data types. The main changes are
* HsDecls.lhs
The ForeignDecl type and its friends
Note also the ForeignType constructor to TyClDecl
* ForeignCall.lhs
Here's where the stuff that survives right through
compilation lives
* TcForeign.lhs DsForeign.lhs
Substantial changes driven by the new data types
* Parser.y ParseIface.y RnSource
Just what you'd expect
simonpj [Thu, 24 May 2001 13:49:32 +0000 (13:49 +0000)]
[project @ 2001-05-24 13:49:32 by simonpj]
Tiny delta towards .NET
simonmar [Thu, 24 May 2001 10:46:08 +0000 (10:46 +0000)]
[project @ 2001-05-24 10:46:08 by simonmar]
Fixes for the hsc2hs rules.
simonmar [Thu, 24 May 2001 10:41:13 +0000 (10:41 +0000)]
[project @ 2001-05-24 10:41:13 by simonmar]
Make hGetContents work on DuplexHandles, and some small cleanups.
simonpj [Thu, 24 May 2001 06:49:28 +0000 (06:49 +0000)]
[project @ 2001-05-24 06:49:28 by simonpj]
Import assertPanic to support the ASSERT
sewardj [Wed, 23 May 2001 16:47:09 +0000 (16:47 +0000)]
[project @ 2001-05-23 16:47:09 by sewardj]
Add {-# OPTION -fvia-C #-} so that the compiler can compile itself
in --make mode (yes, really!)
sewardj [Wed, 23 May 2001 15:52:12 +0000 (15:52 +0000)]
[project @ 2001-05-23 15:52:12 by sewardj]
-lreadline --> readline
simonmar [Wed, 23 May 2001 10:26:14 +0000 (10:26 +0000)]
[project @ 2001-05-23 10:26:14 by simonmar]
- hack to make getArgs return [] and getProgName return
"<interactive>" under GHCi.
- use IO.stdout and IO.stderr instead of PrelHandle for the
automatic flushing.
simonmar [Wed, 23 May 2001 09:59:18 +0000 (09:59 +0000)]
[project @ 2001-05-23 09:59:18 by simonmar]
Don't catch ExitException at the top level, just re-throw it.
rrt [Wed, 23 May 2001 09:41:34 +0000 (09:41 +0000)]
[project @ 2001-05-23 09:41:34 by rrt]
Add -mwin32 -mno-cygwin to CPPFLAGS on Windows.
simonmar [Wed, 23 May 2001 09:28:44 +0000 (09:28 +0000)]
[project @ 2001-05-23 09:28:44 by simonmar]
Guess I forgot to commit this file as part of the exitWith changes
yesterday. Anyway, commit my version now (no functional changes).
sof [Tue, 22 May 2001 20:49:47 +0000 (20:49 +0000)]
[project @ 2001-05-22 20:49:47 by sof]
wibble
qrczak [Tue, 22 May 2001 19:25:49 +0000 (19:25 +0000)]
[project @ 2001-05-22 19:25:49 by qrczak]
Remove module dependency loop: don't import PrelIOBase in PrelRead.
readIO is in PrelIO, remove it from PrelRead. Derive instance Read
BufferMode automatically.
sof [Tue, 22 May 2001 19:07:39 +0000 (19:07 +0000)]
[project @ 2001-05-22 19:07:39 by sof]
Added the -h (header) option; it prefixes the unlit'ed output with a pair
of line pragmas, e.g.,
foo$ unlit -h foo.lhs foo.lhs - | head -3
# 1 "foo.lhs"
{-# LINE 1 "foo.lhs" #-}
module Foo where
foo$
Using -h saves the main user of 'unlit', GHC, from having to do the
prepending of line pragmas via shellular magic. (=> GHC is able to
drop the dependency on there being a UNIX-like shell underneath when
using System.system).
qrczak [Tue, 22 May 2001 16:45:41 +0000 (16:45 +0000)]
[project @ 2001-05-22 16:45:41 by qrczak]
Fix small callconv-related import mismatches etc.
simonmar [Tue, 22 May 2001 15:58:57 +0000 (15:58 +0000)]
[project @ 2001-05-22 15:58:57 by simonmar]
front panel wibble.
simonmar [Tue, 22 May 2001 15:06:47 +0000 (15:06 +0000)]
[project @ 2001-05-22 15:06:47 by simonmar]
- System.exitWith now raises a (new) exception,
ExitException ExitCode.
- While I was there I cleaned up System.getArgs and
System.getProgName, using foriegn label and removing progargs.c
simonmar [Tue, 22 May 2001 14:48:28 +0000 (14:48 +0000)]
[project @ 2001-05-22 14:48:28 by simonmar]
Need to make ghc/utils in the second stage before we clean in
ghc/lib/std, because hsc2hs is needed to boot ghc/lib/std, but the
libraries are needed to build hsc2hs itself.
*** MERGE ***
rrt [Tue, 22 May 2001 14:10:25 +0000 (14:10 +0000)]
[project @ 2001-05-22 14:10:25 by rrt]
Merge from 4.08 branch.
simonpj [Tue, 22 May 2001 13:43:19 +0000 (13:43 +0000)]
[project @ 2001-05-22 13:43:14 by simonpj]
-------------------------------------------
Towards generalising 'foreign' declarations
-------------------------------------------
This is a first step towards generalising 'foreign' declarations to
handle langauges other than C. Quite a lot of files are touched,
but nothing has really changed. Everything should work exactly as
before.
But please be on your guard for ccall-related bugs.
Main things
Basic data types: ForeignCall.lhs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Remove absCSyn/CallConv.lhs
* Add prelude/ForeignCall.lhs. This defines the ForeignCall
type and its variants
* Define ForeignCall.Safety to say whether a call is unsafe
or not (was just a boolean). Lots of consequential chuffing.
* Remove all CCall stuff from PrimOp, and put it in ForeignCall
Take CCallOp out of the PrimOp type (where it was always a glitch)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Add IdInfo.FCallId variant to the type IdInfo.GlobalIdDetails,
along with predicates Id.isFCallId, Id.isFCallId_maybe
* Add StgSyn.StgOp, to sum PrimOp with FCallOp, because it
*is* useful to sum them together in Stg and AbsC land. If
nothing else, it minimises changes.
Also generally rename "CCall" stuff to "FCall" where it's generic
to all foreign calls.