simonmar [Mon, 3 Nov 2003 17:24:41 +0000 (17:24 +0000)]
[project @ 2003-11-03 17:24:41 by simonmar]
Remove references to Haskell 1.4, replace with up to date Haskell 98
references. Includes removing a comment about the fact that Haskell
1.4 didn't have principle types (Haskell 98 fixed that bug).
simonpj [Mon, 3 Nov 2003 16:01:03 +0000 (16:01 +0000)]
[project @ 2003-11-03 16:00:57 by simonpj]
Wibbles to pretty printing of types
simonpj [Mon, 3 Nov 2003 15:27:32 +0000 (15:27 +0000)]
[project @ 2003-11-03 15:27:32 by simonpj]
Missing cases in isLiftedTypeKind etc
simonpj [Mon, 3 Nov 2003 15:27:09 +0000 (15:27 +0000)]
[project @ 2003-11-03 15:27:08 by simonpj]
Wibble to subordinate names
simonpj [Mon, 3 Nov 2003 15:26:23 +0000 (15:26 +0000)]
[project @ 2003-11-03 15:26:22 by simonpj]
The generic to/from methods for derivable type classes should only
be generated for types in the current group, rather than all the
in-scope tycons. Otherwise they get generated multiple times in
a Template-Haskell situation.
simonmar [Mon, 3 Nov 2003 12:25:39 +0000 (12:25 +0000)]
[project @ 2003-11-03 12:25:39 by simonmar]
Add some I/O error checking so that an error when writing the output
file will correctly result in a non-zero exit code.
Currently, if you try to compile a literate Haskell file and /tmp is
full, unlit will write an empty file and exit successfully, leading to
confusing behaviour.
simonmar [Mon, 3 Nov 2003 10:22:21 +0000 (10:22 +0000)]
[project @ 2003-11-03 10:22:21 by simonmar]
merge rev. 1.9.6.2 to the HEAD (remove comment about multiple Main modules)
simonmar [Mon, 3 Nov 2003 10:11:04 +0000 (10:11 +0000)]
[project @ 2003-11-03 10:11:04 by simonmar]
merge rev. 1.9.6.1 to the HEAD (add overflown relocs bug)
dons [Sun, 2 Nov 2003 06:55:24 +0000 (06:55 +0000)]
[project @ 2003-11-02 06:55:24 by dons]
More RTLD_* symbols are now available on OpenBSD.
This does not mean that ghci works yet, though.
panne [Sat, 1 Nov 2003 23:43:14 +0000 (23:43 +0000)]
[project @ 2003-11-01 23:43:13 by panne]
Synched with hugs98 repository again (X_FLAGS handling this time)
Merge to STABLE.
panne [Sat, 1 Nov 2003 20:05:57 +0000 (20:05 +0000)]
[project @ 2003-11-01 20:05:57 by panne]
Synched with latest changes in hugs98 repository (finding "find" plus
#ifdef massage). Some common autoconf macro directory would be really
handy: ToDo...
sof [Sat, 1 Nov 2003 01:52:01 +0000 (01:52 +0000)]
[project @ 2003-11-01 01:52:01 by sof]
expandEnvVars.expandStrings: flatten the expanded strings so as to
permit a substitution to expand into multiple elements of the final
list.
merge to stable.
sof [Sat, 1 Nov 2003 01:01:18 +0000 (01:01 +0000)]
[project @ 2003-11-01 01:01:18 by sof]
Maintain order of 'objs' when adding them to v_Ld_inputs.
Fixes ghc-6.x linking bug when .a's are given explicitly
on the command-line.
merge to stable.
sof [Fri, 31 Oct 2003 23:24:47 +0000 (23:24 +0000)]
[project @ 2003-10-31 23:24:47 by sof]
tidy up siginterrupt() use
sof [Fri, 31 Oct 2003 23:23:43 +0000 (23:23 +0000)]
[project @ 2003-10-31 23:23:43 by sof]
check for siginterrupt()
sof [Fri, 31 Oct 2003 16:48:45 +0000 (16:48 +0000)]
[project @ 2003-10-31 16:48:45 by sof]
prog_name: use '\' as separator with mingw builds.
merge to stable
sof [Fri, 31 Oct 2003 16:22:11 +0000 (16:22 +0000)]
[project @ 2003-10-31 16:22:11 by sof]
Report max heap in Mbytes as well.
merge to stable
sof [Fri, 31 Oct 2003 16:21:27 +0000 (16:21 +0000)]
[project @ 2003-10-31 16:21:27 by sof]
win32: in case of a heap overflow, report this via heapOverflow(), and not
by panic'ing.
merge to stable.
simonpj [Fri, 31 Oct 2003 12:57:59 +0000 (12:57 +0000)]
[project @ 2003-10-31 12:57:59 by simonpj]
Wibble to TH -> HsSyn conversion
simonpj [Fri, 31 Oct 2003 12:57:15 +0000 (12:57 +0000)]
[project @ 2003-10-31 12:57:15 by simonpj]
Trim exports
simonpj [Fri, 31 Oct 2003 12:56:50 +0000 (12:56 +0000)]
[project @ 2003-10-31 12:56:50 by simonpj]
Pretty-printing wibble; fixes many tests
simonpj [Thu, 30 Oct 2003 16:02:07 +0000 (16:02 +0000)]
[project @ 2003-10-30 16:01:49 by simonpj]
This commit does a long-overdue tidy-up
* Remove PprType (gets rid of one more bunch of hi-boot files)
* Put pretty-printing for types in TypeRep
* Make a specialised pretty-printer for Types, rather than
converting to IfaceTypes and printing those
simonpj [Thu, 30 Oct 2003 10:14:59 +0000 (10:14 +0000)]
[project @ 2003-10-30 10:14:59 by simonpj]
1. When desugaring a [d| ... |], do not gensym the method names of
an instance declaration, else we get very confused!
2. We don't need to make fresh Names in DsMeta.mkGenSym, because
the existing Name will do, I believe. We'll do the genSym when
we *run* the splice. (This stuff makes my head hurt.)
Assuming this is so, we can simplify the mkGenSym stuff still more.
simonpj [Thu, 30 Oct 2003 10:12:39 +0000 (10:12 +0000)]
[project @ 2003-10-30 10:12:39 by simonpj]
Wibble
simonpj [Thu, 30 Oct 2003 09:38:14 +0000 (09:38 +0000)]
[project @ 2003-10-30 09:38:14 by simonpj]
Improve panic msg
simonpj [Thu, 30 Oct 2003 09:37:57 +0000 (09:37 +0000)]
[project @ 2003-10-30 09:37:57 by simonpj]
Formatting only
simonpj [Thu, 30 Oct 2003 09:33:30 +0000 (09:33 +0000)]
[project @ 2003-10-30 09:33:30 by simonpj]
Updating TH; not finished
simonpj [Thu, 30 Oct 2003 09:03:16 +0000 (09:03 +0000)]
[project @ 2003-10-30 09:03:15 by simonpj]
Remove redundant param from allUses
simonpj [Thu, 30 Oct 2003 09:01:31 +0000 (09:01 +0000)]
[project @ 2003-10-30 09:01:31 by simonpj]
Tiny code simplification (allUses)
simonpj [Wed, 29 Oct 2003 19:05:56 +0000 (19:05 +0000)]
[project @ 2003-10-29 19:05:55 by simonpj]
Add info about compiling the Main module
simonpj [Wed, 29 Oct 2003 18:14:30 +0000 (18:14 +0000)]
[project @ 2003-10-29 18:14:27 by simonpj]
Fix a bad consequence of the new story for the generic toT/fromT functions
derived from data types declarations. The problem was that they were being
generated and then discarded by the simplifier, because there was nothing
keeping them alive.
This commit
* Adds a field tcg_keep to the TcGblEnv, which records things
to be kept alive;
* Makes the desugarer pin the keep-alive flag on each binding
(it's actually a call to setIdLocalExported)
* Removes that job from updateBinders in SimplCore
It's somewhat tiresome, but not really difficult.
simonpj [Wed, 29 Oct 2003 18:10:57 +0000 (18:10 +0000)]
[project @ 2003-10-29 18:10:57 by simonpj]
Put to and from the correct way round
simonpj [Wed, 29 Oct 2003 18:10:25 +0000 (18:10 +0000)]
[project @ 2003-10-29 18:10:25 by simonpj]
Print info about orphan rules and instances
simonpj [Wed, 29 Oct 2003 18:10:14 +0000 (18:10 +0000)]
[project @ 2003-10-29 18:10:14 by simonpj]
Squish bogus warning
ross [Wed, 29 Oct 2003 17:58:16 +0000 (17:58 +0000)]
[project @ 2003-10-29 17:58:16 by ross]
don't recognise (| or (# if followed by a symbol character, e.g. (||)
good for STABLE, I hope
simonpj [Wed, 29 Oct 2003 17:04:15 +0000 (17:04 +0000)]
[project @ 2003-10-29 17:04:13 by simonpj]
Declaration splices should shadow the top-level environment
wolfgang [Wed, 29 Oct 2003 16:12:00 +0000 (16:12 +0000)]
[project @ 2003-10-29 16:12:00 by wolfgang]
Add support for .bss (zero-initialized) sections on Mac OS X
Merge to stable.
simonpj [Tue, 28 Oct 2003 13:16:01 +0000 (13:16 +0000)]
[project @ 2003-10-28 13:15:58 by simonpj]
Wibbles about argument variance
simonpj [Mon, 27 Oct 2003 14:08:46 +0000 (14:08 +0000)]
[project @ 2003-10-27 14:08:46 by simonpj]
Fix to super-class loop avoidance code; commented in the file; tcrun020 tests
simonpj [Mon, 27 Oct 2003 14:08:06 +0000 (14:08 +0000)]
[project @ 2003-10-27 14:08:04 by simonpj]
Improve duplicate-instance reporting; swap inst-env param order
simonpj [Mon, 27 Oct 2003 14:07:21 +0000 (14:07 +0000)]
[project @ 2003-10-27 14:07:01 by simonpj]
Comments only
simonpj [Mon, 27 Oct 2003 14:06:06 +0000 (14:06 +0000)]
[project @ 2003-10-27 14:06:06 by simonpj]
Always qualify in defaultErrStyle
simonpj [Mon, 27 Oct 2003 14:05:17 +0000 (14:05 +0000)]
[project @ 2003-10-27 14:05:17 by simonpj]
Improve error message when iface decl not found
simonpj [Mon, 27 Oct 2003 14:04:28 +0000 (14:04 +0000)]
[project @ 2003-10-27 14:04:28 by simonpj]
Eliminate bogus warning
simonpj [Mon, 27 Oct 2003 14:03:59 +0000 (14:03 +0000)]
[project @ 2003-10-27 14:03:59 by simonpj]
Remove unused function dontAddErrLoc
stolz [Fri, 24 Oct 2003 14:45:38 +0000 (14:45 +0000)]
[project @ 2003-10-24 14:45:38 by stolz]
Initialize hp_file for heap profiling (code stolen from Profiling.c).
This bug might suggest some general reviewing of this code-path...
Closes: SF bug [ 827485 ] Heap profile w/ debugging RTS dumps core
http://sourceforge.net/tracker/index.php?func=detail&aid=827485&group_id=8032&atid=108032
simonmar [Fri, 24 Oct 2003 11:45:40 +0000 (11:45 +0000)]
[project @ 2003-10-24 11:45:40 by simonmar]
Fix bugs in previous commit.
simonmar [Fri, 24 Oct 2003 09:56:45 +0000 (09:56 +0000)]
[project @ 2003-10-24 09:56:45 by simonmar]
When allocating a large object in gen 0, update the n_large_blocks
count. I think this is just an accounting issue, and doesn't actually
cause a space leak, but it does result in an assertion failure when
running with sanity checking on.
simonmar [Fri, 24 Oct 2003 09:52:51 +0000 (09:52 +0000)]
[project @ 2003-10-24 09:52:51 by simonmar]
Remove a comment that appears to contradict the code.
simonmar [Fri, 24 Oct 2003 09:00:59 +0000 (09:00 +0000)]
[project @ 2003-10-24 09:00:59 by simonmar]
Set the mut_link of a MUT_ARR_PTRS_FROZEN to NULL. This might be the
cause of the stage2 crash; I'll check as soon as the build completes.
simonmar [Thu, 23 Oct 2003 12:23:00 +0000 (12:23 +0000)]
[project @ 2003-10-23 12:23:00 by simonmar]
Add missing -optF flag.
simonmar [Thu, 23 Oct 2003 12:22:37 +0000 (12:22 +0000)]
[project @ 2003-10-23 12:22:37 by simonmar]
Fix markup
simonpj [Thu, 23 Oct 2003 11:24:43 +0000 (11:24 +0000)]
[project @ 2003-10-23 11:24:43 by simonpj]
Another HsForAllTy wibble
simonmar [Thu, 23 Oct 2003 10:13:18 +0000 (10:13 +0000)]
[project @ 2003-10-23 10:13:18 by simonmar]
Add missing table of -opt<blah> options.
simonpj [Thu, 23 Oct 2003 08:06:48 +0000 (08:06 +0000)]
[project @ 2003-10-23 08:06:48 by simonpj]
Wibble for HsForAllTy
simonpj [Wed, 22 Oct 2003 16:25:43 +0000 (16:25 +0000)]
[project @ 2003-10-22 16:25:42 by simonpj]
Do foralls right in the renamer
simonmar [Wed, 22 Oct 2003 15:01:00 +0000 (15:01 +0000)]
[project @ 2003-10-22 15:00:59 by simonmar]
Fix a nasty bug in the GC mutable list handling, which shows up when
an array is frozen and then unsafeThaw#'d. The array could end up on
the mutable list twice.
Fixes SourceForge bug #819116.
simonmar [Wed, 22 Oct 2003 14:31:11 +0000 (14:31 +0000)]
[project @ 2003-10-22 14:31:09 by simonmar]
- In GHCi & Template Haskell, give a warning for things mentioned
on the command line that we don't recognise, and then ignore them.
In batch mode, these are still passed to the linker as before.
- Clean up & rename the filename-suffix recognising functions in
DriverPhases. There's probably a better place for these, but I've left
them where they are for now.
simonmar [Wed, 22 Oct 2003 11:11:59 +0000 (11:11 +0000)]
[project @ 2003-10-22 11:11:59 by simonmar]
thread_stack(RET_BCO): Grab the pointer to the BCO *before* threading
it. Fixes crashes when using compacting GC with GHCi.
I noticed while debugging this that compacting GC is horrendously slow
now, which might have something to do with the new eval/apply PAP
layouts. That's something to investigate later.
dons [Wed, 22 Oct 2003 08:54:36 +0000 (08:54 +0000)]
[project @ 2003-10-22 08:54:36 by dons]
mips64-sgi-irix6.5 works unregisterised
simonpj [Tue, 21 Oct 2003 13:14:12 +0000 (13:14 +0000)]
[project @ 2003-10-21 13:14:12 by simonpj]
Wibbles
simonpj [Tue, 21 Oct 2003 12:54:22 +0000 (12:54 +0000)]
[project @ 2003-10-21 12:54:17 by simonpj]
1. A tiresome change to HsType, to keep a record of whether or not
the HsForAll was originally explicitly-quantified. This is
solely so that the type checker can print out messages that
show the source code the programmer wrote. Tiresome but
easy.
2. Improve reporting of kind errors.
simonpj [Tue, 21 Oct 2003 12:52:58 +0000 (12:52 +0000)]
[project @ 2003-10-21 12:52:58 by simonpj]
Show generic-ness when printing a data decl
simonpj [Tue, 21 Oct 2003 12:48:57 +0000 (12:48 +0000)]
[project @ 2003-10-21 12:48:57 by simonpj]
Wibble to reporting duplicate instance decls
simonpj [Tue, 21 Oct 2003 12:36:30 +0000 (12:36 +0000)]
[project @ 2003-10-21 12:36:29 by simonpj]
Report duplicate instance declarations
stolz [Tue, 21 Oct 2003 11:51:15 +0000 (11:51 +0000)]
[project @ 2003-10-21 11:51:15 by stolz]
Save one fcntl-call in setNonBlockingFd when Fd is already non-blocking.
Please merge.
simonmar [Tue, 21 Oct 2003 11:42:30 +0000 (11:42 +0000)]
[project @ 2003-10-21 11:42:30 by simonmar]
Change the filename policies (again). Now the interface file and
object file always follow the source file unless the -odir or -hidir
options are specified.
simonmar [Tue, 21 Oct 2003 11:25:40 +0000 (11:25 +0000)]
[project @ 2003-10-21 11:25:40 by simonmar]
Add a FAQ entry for Ctrl-D and EOF.
simonmar [Tue, 21 Oct 2003 10:06:33 +0000 (10:06 +0000)]
[project @ 2003-10-21 10:06:33 by simonmar]
Clarify one paragraph in the recompilation checker section (I hope).
sof [Tue, 21 Oct 2003 03:38:07 +0000 (03:38 +0000)]
[project @ 2003-10-21 03:38:07 by sof]
stg_InstallConsoleEvent(): registering generic_handler() once will do
panne [Mon, 20 Oct 2003 18:50:45 +0000 (18:50 +0000)]
[project @ 2003-10-20 18:50:45 by panne]
Fixed previous commit. Negation is the root of all evil... :-)
sof [Mon, 20 Oct 2003 17:15:29 +0000 (17:15 +0000)]
[project @ 2003-10-20 17:15:27 by sof]
Console event handling support (i.e., Haskell-side support for SIGINT under win32).
win32/ConsoleHandler.h implements the Signals.h API. No library support
for installing user event handlers included in this commit.
simonmar [Mon, 20 Oct 2003 15:56:23 +0000 (15:56 +0000)]
[project @ 2003-10-20 15:56:23 by simonmar]
Check type of wint_t
simonpj [Mon, 20 Oct 2003 14:04:07 +0000 (14:04 +0000)]
[project @ 2003-10-20 14:04:07 by simonpj]
Wibble to the last commit; report derived warnings with -dppr-debug
simonpj [Mon, 20 Oct 2003 14:02:21 +0000 (14:02 +0000)]
[project @ 2003-10-20 14:02:19 by simonpj]
Suppress renamer warnings (such as unused variables) when
renaming stuff generated by 'deriving' code.
simonmar [Mon, 20 Oct 2003 08:52:36 +0000 (08:52 +0000)]
[project @ 2003-10-20 08:52:36 by simonmar]
merge rev. 1.60.2.1 (appears to have been committed on the branch by mistake).
panne [Fri, 17 Oct 2003 17:52:33 +0000 (17:52 +0000)]
[project @ 2003-10-17 17:52:33 by panne]
Add config.cache to DIST_CLEAN_FILES and remove autom4te.cache subdir
for every clean* target
sof [Thu, 16 Oct 2003 20:54:12 +0000 (20:54 +0000)]
[project @ 2003-10-16 20:54:12 by sof]
printStackChunk(): attempt to handle RET_FUNs
simonpj [Thu, 16 Oct 2003 10:19:28 +0000 (10:19 +0000)]
[project @ 2003-10-16 10:19:27 by simonpj]
When type-checking an interface in --make, when the source file hasn't
changed, we must bring into scope all the things defined in the interface.
This was breaking --make badly.
The epicentre here is TcIface.typecheckIface
simonpj [Tue, 14 Oct 2003 15:03:04 +0000 (15:03 +0000)]
[project @ 2003-10-14 15:03:04 by simonpj]
..and make RnExpr match RnSource too
panne [Tue, 14 Oct 2003 14:58:44 +0000 (14:58 +0000)]
[project @ 2003-10-14 14:58:44 by panne]
Synched .hi-boot files with reality (untested)
sof [Mon, 13 Oct 2003 18:33:01 +0000 (18:33 +0000)]
[project @ 2003-10-13 18:33:01 by sof]
supply missing AC_DEFINE_UNQUOTED() descr arg
simonpj [Mon, 13 Oct 2003 14:54:40 +0000 (14:54 +0000)]
[project @ 2003-10-13 14:54:37 by simonpj]
Type error cosmetics
simonpj [Mon, 13 Oct 2003 10:43:04 +0000 (10:43 +0000)]
[project @ 2003-10-13 10:43:02 by simonpj]
Deal corectly with rules for Ids defined in this module,
even when they are imported (as orphans) from other modules.
The epicentre for this stuff is SimplCore.
simonpj [Mon, 13 Oct 2003 10:41:43 +0000 (10:41 +0000)]
[project @ 2003-10-13 10:41:43 by simonpj]
Add idIsFrom
simonpj [Mon, 13 Oct 2003 10:41:31 +0000 (10:41 +0000)]
[project @ 2003-10-13 10:41:30 by simonpj]
Cosmetics
sof [Mon, 13 Oct 2003 05:15:50 +0000 (05:15 +0000)]
[project @ 2003-10-13 05:15:50 by sof]
oops, fix 'test' usage
sof [Mon, 13 Oct 2003 05:08:22 +0000 (05:08 +0000)]
[project @ 2003-10-13 05:08:22 by sof]
FPTOOLS_CHECK_HTYPE: mapping unsupported types to NotReallyAType is less than useful; simply don't define the symbol
sof [Mon, 13 Oct 2003 03:25:38 +0000 (03:25 +0000)]
[project @ 2003-10-13 03:25:38 by sof]
use AC_CHECK_HEADERS() when looking for regex.h
igloo [Sun, 12 Oct 2003 13:24:52 +0000 (13:24 +0000)]
[project @ 2003-10-12 13:24:52 by igloo]
#ifdef IN_STG_CODE -> #if IN_STG_CODE
simonpj [Fri, 10 Oct 2003 18:26:24 +0000 (18:26 +0000)]
[project @ 2003-10-10 18:26:24 by simonpj]
Use tcIsTyVarTy
simonpj [Fri, 10 Oct 2003 15:45:07 +0000 (15:45 +0000)]
[project @ 2003-10-10 15:45:04 by simonpj]
Use tcIsTyVarTy not isTyVarTy; and move isPredTy
simonpj [Fri, 10 Oct 2003 12:42:31 +0000 (12:42 +0000)]
[project @ 2003-10-10 12:42:30 by simonpj]
Arrange that loadImportedRules can see the module dependencies
of this module, and hence know whether or not to load an hi-boot
interface.
simonpj [Fri, 10 Oct 2003 12:42:19 +0000 (12:42 +0000)]
[project @ 2003-10-10 12:42:19 by simonpj]
GHC 5 hi-boot file
simonpj [Fri, 10 Oct 2003 09:39:34 +0000 (09:39 +0000)]
[project @ 2003-10-10 09:39:33 by simonpj]
Make rule importing work properly
simonpj [Fri, 10 Oct 2003 09:39:06 +0000 (09:39 +0000)]
[project @ 2003-10-10 09:39:06 by simonpj]
Fix hi-boot file for GHC 5xx
simonpj [Fri, 10 Oct 2003 07:34:35 +0000 (07:34 +0000)]
[project @ 2003-10-10 07:34:34 by simonpj]
Wibbles
stolz [Thu, 9 Oct 2003 16:57:17 +0000 (16:57 +0000)]
[project @ 2003-10-09 16:57:17 by stolz]
Hrmbl. []-wibble.
simonpj [Thu, 9 Oct 2003 15:38:24 +0000 (15:38 +0000)]
[project @ 2003-10-09 15:38:22 by simonpj]
Wibles
simonpj [Thu, 9 Oct 2003 14:31:05 +0000 (14:31 +0000)]
[project @ 2003-10-09 14:31:05 by simonpj]
Forgot to remove HsCore (now IfaceSyn)