ghc-hetmet.git
16 years agoFIX BUILD (non-profiling RTS was broken in previous patch)
Simon Marlow [Tue, 8 May 2007 13:20:49 +0000 (13:20 +0000)]
FIX BUILD (non-profiling RTS was broken in previous patch)

16 years agoFIX parsing of Haddock comments (broken by me in the previous patch)
Simon Marlow [Tue, 8 May 2007 12:55:30 +0000 (12:55 +0000)]
FIX parsing of Haddock comments (broken by me in the previous patch)

16 years agoFIX: #1227 (biographical profiling broken)
Simon Marlow [Tue, 8 May 2007 10:45:51 +0000 (10:45 +0000)]
FIX: #1227 (biographical profiling broken)
We were freeing the hash table storage with exitHashTable() before
calling endProfiling(), which uses hash tables.

16 years agoFIX crash on exit with biographical profiling
Simon Marlow [Tue, 8 May 2007 10:09:08 +0000 (10:09 +0000)]
FIX crash on exit with biographical profiling
Seems to be a bug introduced by code to free the memory allocated by
the heap profiler.

16 years agoFIX profiling :-(
Simon Marlow [Tue, 8 May 2007 10:01:34 +0000 (10:01 +0000)]
FIX profiling :-(

16 years agoImproved VectInfo
Manuel M T Chakravarty [Tue, 8 May 2007 08:06:09 +0000 (08:06 +0000)]
Improved VectInfo
- We need to keep pairs of (f, f_CC) in VectInfo as it is difficult
  to obtain Names from OccNames (of imported modules) in Core passes.
- There is a choice of keeping Names or Vars in VectInfo.  We go with Vars
  for now; mainly to avoid converting between Names and Vars repeatedly for
  the same VectInfo in other than one-shot mode.

  Again goes to the HEAD straight away to avoid conflicts down the road.

17 years agoOccNames for closure conversion
Roman Leshchinskiy [Tue, 1 May 2007 04:14:04 +0000 (04:14 +0000)]
OccNames for closure conversion

16 years agoadd defaultObjectTarget to the GHC API
Simon Marlow [Mon, 7 May 2007 13:42:35 +0000 (13:42 +0000)]
add defaultObjectTarget to the GHC API
We had no way of getting the right value of HscTarget to use to
request object files as output.

16 years agoMake let-floating work even if there are big lambdas in the way
simonpj@microsoft.com [Mon, 7 May 2007 16:24:22 +0000 (16:24 +0000)]
Make let-floating work even if there are big lambdas in the way

This patch generalises the let-floating transformation in a way
suggested by Roman and Manuel when doing closure conversion.

There are extensive comments in Note [Floating and type abstraction],
which begins thus.  Consider this:
x = /\a. C e1 e2
We'd like to float this to
y1 = /\a. e1
y2 = /\a. e2
x = /\a. C (y1 a) (y2 a)
for the usual reasons: we want to inline x rather vigorously.

(Further commennts follow in SimplUtils.)

The implementation is not hard; indeed it used to be in GHC years ago.
I removed it thinking that full laziness would achieve the same
effect, but I'm not sure it does; and in any case it seems more direct
to do it here.

The transformation should not make anything worse, so yell if
you see anything unexpected happening.

16 years agoFix comments on HsWrapper type
simonpj@microsoft.com [Mon, 7 May 2007 16:16:53 +0000 (16:16 +0000)]
Fix comments on HsWrapper type

16 years agoDocument -fspec-threshold
simonpj@microsoft.com [Mon, 7 May 2007 16:00:32 +0000 (16:00 +0000)]
Document -fspec-threshold

This size-threshold flag is for both liberate-case and SpecConstr.

Replaces -flibereate-case-threshold.

16 years agoFIX Trac #1332: make isStringTy work right
simonpj@microsoft.com [Mon, 7 May 2007 10:41:37 +0000 (10:41 +0000)]
FIX Trac #1332: make isStringTy work right

For some ancient reason, TcType.isStringTy was treating newtypes as
transparent, which is quite consistent with isIntTy, isBoolTy etc.
(I think the reason is that isStringTy was written to go with isFFIDotNetTy,
which deals in representation types.)

Anyway, this inconsistency is Utterly Wrong when called from
Inst.shortCutStringLit, and that made tc224 fail.  I can't think how
it ever succeeded.  Maybe it never did!

Anyway this fixes it. It may be that .NET FFI calls are not quite as
permissive, but they are almost certainly broken in more serious ways,
so I'm going to jump that bridge if we come to it.

16 years agoFIX print020: conversion of case expressions of type 'Any' was wrong
Simon Marlow [Mon, 7 May 2007 14:53:50 +0000 (14:53 +0000)]
FIX print020: conversion of case expressions of type 'Any' was wrong
All primitive types were getting PrimAlts, where actually case
expressions on 'Any' should get a PolyAlt.  The result was that seq on
Any compiled into a no-op, which caused :force to go into an infinite
loop.

16 years agoFIX: #1253 (Can't use non-layout at top level)
Simon Marlow [Mon, 7 May 2007 13:25:14 +0000 (13:25 +0000)]
FIX: #1253 (Can't use non-layout at top level)

16 years agoproperly fix leakage of Haddock comment syntax (see #1091, test: read044)
Simon Marlow [Mon, 7 May 2007 11:37:01 +0000 (11:37 +0000)]
properly fix leakage of Haddock comment syntax (see #1091, test: read044)

16 years agoAdd VectInfo to HPT
Manuel M T Chakravarty [Mon, 7 May 2007 11:03:36 +0000 (11:03 +0000)]
Add VectInfo to HPT

  I am putting this patch (as the previous VectInfo patch) straight away
  into the head to avoid the kind of merging disaster we had with the FC
  branch.  The patch does not interfere with any other functionality and
  hence should cause no harm in the head.

16 years agoFIX #1155: ghci -debug generates slightly odd message
Simon Marlow [Mon, 7 May 2007 10:24:18 +0000 (10:24 +0000)]
FIX #1155: ghci -debug generates slightly odd message

16 years agoFIX Trac #1329: spelling error
simonpj@microsoft.com [Mon, 7 May 2007 08:42:47 +0000 (08:42 +0000)]
FIX Trac #1329: spelling error

17 years agoBuild arrows library if available 2007-05-06
Alec Berryman [Mon, 30 Apr 2007 18:56:10 +0000 (18:56 +0000)]
Build arrows library if available

arrows is the only library in libraries/extra-packages not built when present

16 years agofix exit code of ghci -e "return ()"
Bertram Felgenhauer [Thu, 3 May 2007 21:25:14 +0000 (21:25 +0000)]
fix exit code of ghci -e "return ()"
This should result in successful program termination. Not doing this
breaks checking the exit code of  runghc Setup.lhs build  for example.

16 years agoExtend hptInstances to also cover family instances
Manuel M T Chakravarty [Sun, 6 May 2007 07:59:59 +0000 (07:59 +0000)]
Extend hptInstances to also cover family instances

16 years agoIfaceVectInfo and propagation through EPS
Manuel M T Chakravarty [Fri, 4 May 2007 07:37:34 +0000 (07:37 +0000)]
IfaceVectInfo and propagation through EPS

16 years agoAdded VectInfo to ModGuts
Manuel M T Chakravarty [Fri, 4 May 2007 06:39:40 +0000 (06:39 +0000)]
Added VectInfo to ModGuts

16 years agoHandle ParStmt in collectStmtBinders; fixes tcrun013(ghci) failure
Ian Lynagh [Sat, 5 May 2007 17:09:34 +0000 (17:09 +0000)]
Handle ParStmt in collectStmtBinders; fixes tcrun013(ghci) failure

16 years agoDon't print parens around list comprehensions
Ian Lynagh [Sat, 5 May 2007 15:00:39 +0000 (15:00 +0000)]
Don't print parens around list comprehensions

16 years agoTweak ... generation
Ian Lynagh [Sat, 5 May 2007 14:41:31 +0000 (14:41 +0000)]
Tweak ... generation
Avoid:
    let x ...
i.e. always put the = in:
    let x = ...

16 years agoTweak the ... generation
Ian Lynagh [Sat, 5 May 2007 14:29:51 +0000 (14:29 +0000)]
Tweak the ... generation

16 years agoPanic properly if wrongKindOfFamily is given an unexpected family
Ian Lynagh [Fri, 4 May 2007 22:18:57 +0000 (22:18 +0000)]
Panic properly if wrongKindOfFamily is given an unexpected family
Used to just give a "Non-exhaustive patterns" failure

16 years agoThe libraries/* directories themselves are boring, as well as their contents
Ian Lynagh [Fri, 4 May 2007 14:59:30 +0000 (14:59 +0000)]
The libraries/* directories themselves are boring, as well as their contents

16 years agolibraries/filepath/ is boring
Ian Lynagh [Fri, 4 May 2007 14:57:56 +0000 (14:57 +0000)]
libraries/filepath/ is boring

16 years agoWarning police
simonpj@microsoft.com [Fri, 4 May 2007 12:24:19 +0000 (12:24 +0000)]
Warning police

16 years agoMake -frewrite-rules into a dynamic flag; off for -O0
simonpj@microsoft.com [Fri, 4 May 2007 12:24:05 +0000 (12:24 +0000)]
Make -frewrite-rules into a dynamic flag; off for -O0

Argubly rewrite rules should not fire with -O0, and it turns
out that when compiling GHC.Base with -O0 we get a crash if
the rewrite rules do fire (see Note [Scoping for Builtin rules]
in PrelRules).

So unless someone yells, rewrite rules are off with -O0.

The new (now dynamic) flag is
    -frewrite rules (with -fno-rewrite-rules to disable)

The old (static) flag -frules-off is gone.

16 years agoImprove printing of "..." in HsExpr; fixes a stupidity in my earlier change
simonpj@microsoft.com [Fri, 4 May 2007 11:34:54 +0000 (11:34 +0000)]
Improve printing of "..." in HsExpr; fixes a stupidity in my earlier change

16 years agoFix the pruning of dead case alternatives
simonpj@microsoft.com [Fri, 4 May 2007 11:06:50 +0000 (11:06 +0000)]
Fix the pruning of dead case alternatives

This fixes Trac #1251; test case is gadt/CasePrune

GHC was being over-eager about pruning dead alternatives from case
expressions, and that led to a crash because the case expression
ended up with no alternatives at all!

See the long comments Note [Pruning dead case alternatives] in Unify.

16 years agoWarning police
simonpj@microsoft.com [Fri, 4 May 2007 11:03:41 +0000 (11:03 +0000)]
Warning police

16 years agoisDataTyCon should be False for all type families, even data type families
simonpj@microsoft.com [Fri, 4 May 2007 11:03:01 +0000 (11:03 +0000)]
isDataTyCon should be False for all type families, even data type families

isDataTyCon advertises that it's true of "data types that are
definitely represented by heap-allocated constructors.  These are
srcutinised by Core-level @case@ expressions, and they get info tables
allocated for them."

Type-family TyCons never have this property, not even data type families.
It's the *instance* TyCons that do.

I hope that this change does not break anything that somehow relied
on the old (wrong) semantics.

16 years agoFix dependency information for RULES
simonpj@microsoft.com [Thu, 3 May 2007 12:47:59 +0000 (12:47 +0000)]
Fix dependency information for RULES

A SpecInfo (inside IdInfo) keeps track of the free variables of a RULE
so that the occurrency analyser knows about its dependencies.

Previously it was only tracking the *rhs* free vars, but it should
really include the *lhs* ones too.  See Note [Rule dependency info]
in IdInfo.

This fixes a WARNING when compiling some libraries.

16 years agoLess voluminous debug
simonpj@microsoft.com [Thu, 3 May 2007 12:47:15 +0000 (12:47 +0000)]
Less voluminous debug

16 years agoRemove "__" prefix for forall when printing a RULE
simonpj@microsoft.com [Thu, 3 May 2007 12:46:06 +0000 (12:46 +0000)]
Remove "__" prefix for forall when printing a RULE

16 years agoAdd the -ddump-mod-cycles flag to the user manual
simonpj@microsoft.com [Thu, 3 May 2007 12:45:18 +0000 (12:45 +0000)]
Add the -ddump-mod-cycles flag to the user manual

16 years agoFix truncate on amd64 NCG; fixes arith005.
Ian Lynagh [Thu, 3 May 2007 22:38:33 +0000 (22:38 +0000)]
Fix truncate on amd64 NCG; fixes arith005.
cvts[sd]2siq? ->
cvtts[sd]2siq?

16 years agoAdd missing libraries/Makefile dependencies on ifBuildable/ifBuildable
Ian Lynagh [Thu, 3 May 2007 14:07:32 +0000 (14:07 +0000)]
Add missing libraries/Makefile dependencies on ifBuildable/ifBuildable

16 years agoUse a primop for getting the fields of the AP_STACK rather than an FFI call
Simon Marlow [Thu, 3 May 2007 15:19:41 +0000 (15:19 +0000)]
Use a primop for getting the fields of the AP_STACK rather than an FFI call
This means we can avoid some StablePtrs, and also catch cases where
the AP_STACK has been evaluated (this can happen with :history, see
the hist001 test).

16 years agoimprove the :list command
Simon Marlow [Thu, 3 May 2007 15:06:12 +0000 (15:06 +0000)]
improve the :list command
Now you can list source code in various ways:
  :list <line>
  :list <module> <line>
  :list <function>

16 years agoAdd a little documentation to the libraries/Makefile
Ian Lynagh [Thu, 3 May 2007 13:36:54 +0000 (13:36 +0000)]
Add a little documentation to the libraries/Makefile

16 years agoOnly touch the configure stamp if configure succeeds
Ian Lynagh [Thu, 3 May 2007 12:39:13 +0000 (12:39 +0000)]
Only touch the configure stamp if configure succeeds
We don't touch $@ if configure failed as we would prefer to try
configuring it next time round, rather than assuming it'll still fail.
This is particularly important for corelibs, where failure means the
build dies!

16 years agoAdd history/trace functionality to the GHCi debugger
Simon Marlow [Thu, 3 May 2007 13:19:55 +0000 (13:19 +0000)]
Add history/trace functionality to the GHCi debugger

The debugger can now log each step of the evaluation without actually
stopping, keeping a history of the recent steps (currently 50).  When
a (real) breakpoint is hit, you can examine previous steps in the
history (and their free variables) using the :history, :back and
:forward commands.

16 years agouse extendInteractiveContext instead of custom code
Simon Marlow [Thu, 3 May 2007 13:15:25 +0000 (13:15 +0000)]
use extendInteractiveContext instead of custom code

16 years agocancel out some reverses by changing the order of ic_tmp_ids
Simon Marlow [Thu, 3 May 2007 12:52:24 +0000 (12:52 +0000)]
cancel out some reverses by changing the order of ic_tmp_ids

16 years agouse the reader part of the monad for the inScope set
Simon Marlow [Thu, 3 May 2007 12:50:06 +0000 (12:50 +0000)]
use the reader part of the monad for the inScope set

16 years agoMake coreSyn/CoreUtils.lhs compile
Ian Lynagh [Thu, 3 May 2007 12:08:41 +0000 (12:08 +0000)]
Make coreSyn/CoreUtils.lhs compile
Use the right number of arguments in a panic case.

17 years agoMake boot handle getting the libraries
Ian Lynagh [Mon, 30 Apr 2007 11:35:19 +0000 (11:35 +0000)]
Make boot handle getting the libraries

17 years agoRemove references to -fticky-ticky flag
Tim Chevalier [Tue, 1 May 2007 05:37:19 +0000 (05:37 +0000)]
Remove references to -fticky-ticky flag

-ticky is the command-line flag for ticky-ticky profiling now, but
internally, the -fticky-ticky flag was used to represent whether ticky
was on. This led to link errors if the user supplied -fticky-ticky but
not -ticky (ticky code would be generated but the wrong RTS library
would be passed to the linker). I removed references to -fticky-ticky
-- now, only the way flags dictate whether ticky is on, and
-fticky-ticky is no longer accepted as a command-line option.

16 years agoComments, plus type sigs
simonpj@microsoft.com [Wed, 2 May 2007 16:38:54 +0000 (16:38 +0000)]
Comments, plus type sigs

16 years agoWarning police
simonpj@microsoft.com [Wed, 2 May 2007 16:38:33 +0000 (16:38 +0000)]
Warning police

16 years agoLayout only
simonpj@microsoft.com [Wed, 2 May 2007 16:38:15 +0000 (16:38 +0000)]
Layout only

16 years agoImport fiddling
simonpj@microsoft.com [Wed, 2 May 2007 16:37:46 +0000 (16:37 +0000)]
Import fiddling

16 years agoAdd more assertions
simonpj@microsoft.com [Wed, 2 May 2007 16:37:09 +0000 (16:37 +0000)]
Add more assertions

16 years agoUse the record fields of IdInfo.RecordSelId
simonpj@microsoft.com [Wed, 2 May 2007 16:36:18 +0000 (16:36 +0000)]
Use the record fields of IdInfo.RecordSelId

16 years agoMake records work properly with type families
simonpj@microsoft.com [Wed, 2 May 2007 16:34:57 +0000 (16:34 +0000)]
Make records work properly with type families

This fixes Trac #1204.  There's quite a delicate interaction of
GADTs, type families, records, and in particular record updates.

Test is indexed-types/should_compile/Records.hs

16 years agoRefactoring, tidyup and improve layering
Simon Marlow [Wed, 2 May 2007 13:54:34 +0000 (13:54 +0000)]
Refactoring, tidyup and improve layering

The stack of breakpoint resume contexts is now part of the
InteractiveContext and managed by the GHC API.  This prevents misuse
of the resume context by the client (e.g. resuming a breakpoint that
isn't the topmost, which would lead to a confused IC at the least).

I changed the TypeEnv in the IC to a [Id].  It only contained Ids
anyway, and this allows us to have shadowing, which removes an ugly
and annoying restriction.

The parts of the GHC API which deal with interactive evaluation are
now in a module of their own, InteractiveEval.

16 years agomove -fno-print-bind-result into the GHCi section
Simon Marlow [Wed, 2 May 2007 12:55:23 +0000 (12:55 +0000)]
move -fno-print-bind-result into the GHCi section

16 years agoPrint the "skipping" messages at verbosity 2 again
Simon Marlow [Wed, 2 May 2007 12:43:01 +0000 (12:43 +0000)]
Print the "skipping" messages at verbosity 2 again
This was accidentally changed to 1 in the HEAD a while ago, the
behaviour is now the same as 6.6.x again.

16 years agoImprove error reporting for type signatures
simonpj@microsoft.com [Wed, 2 May 2007 11:47:38 +0000 (11:47 +0000)]
Improve error reporting for type signatures

See Trac #1310

16 years agoDo not generate warnings for compiler-generated code
simonpj@microsoft.com [Wed, 2 May 2007 10:39:24 +0000 (10:39 +0000)]
Do not generate warnings for compiler-generated code

Fixes Trac #1313

16 years agoAdd ndp package to boring list
simonpj@microsoft.com [Wed, 2 May 2007 10:38:45 +0000 (10:38 +0000)]
Add ndp package to boring list

16 years agoDocument the fact that you can't make a newtype of an unboxed data type
simonpj@microsoft.com [Wed, 2 May 2007 10:38:15 +0000 (10:38 +0000)]
Document the fact that you can't make a newtype of an unboxed data type

16 years agoUse pprSourceTyCon; delete unused tyConOrigHead
simonpj@microsoft.com [Wed, 2 May 2007 10:36:32 +0000 (10:36 +0000)]
Use pprSourceTyCon; delete unused tyConOrigHead

17 years agoFixes to data type families
simonpj@microsoft.com [Wed, 2 May 2007 10:28:11 +0000 (10:28 +0000)]
Fixes to data type families

- Fix two distinct bugs, one in MkId.mkDataConIds, one in DataCon.mkDataCon
- Add more comments
- Add a little assertion checking in TyCon

Type-family tests now work.

17 years agoFix egregious typo in TcUnify
simonpj@microsoft.com [Fri, 27 Apr 2007 15:41:31 +0000 (15:41 +0000)]
Fix egregious typo in TcUnify

Tom S found this bug by inspection; we've never seen it
fail in the wild, but it was obviosly Utterly Wrong

17 years agoTypo in comments
simonpj@microsoft.com [Wed, 25 Apr 2007 16:13:06 +0000 (16:13 +0000)]
Typo in comments

17 years agoFix misleading debug trace
simonpj@microsoft.com [Wed, 25 Apr 2007 16:12:44 +0000 (16:12 +0000)]
Fix misleading debug trace

17 years agoImprove hashing of expressions for CSE (reduces warnings about extendCSEnv)
simonpj@microsoft.com [Wed, 25 Apr 2007 14:15:30 +0000 (14:15 +0000)]
Improve hashing of expressions for CSE (reduces warnings about extendCSEnv)

17 years agoremove unused primitives.xml
Simon Marlow [Wed, 2 May 2007 08:29:02 +0000 (08:29 +0000)]
remove unused primitives.xml

17 years agoFix grammar error in docs (as per Trac 1319)
Tim Chevalier [Wed, 2 May 2007 01:19:56 +0000 (01:19 +0000)]
Fix grammar error in docs (as per Trac 1319)

17 years agoStopping tick boxes for being removed round calls to error.
andy@galois.com [Tue, 1 May 2007 15:57:29 +0000 (15:57 +0000)]
Stopping tick boxes for being removed round calls to error.

17 years ago-fwarn-monomorphism-restriction is now off by default
Ian Lynagh [Tue, 1 May 2007 14:25:43 +0000 (14:25 +0000)]
-fwarn-monomorphism-restriction is now off by default

17 years agoAdd new skolem tyvars to the InteractiveContext after type reconstruction
Pepe Iborra [Tue, 1 May 2007 10:11:05 +0000 (10:11 +0000)]
Add new skolem tyvars to the InteractiveContext after type reconstruction

This was being done already for each binding added by :print,
but :sprint does not add any new binding, so we take care of it
separately

17 years agodocument the current behaviour of -Wall, see #1292
Simon Marlow [Tue, 1 May 2007 08:22:24 +0000 (08:22 +0000)]
document the current behaviour of -Wall, see #1292

17 years agodon't forget to enable ^C after a :cont or :step
Simon Marlow [Mon, 30 Apr 2007 15:06:45 +0000 (15:06 +0000)]
don't forget to enable ^C after a :cont or :step

17 years agotidyup comments and fix a few warnings
Simon Marlow [Mon, 30 Apr 2007 10:57:22 +0000 (10:57 +0000)]
tidyup comments and fix a few warnings

17 years agoChanging internal data structures used by Hpc
andy@galois.com [Mon, 30 Apr 2007 22:59:15 +0000 (22:59 +0000)]
Changing internal data structures used by Hpc

 - .tix files are now a list of MixModule, which contain a hash of the contents of the .mix file.
 - .mix files now have (the same) hash number.

This changes allow different binaries that use the same module compiled in the same way
to share coverage information.

17 years agoRemove skolem tyvars from the InteractiveContext once they have been instantiated...
Pepe Iborra [Mon, 30 Apr 2007 18:45:22 +0000 (18:45 +0000)]
Remove skolem tyvars from the InteractiveContext once they have been instantiated by :print

17 years agoRestore tidying up of tyvars in :print
Pepe Iborra [Mon, 30 Apr 2007 17:12:16 +0000 (17:12 +0000)]
Restore tidying up of tyvars in :print

It wasn't a good idea to disable it

17 years agoMake GHCi's banner fit in a standard 80-column terminal
Ian Lynagh [Mon, 30 Apr 2007 15:17:37 +0000 (15:17 +0000)]
Make GHCi's banner fit in a standard 80-column terminal

17 years agoMake boot handle getting the libraries
Ian Lynagh [Mon, 30 Apr 2007 11:35:19 +0000 (11:35 +0000)]
Make boot handle getting the libraries

17 years agoHandle unbuildable packages differently
Ian Lynagh [Mon, 30 Apr 2007 11:15:40 +0000 (11:15 +0000)]
Handle unbuildable packages differently
Now we require that configure fails, and use our own signalling rather
than Cabal's buildable field.

17 years agoSet rts/gmp/configure executable when booting
Ian Lynagh [Mon, 30 Apr 2007 10:25:53 +0000 (10:25 +0000)]
Set rts/gmp/configure executable when booting

17 years agoLook for -q in the darcs flags as well as the darcs-all flags
Ian Lynagh [Mon, 30 Apr 2007 10:16:12 +0000 (10:16 +0000)]
Look for -q in the darcs flags as well as the darcs-all flags

17 years agoPut the darcs-all command parsing into main() so it can use @_
Ian Lynagh [Sun, 29 Apr 2007 17:27:34 +0000 (17:27 +0000)]
Put the darcs-all command parsing into main() so it can use @_

17 years agoMake darcs-all a perl script
Ian Lynagh [Sun, 29 Apr 2007 14:00:04 +0000 (14:00 +0000)]
Make darcs-all a perl script
This fixes a problem where patches altering the darcs-all script break
on Windows as the file is open. The script is now also slightly nicer,
on balance.

17 years agoDon't enable the monomorphism warning by default
Ian Lynagh [Sun, 29 Apr 2007 12:06:25 +0000 (12:06 +0000)]
Don't enable the monomorphism warning by default

17 years agooutside of runStmt, if a breakpoint is hit then just print a message
Simon Marlow [Fri, 27 Apr 2007 15:39:48 +0000 (15:39 +0000)]
outside of runStmt, if a breakpoint is hit then just print a message

17 years agogive the statements under evaluation in the ":show context" output
Simon Marlow [Fri, 27 Apr 2007 15:38:52 +0000 (15:38 +0000)]
give the statements under evaluation in the ":show context" output

17 years agobreak by function: make sure we get the correct file
Simon Marlow [Fri, 27 Apr 2007 14:45:54 +0000 (14:45 +0000)]
break by function: make sure we get the correct file
Sometimes parts of a source file come from different places due to
preprocessing, and the lines can overlap.

17 years agoBreakpoints: don't attempt to bind variables with unboxed types
Simon Marlow [Fri, 27 Apr 2007 14:20:36 +0000 (14:20 +0000)]
Breakpoints: don't attempt to bind variables with unboxed types

17 years agoWe shouldn't let-bind expressions with unlifted type
Simon Marlow [Fri, 27 Apr 2007 14:20:13 +0000 (14:20 +0000)]
We shouldn't let-bind expressions with unlifted type
Now I can single step through Happy-generated parsers

17 years agoadd missing @ (see bug #1302)
Simon Marlow [Fri, 27 Apr 2007 12:26:17 +0000 (12:26 +0000)]
add missing @ (see bug #1302)

17 years agodon't forget to clean the .bat files
Simon Marlow [Fri, 27 Apr 2007 12:12:03 +0000 (12:12 +0000)]
don't forget to clean the .bat files
See bug #1295

17 years agoBasic heap profile support without -prof
Simon Marlow [Fri, 27 Apr 2007 12:01:13 +0000 (12:01 +0000)]
Basic heap profile support without -prof

Now that constructor info tables contain the name of the constructor,
we can generate useful heap profiles without requiring the whole
program and libraries to be compiled with -prof.  So now, "+RTS -hT"
generates a heap profile for any program, dividing the profile by
constructor.  It wouldn't be hard to add support for grouping
constructors by module, or to restrict the profile to certain
constructors/modules/packages.

This means that for the first time we can get heap profiles for GHCi,
which was previously impossible because the byte-code
interpreter and linker don't work with -prof.