ghc.git
12 years agoAdd parallel extralib
Ian Lynagh [Fri, 18 May 2007 16:54:11 +0000 (16:54 +0000)] 
Add parallel extralib

12 years agoWe now need a bootstrapping pretty package as Cabal depends on it
Ian Lynagh [Fri, 18 May 2007 16:25:04 +0000 (16:25 +0000)] 
We now need a bootstrapping pretty package as Cabal depends on it

12 years agowibble
Pepe Iborra [Thu, 24 May 2007 11:46:21 +0000 (11:46 +0000)] 
wibble

12 years agoImprove the interaction of 'seq' and associated data types
simonpj@microsoft.com [Wed, 23 May 2007 11:48:18 +0000 (11:48 +0000)] 
Improve the interaction of 'seq' and associated data types

Roman produced programs involving associated types that did not optimise well.
His programs were something like this:

  data family T a
  data instance T Int = MkT Bool Char

  bar :: T Int -> Int
  bar t = t `seq` loop 0
where
  loop = ...

You'd think that the `seq` should unbox 't' outside the loop, since
a (T Int) is just a MkT pair.

The most robust way to make this happen is for the simplifier to understand
a bit about type-family instances.   See
Note [Improving seq]
in Simplify.lhs.  We use FamInstEnv.topNormaliseType to do the interesting
work.

To make this happen I did a bit of refactoring to the simplifier
monad.

I'd previously done a very similar transformation in LiberateCase, but it
was happening too late.  So this patch takes it out of LiberateCase as
well as adding it to Simplify.

12 years agoIn GHCi, bind identifiers at TH level 'impLevel'
simonpj@microsoft.com [Wed, 23 May 2007 11:42:53 +0000 (11:42 +0000)] 
In GHCi, bind identifiers at TH level 'impLevel'

Consder Trac #1265, which does this in GHCi:

Prelude> let doit = fail "Code not written yet" :: ExpQ
Prelude> $(doit)

Even though 'doit' is defined "in the same module", it's OK to use it in a splice
because it'll have been fully compiled to bytecode.  (Contrast the situation if
these two lines appeared in a single, compiled module.)

Hence we want to bind 'doit' at TH's "imported level" (TcRnTypes.impLevel).
This used to happen because GHCi-bound Ids were in the *global* type
env (and hence at "imported level").  But since SimonM moved
GHCi-bound ids to the *local* type env (for good reasons) the above
program has been rejected.

This patch makes it work again.

12 years agoWhite-space only
simonpj@microsoft.com [Wed, 23 May 2007 11:41:03 +0000 (11:41 +0000)] 
White-space only

12 years agoDrop redundant import
simonpj@microsoft.com [Wed, 23 May 2007 11:39:55 +0000 (11:39 +0000)] 
Drop redundant import

12 years agoDocument -fomit-interface-pragmas, -fignore-interface-pragmas
simonpj@microsoft.com [Mon, 21 May 2007 09:33:08 +0000 (09:33 +0000)] 
Document -fomit-interface-pragmas, -fignore-interface-pragmas

12 years agotype family normalisation
Tom Schrijvers [Fri, 11 May 2007 17:09:28 +0000 (17:09 +0000)] 
type family normalisation

12 years agoImprove error message when 'main' is not defined
simonpj@microsoft.com [Mon, 14 May 2007 08:02:15 +0000 (08:02 +0000)] 
Improve error message when 'main' is not defined

12 years agoClean up for code conventions & add some comment
Pepe Iborra [Wed, 23 May 2007 09:26:22 +0000 (09:26 +0000)] 
Clean up for code conventions & add some comment

12 years agoOccNames for closure conversion isomorphisms
Roman Leshchinskiy [Fri, 11 May 2007 01:39:32 +0000 (01:39 +0000)] 
OccNames for closure conversion isomorphisms

12 years agoModify generation of OccNames for closure conversion
Roman Leshchinskiy [Thu, 10 May 2007 01:50:27 +0000 (01:50 +0000)] 
Modify generation of OccNames for closure conversion

12 years agoAdd data type information to VectInfo
Manuel M T Chakravarty [Tue, 22 May 2007 09:27:29 +0000 (09:27 +0000)] 
Add data type information to VectInfo

12 years agoKeep flattenCgStmts from emitting spurious 'goto' after CmmSwitch
Michael D. Adams [Mon, 21 May 2007 11:29:12 +0000 (11:29 +0000)] 
Keep flattenCgStmts from emitting spurious 'goto' after CmmSwitch

12 years agofollow removal of Distribtion.Compat.FilePath
Simon Marlow [Mon, 21 May 2007 13:42:32 +0000 (13:42 +0000)] 
follow removal of Distribtion.Compat.FilePath

12 years agoseparate the Windows version of uploading the docs, and fix it
Simon Marlow [Mon, 21 May 2007 10:45:34 +0000 (10:45 +0000)] 
separate the Windows version of uploading the docs, and fix it

12 years agouse relative dir for uploading to avoid problems on Windows
Simon Marlow [Mon, 21 May 2007 08:31:55 +0000 (08:31 +0000)] 
use relative dir for uploading to avoid problems on Windows

12 years agoGet the path right for :list
Pepe Iborra [Sun, 20 May 2007 23:24:14 +0000 (23:24 +0000)] 
Get the path right for :list

12 years agodoc: 'import M' is the same as ':module +M'
Simon Marlow [Mon, 21 May 2007 08:51:34 +0000 (08:51 +0000)] 
doc: 'import M' is the same as ':module +M'

12 years agoUse -cpp when building installPackage, so we can build the Cabal/filepath code
Ian Lynagh [Sun, 20 May 2007 17:54:30 +0000 (17:54 +0000)] 
Use -cpp when building installPackage, so we can build the Cabal/filepath code

12 years agowibble
Pepe Iborra [Sun, 20 May 2007 11:22:52 +0000 (11:22 +0000)] 
wibble

12 years agoClean up & comments
Pepe Iborra [Sun, 20 May 2007 11:21:41 +0000 (11:21 +0000)] 
Clean up & comments

12 years agocvReconstructType: a faster, types-only version of cvObtainTerm
Pepe Iborra [Sun, 20 May 2007 11:07:47 +0000 (11:07 +0000)] 
cvReconstructType: a faster, types-only version of cvObtainTerm

12 years agoFastMutInt - make #endif be inside \{code} to match #ifdef
Isaac Dupree [Sat, 19 May 2007 19:50:29 +0000 (19:50 +0000)] 
FastMutInt - make #endif be inside \{code} to match #ifdef

12 years agoFastTypes - delete ugly _signatures, comment on Bool not FastBool where the typecheck...
Isaac Dupree [Mon, 30 Apr 2007 19:59:44 +0000 (19:59 +0000)] 
FastTypes - delete ugly _signatures, comment on Bool not FastBool where the typechecker will not catch it

12 years agoFastTypes - note strictness of fast{Or,And} and make the unboxed versions so
Isaac Dupree [Mon, 30 Apr 2007 19:58:10 +0000 (19:58 +0000)] 
FastTypes - note strictness of fast{Or,And} and make the unboxed versions so

12 years agofix non-GHC-specific variant of FastTypes
Isaac Dupree [Sun, 29 Apr 2007 19:14:22 +0000 (19:14 +0000)] 
fix non-GHC-specific variant of FastTypes
I tested FastTypes.lhs with hugs (manually using cpp) as well as ghc.

12 years agoRewrite the unsafe code dealing with unboxed primitives in RtClosureInspect
Pepe Iborra [Sat, 19 May 2007 22:05:26 +0000 (22:05 +0000)] 
Rewrite the unsafe code dealing with unboxed primitives in RtClosureInspect

Closure uses now a list of Words instead of a ByteArray# to store the non ptrs.
Term.Prim follows this and keeps the [Word] value instead of storing the
Show representation, which wasn't the best idea anyway.

This fixes test print022

12 years agoAvoid the need to rerun configure when we install
Ian Lynagh [Fri, 18 May 2007 15:20:17 +0000 (15:20 +0000)] 
Avoid the need to rerun configure when we install
This also means we don't need to carry around 10s of megs of Setup
executables in bindists.

12 years ago'import M' is now the same as ':module +M' at the prompt
Simon Marlow [Fri, 18 May 2007 14:56:35 +0000 (14:56 +0000)] 
'import M' is now the same as ':module +M' at the prompt
Seemed like a reasonable thing to do, and only 1 line

12 years agoFIX: break011.
Simon Marlow [Fri, 18 May 2007 14:37:08 +0000 (14:37 +0000)] 
FIX: break011.
Reset the exception flag before re-throwing the exception unless it
was "Interrupted".  This avoids needing the double :continue for
ordinary exceptions, but still lets us break on ^C.

12 years agoimprove break-by-coordinate
Simon Marlow [Fri, 18 May 2007 13:45:56 +0000 (13:45 +0000)] 
improve break-by-coordinate
when setting a breakpoint by coordinate, if there are no spans
covering the specified coordinate, then we take the leftmost of the
spans to the right of the coordinate.  This means that ':break c' will
work if c is not a function, because the first span will be on c's
right hand side.

12 years agoOn Windows, don't try to use ANSI bold sequences.
Simon Marlow [Fri, 18 May 2007 13:35:43 +0000 (13:35 +0000)] 
On Windows, don't try to use ANSI bold sequences.
Instead we identify the active expression with a line of ^^^^^^^
underneath it.

12 years agorethrow exceptions in sandboxIO
Simon Marlow [Thu, 17 May 2007 12:21:47 +0000 (12:21 +0000)] 
rethrow exceptions in sandboxIO
This gives us a chance to catch asynchronous exceptions (e.g. ^C) and break.

12 years agoeliminate warnings
Simon Marlow [Thu, 17 May 2007 12:21:02 +0000 (12:21 +0000)] 
eliminate warnings

12 years agoxref to the docs for +RTS -xc
Simon Marlow [Thu, 17 May 2007 12:00:37 +0000 (12:00 +0000)] 
xref to the docs for +RTS -xc

12 years agoFIX #767 (withMVar family have a bug)
Simon Marlow [Fri, 18 May 2007 12:25:05 +0000 (12:25 +0000)] 
FIX #767 (withMVar family have a bug)
We never want to raise a StackOverflow exception inside
Control.Exception.block, because the user has no reasonable way of
handling it, and it invalidates some useful guarantees.

12 years agoremove old comments and commented-out code
Simon Marlow [Fri, 18 May 2007 12:23:33 +0000 (12:23 +0000)] 
remove old comments and commented-out code

12 years agoUpdate the panic msg from #1257 to be an ordinary error, not a panic
Simon Marlow [Fri, 18 May 2007 12:12:29 +0000 (12:12 +0000)] 
Update the panic msg from #1257 to be an ordinary error, not a panic
We don't support arbitrary unboxed tuples in GHCi right now.

12 years agoautodetect BINDIST_DOC_WAYS again
Simon Marlow [Fri, 18 May 2007 08:51:28 +0000 (08:51 +0000)] 
autodetect BINDIST_DOC_WAYS again

12 years agoFIX #1052 (NCG doesn't realise shift instructions trash shifted input)
Simon Marlow [Fri, 18 May 2007 11:53:30 +0000 (11:53 +0000)] 
FIX #1052 (NCG doesn't realise shift instructions trash shifted input)
See comments with shift_code

12 years agoAdd dist/ to $(PublishLocation)
Simon Marlow [Fri, 18 May 2007 08:58:11 +0000 (08:58 +0000)] 
Add dist/ to $(PublishLocation)
The docs were going in the wrong place before:
..../dist/docs instead of ..../docs

12 years agoremove _split and autogen dirs for binary-dist
Simon Marlow [Fri, 18 May 2007 08:46:56 +0000 (08:46 +0000)] 
remove _split and autogen dirs for binary-dist

12 years agofix ordering in :help
Simon Marlow [Thu, 17 May 2007 11:55:28 +0000 (11:55 +0000)] 
fix ordering in :help

12 years agocomplete documentation of the GHCi debugger
Simon Marlow [Thu, 17 May 2007 11:55:03 +0000 (11:55 +0000)] 
complete documentation of the GHCi debugger

12 years agoadd :cmd
Simon Marlow [Thu, 17 May 2007 11:05:55 +0000 (11:05 +0000)] 
add :cmd
:cmd <expr> executes <expr> :: IO String, takes the resulting string
and executes it as a sequence of commands.  This is useful for doing
macro-ish things with ":set stop", for example.

12 years agoRework the GHCi debugger docs
Simon Marlow [Wed, 16 May 2007 14:14:11 +0000 (14:14 +0000)] 
Rework the GHCi debugger docs
I've taken material from Bernie's docs on the wiki, and Pepe's docs in
this file, and added some more material of my own.  Still to do:
document the individual commands.

12 years agoadd a comment
Simon Marlow [Wed, 16 May 2007 13:35:13 +0000 (13:35 +0000)] 
add a comment

12 years agoraise#: break *after* stripping the stack, not before
Simon Marlow [Wed, 16 May 2007 13:35:03 +0000 (13:35 +0000)] 
raise#: break *after* stripping the stack, not before
This means that thunks under evaluation will have been updated with
the exception when we come to inspect them in GHCi.  Blackholes are
much less friendly.

12 years agoAdd a missing semicolon causing publish-binary-dist to fail
Ian Lynagh [Wed, 16 May 2007 23:16:15 +0000 (23:16 +0000)] 
Add a missing semicolon causing publish-binary-dist to fail

12 years agoFIX BUILD Use the right find on Windows systems; fixes bindist creation
Ian Lynagh [Wed, 16 May 2007 12:16:07 +0000 (12:16 +0000)] 
FIX BUILD Use the right find on Windows systems; fixes bindist creation

12 years agolater mingw runtimes have gettimeofday, it seems
Simon Marlow [Wed, 16 May 2007 11:23:40 +0000 (11:23 +0000)] 
later mingw runtimes have gettimeofday, it seems

12 years ago'let' expressions: fix scope of the binders (see test break014)
Simon Marlow [Wed, 16 May 2007 10:06:22 +0000 (10:06 +0000)] 
'let' expressions: fix scope of the binders (see test break014)

12 years agoAvoid some unnecessary ticks in debugging mode
Simon Marlow [Wed, 16 May 2007 10:05:44 +0000 (10:05 +0000)] 
Avoid some unnecessary ticks in debugging mode

12 years agocomment out unused definition
Simon Marlow [Wed, 16 May 2007 10:04:45 +0000 (10:04 +0000)] 
comment out unused definition

12 years agoFIX BUILD for way=u in RTS
Simon Marlow [Wed, 16 May 2007 08:39:39 +0000 (08:39 +0000)] 
FIX BUILD for way=u in RTS

12 years agoFIX BUILD with ghc-6.2.x
Simon Marlow [Wed, 16 May 2007 08:07:49 +0000 (08:07 +0000)] 
FIX BUILD with ghc-6.2.x

12 years agoAdd a missing backslash that was breaking building bindists
Ian Lynagh [Tue, 15 May 2007 13:47:34 +0000 (13:47 +0000)] 
Add a missing backslash that was breaking building bindists

12 years agoGHCi debugger: new flag -fbreak-on-exception
Simon Marlow [Tue, 15 May 2007 12:45:54 +0000 (12:45 +0000)] 
GHCi debugger: new flag -fbreak-on-exception

When -fbreak-on-exception is set, an exception will cause GHCi to
suspend the current computation and return to the prompt, where the
history of the current evaluation can be inspected (if we are in
:trace).  This isn't on by default, because the behaviour could be
confusing: for example, ^C will cause a breakpoint.  It can be very
useful for finding the cause of a "head []" or a "fromJust Nothing",
though.

12 years agosmall performance improvement: unbox some fields
Simon Marlow [Tue, 15 May 2007 09:11:09 +0000 (09:11 +0000)] 
small performance improvement: unbox some fields

12 years agoresult_id should be a GlobalId
Simon Marlow [Mon, 14 May 2007 15:30:40 +0000 (15:30 +0000)] 
result_id should be a GlobalId

12 years agoFix invalid simplification I made while moving the libraries bindist stuff
Ian Lynagh [Tue, 15 May 2007 12:25:45 +0000 (12:25 +0000)] 
Fix invalid simplification I made while moving the libraries bindist stuff

12 years agoIface representation of synonym family instances
Manuel M T Chakravarty [Tue, 15 May 2007 08:14:21 +0000 (08:14 +0000)] 
Iface representation of synonym family instances

  ** This patch changes the interface file format.  All libraries etc **
  ** need to be compiled from scratch.                                **

12 years agoAdded -ftype-families to the user's manual
Manuel M T Chakravarty [Tue, 15 May 2007 01:20:36 +0000 (01:20 +0000)] 
Added -ftype-families to the user's manual
- This adds the option to the flag reference and puts a stub pointing to the
  Haskell wiki page about type families into the section about type extensions.
- Once, the implementation has stabilised, the material from the wiki page
  will be integreated into the user's manual.

12 years agoAdd filepath modules to compat/
Ian Lynagh [Mon, 14 May 2007 17:28:59 +0000 (17:28 +0000)] 
Add filepath modules to compat/

12 years ago-findexed-types -> -ftype-families
Manuel M T Chakravarty [Mon, 14 May 2007 11:53:34 +0000 (11:53 +0000)] 
-findexed-types -> -ftype-families
. This change tracks our current terminology.  It'll break all programs
  using the old option, sorry.  But this has only been an experimental
  feature in the HEAD so far.

12 years agoremove accidentally-committed change
Simon Marlow [Mon, 14 May 2007 10:55:16 +0000 (10:55 +0000)] 
remove accidentally-committed change

12 years agofix for Vista workaround: "PATH" can be spelt "Path"
Simon Marlow [Mon, 14 May 2007 10:45:09 +0000 (10:45 +0000)] 
fix for Vista workaround: "PATH" can be spelt "Path"

12 years agoRevised signature of tcLookupFamInst and lookupFamInstEnv
Manuel M T Chakravarty [Mon, 14 May 2007 06:52:34 +0000 (06:52 +0000)] 
Revised signature of tcLookupFamInst and lookupFamInstEnv
- This changes the signature of FamInstEnv.lookupFamInstEnv and
  FamInstEnv.lookupFamInstEnvUnify in a manner similar to SPJ's
  previous patch for InstEnv.llokupInstEnv
- tcLookupFamInst now permits the lookup of instances that are more
  general than the type instance requested.

12 years agoRemove non-functional uninstall Makefile target
Ian Lynagh [Sun, 13 May 2007 17:38:18 +0000 (17:38 +0000)] 
Remove non-functional uninstall Makefile target

12 years agoMove the libraries bindist generation code into libraries/Makefile
Ian Lynagh [Sun, 13 May 2007 16:34:51 +0000 (16:34 +0000)] 
Move the libraries bindist generation code into libraries/Makefile
This should mean it works even when some libraries are unbuildable.

12 years agoCabal now uses filepath, so we need a bootstrapping filepath too
Ian Lynagh [Wed, 9 May 2007 14:25:57 +0000 (14:25 +0000)] 
Cabal now uses filepath, so we need a bootstrapping filepath too

12 years agoTweak generation of generated files
Ian Lynagh [Sat, 12 May 2007 12:37:36 +0000 (12:37 +0000)] 
Tweak generation of generated files
Use "chmod a-w" rather than "chmod 444", and allow the command used to
be overridden.

12 years agoCorrect an egregious typo in LiberateCase that emasculated it
simonpj@microsoft.com [Fri, 11 May 2007 15:55:07 +0000 (15:55 +0000)] 
Correct an egregious typo in LiberateCase that emasculated it

Somehow in the patch
  * Record-ise the liberate-case envt, in preparation for new stuff
I managed to make lookupLevelEnv do entirely the wrong thing.

I think it was just a typo.  The result was that LiberateCase essentially
never did anything any more.

Easily fixed though!

12 years agodon't remove c++ files from Windows binary distribution
Simon Marlow [Fri, 11 May 2007 14:53:52 +0000 (14:53 +0000)] 
don't remove c++ files from Windows binary distribution

12 years agoSupport for adding custom commands to an individual breakpoint
Simon Marlow [Fri, 11 May 2007 12:49:29 +0000 (12:49 +0000)] 
Support for adding custom commands to an individual breakpoint

  :set stop N <cmd>

runs <cmd> when breakpoint N is hit.  Note that the command to run
might be a macro (defined with :def), and the macro can invoke
:continue, so it is now possible to do clever things like conditional
breakpoints, or ignoring the next K hits of a breakpoint.

12 years agoFixed copy-and-paste error in the machOps of compiler/cmm/CmmParse.y
Michael D. Adams [Fri, 11 May 2007 13:25:57 +0000 (13:25 +0000)] 
Fixed copy-and-paste error in the machOps of compiler/cmm/CmmParse.y

12 years agoRemoved UNBOX_FIELD from HsVersions.h since it is not used anywhere.
Michael D. Adams [Fri, 11 May 2007 10:53:22 +0000 (10:53 +0000)] 
Removed UNBOX_FIELD from HsVersions.h since it is not used anywhere.

12 years agoFixed a minor redundancy in the C-- lexer
Michael D. Adams [Thu, 10 May 2007 15:14:54 +0000 (15:14 +0000)] 
Fixed a minor redundancy in the C-- lexer

12 years agoFixed the C-- lexer to comply with the standard on hex escape sequences.
Michael D. Adams [Thu, 10 May 2007 15:03:50 +0000 (15:03 +0000)] 
Fixed the C-- lexer to comply with the standard on hex escape sequences.
The C-- standard [1] says in Section 3.3.5 "Character literals" that:
 - the hex escape sequence "must contain at least one and
   at most two hexdigits."
 - the octal escape sequence "must contain at least one and
   at most three octdigits."

[1] Norman Ramsey, Simon Peyton Jones, and Christian Lindig.
    "The C-- Language Specication, Version 2.0 ( CVS Revision 1.128 )"
    <http://www.cminusminus.org/extern/man2.pdf>

12 years agoDocumented the Unicode tricks that are being played in the lexers
Michael D. Adams [Thu, 10 May 2007 14:59:35 +0000 (14:59 +0000)] 
Documented the Unicode tricks that are being played in the lexers

12 years agoFixed apparent typo in STRICT1(f) of HsVersions.h
Michael D. Adams [Fri, 4 May 2007 14:23:25 +0000 (14:23 +0000)] 
Fixed apparent typo in STRICT1(f) of HsVersions.h

12 years agoRemove the distinction between data and newtype families
Manuel M T Chakravarty [Fri, 11 May 2007 11:30:57 +0000 (11:30 +0000)] 
Remove the distinction between data and newtype families
- This patch removes "newtype family" declarations.
- "newtype instance" declarations can now be instances of data families
- This also fixes bug #1331

  ** This patch changes the interface format.  All libraries and all of **
  ** Stage 2 & 3 need to be re-compiled from scratch.                   **

12 years agoFIX BUILD: revert accidentally-committed patch
Simon Marlow [Fri, 11 May 2007 07:29:44 +0000 (07:29 +0000)] 
FIX BUILD: revert accidentally-committed patch

12 years agoStore a SrcSpan instead of a SrcLoc inside a Name
Simon Marlow [Fri, 11 May 2007 10:49:26 +0000 (10:49 +0000)] 
Store a SrcSpan instead of a SrcLoc inside a Name
This has been a long-standing ToDo.

12 years agoimprove :abandon, it wasn't properly terminating the computation (see comments)
Simon Marlow [Fri, 11 May 2007 09:07:19 +0000 (09:07 +0000)] 
improve :abandon, it wasn't properly terminating the computation (see comments)

12 years agorefactoring only
Simon Marlow [Fri, 11 May 2007 07:55:05 +0000 (07:55 +0000)] 
refactoring only

12 years agoAdd a warning flag for when the Prelude is implicitly imported (trac #1317)
Isaac Dupree [Fri, 11 May 2007 08:45:25 +0000 (08:45 +0000)] 
Add a warning flag for when the Prelude is implicitly imported (trac #1317)
GHC already determines all the implicit (Prelude) imports,
so we just need to check whether there are any of those,
for each module being compiled.

12 years agoComments only
simonpj@microsoft.com [Fri, 11 May 2007 08:40:17 +0000 (08:40 +0000)] 
Comments only

12 years agoFIX #1181: parseStaticFlags should not be required
Simon Marlow [Thu, 10 May 2007 15:45:42 +0000 (15:45 +0000)] 
FIX #1181: parseStaticFlags should not be required

- parseStaticFlags is now not required, but if it is called, it should
  be called only once and before newSession, otherwise you get an
  error.
- parseStaticFlags is exported from GHC

12 years agoFIX: loading the ghc package under GHCi
Simon Marlow [Thu, 10 May 2007 14:42:29 +0000 (14:42 +0000)] 
FIX: loading the ghc package under GHCi

12 years agoremove now-unused usage information (#1003)
Simon Marlow [Thu, 10 May 2007 13:50:07 +0000 (13:50 +0000)] 
remove now-unused usage information (#1003)

12 years agoFIX #1321: problems with accessing the interpreter's Handles
Simon Marlow [Thu, 10 May 2007 13:37:21 +0000 (13:37 +0000)] 
FIX #1321: problems with accessing the interpreter's Handles

I've had to redo the way we turn off buffering and flush the
stdin/stdout/stderr Handles in the dynamically-loaded base package.
Compiling the expression "hSetBuffering stdout NoBuffering" and then
re-using the compiled expression didn't work sometimes (see comments
for details).  Now, I'm explicitly looking up the address the stdout
closure and re-using that.  It should be more robust, if somewhat
unclean.

12 years agoWarning fix for unused and redundant imports
Michael D. Adams [Thu, 10 May 2007 09:31:35 +0000 (09:31 +0000)] 
Warning fix for unused and redundant imports

12 years agoFix cloning bugs in SpecConstr
simonpj@microsoft.com [Thu, 10 May 2007 09:31:13 +0000 (09:31 +0000)] 
Fix cloning bugs in SpecConstr

These bugs produced a core-lint error when compiling
GHC.PArr with -O2.  Roman found and fixed them; this
patch also includes some type synonyms to make things a
bit clearer.

12 years agoDead code elimination
simonpj@microsoft.com [Thu, 10 May 2007 09:30:01 +0000 (09:30 +0000)] 
Dead code elimination

12 years agoimprove comments about x86-64 relative-offset hackery
Simon Marlow [Thu, 10 May 2007 09:31:35 +0000 (09:31 +0000)] 
improve comments about x86-64 relative-offset hackery

12 years agoFIX #1343: regex bug in the x86_64 mangler settings
Simon Marlow [Thu, 10 May 2007 09:20:19 +0000 (09:20 +0000)] 
FIX #1343: regex bug in the x86_64 mangler settings

12 years agoFIX BUILD: remove accidentally committed hunk
Simon Marlow [Thu, 10 May 2007 08:15:54 +0000 (08:15 +0000)] 
FIX BUILD: remove accidentally committed hunk