ghc.git
7 years agoAdd docbook-ised external-core doc; from #5844, by James H. Fisher
Ian Lynagh [Tue, 14 Feb 2012 14:43:08 +0000 (14:43 +0000)] 
Add docbook-ised external-core doc; from #5844, by James H. Fisher

7 years agoRemove the old ext-core docs
Ian Lynagh [Tue, 14 Feb 2012 14:47:41 +0000 (14:47 +0000)] 
Remove the old ext-core docs

They've now been merged into the user guide.

7 years agoMinor documentation fix
Simon Hengel [Tue, 14 Feb 2012 14:01:52 +0000 (15:01 +0100)] 
Minor documentation fix

Add a missing 'be' to Haddock comment of `HscTarget`.

7 years agoRefactoring: make IIModule contain ModuleName, not Module, for consistency
Simon Marlow [Tue, 14 Feb 2012 13:24:25 +0000 (13:24 +0000)] 
Refactoring: make IIModule contain ModuleName, not Module, for consistency

7 years agoRefactoring, and fix a couple of SafeHaskell-related things
Simon Marlow [Tue, 14 Feb 2012 10:24:34 +0000 (10:24 +0000)] 
Refactoring, and fix a couple of SafeHaskell-related things

When -XSafe is on:
  - ":load M" should default to adding M to the context (rather than *M).
  - "import M" should do the appropriate trust check

Also various refactoring and comments added, hopefully the code is
easier to read now.

7 years agoRevert "Don't add a bad import to the saved context."
Simon Marlow [Mon, 13 Feb 2012 13:22:20 +0000 (13:22 +0000)] 
Revert "Don't add a bad import to the saved context."

This reverts commit e5272d9bf2a65b7da8364803fcafbd2012b7de97.

Reverting to fix validate regression, and pending a redesign of the
changes.

7 years agoRevert "Have :load work under -XSafe in GHCi."
Simon Marlow [Mon, 13 Feb 2012 13:21:42 +0000 (13:21 +0000)] 
Revert "Have :load work under -XSafe in GHCi."

This reverts commit 5e9e07a33e17da01245f0cea78e6a6f8a32ac77d.

Reverting to fix validate regression, and pending a redesign of the
changes.

7 years ago.cmm files need to depend on DerivedConstants.h
Simon Marlow [Mon, 13 Feb 2012 11:18:08 +0000 (11:18 +0000)] 
.cmm files need to depend on DerivedConstants.h

7 years agoAllocate pinned object blocks from the nursery, not the global
Simon Marlow [Mon, 13 Feb 2012 11:17:50 +0000 (11:17 +0000)] 
Allocate pinned object blocks from the nursery, not the global
allocator.

Prompted by a benchmark posted to parallel-haskell@haskell.org by
Andreas Voellmy <andreas.voellmy@gmail.com>.  This program exhibits
contention for the block allocator when run with -N2 and greater
without the fix:

{-# LANGUAGE MagicHash, UnboxedTuples, BangPatterns #-}
module Main where

import Control.Monad
import Control.Concurrent
import System.Environment
import GHC.IO
import GHC.Exts
import GHC.Conc

main = do
 [m] <- fmap (fmap read) getArgs
 n <- getNumCapabilities
 ms <- replicateM n newEmptyMVar
 sequence [ forkIO $ busyWorkerB (m `quot` n) >> putMVar mv () | mv <- ms ]
 mapM takeMVar ms

busyWorkerB :: Int -> IO ()
busyWorkerB n_loops = go 0
  where go !n | n >= n_loops = return ()
              | otherwise    =
          do p <- (IO $ \s ->
                    case newPinnedByteArray# 1024# s      of
                      { (# s', mbarr# #) ->
                           (# s', () #)
                      }
                  )
             go (n+1)

7 years agoMinor documentation fix
Simon Hengel [Wed, 8 Feb 2012 07:38:35 +0000 (08:38 +0100)] 
Minor documentation fix

Add a missing 'to' to the documentation of "Safe Haskell".

7 years agoImprove FreeBSD support in configure
Ian Lynagh [Sat, 11 Feb 2012 14:23:56 +0000 (14:23 +0000)] 
Improve FreeBSD support in configure

Patch from Sergei Trofimovich.

7 years agoAdd dragonfly support; based on a patch from Goetz Isenmann
Ian Lynagh [Sat, 11 Feb 2012 13:33:01 +0000 (13:33 +0000)] 
Add dragonfly support; based on a patch from Goetz Isenmann

7 years agoFix some more sh syntax in configure.ac
Ian Lynagh [Fri, 10 Feb 2012 19:38:51 +0000 (19:38 +0000)] 
Fix some more sh syntax in configure.ac

7 years agoFix equality testing for test(1) on FreeBSD
Gabor Pali [Wed, 8 Feb 2012 17:30:38 +0000 (17:30 +0000)] 
Fix equality testing for test(1) on FreeBSD

7 years agoHave :load work under -XSafe in GHCi.
David Terei [Thu, 9 Feb 2012 11:45:24 +0000 (03:45 -0800)] 
Have :load work under -XSafe in GHCi.

7 years agoDon't add a bad import to the saved context.
David Terei [Thu, 9 Feb 2012 02:35:54 +0000 (18:35 -0800)] 
Don't add a bad import to the saved context.

Importing an unsafe module in GHCi under -XSafe would fail
but still save that in the context so it would be retried
on every subsequent import.

7 years agoDon't allow implicit qualified imports in GHCi when -XSafe on.
David Terei [Thu, 9 Feb 2012 01:24:49 +0000 (17:24 -0800)] 
Don't allow implicit qualified imports in GHCi when -XSafe on.

It would be better to actually check the safety of the import but doing
that requires some significant refactoring of code so punting for
another day.

7 years agoAdd script for sending bug remilestoning e-mails
Ian Lynagh [Fri, 10 Feb 2012 16:12:21 +0000 (16:12 +0000)] 
Add script for sending bug remilestoning e-mails

7 years agoMerge branch 'master' of http://darcs.haskell.org/ghc
Simon Peyton Jones [Fri, 10 Feb 2012 15:34:07 +0000 (15:34 +0000)] 
Merge branch 'master' of darcs.haskell.org/ghc

7 years agoComplete fix of #5820
Simon Peyton Jones [Fri, 10 Feb 2012 15:33:53 +0000 (15:33 +0000)] 
Complete fix of #5820

There are two related changes in here

a) Fix TcRnDriver.setInteractiveContext so that it initialises
   tcg_insts and tcg_fam_insts, as well as the corresponding
   tcg_inst_env and tcg_fam_inst_env fields.  Vital!

b) Fix FamInst.tcExtendLocalFamInstEnv for the GHCi case.
   It had a special HACK to allow family instances to be overridden
   in GHCi.  Fair enough, but
     * It was only affecting the tcg_fam_inst_env, not tcg_fam_insts
     * It overrode home-package instances as well as ones entered
       at the GHCi prompt, which probably wasn't intended.

   I fixed both of these, and also narrowed the scope of what it does
   to override only *identical* instances, rather than any ones that
   conflict.  If people yelp about this we can return to the question,
   but for now it narrows the range of the HACK

7 years agoDocument -fwarn-auto-orphans
Simon Peyton Jones [Fri, 10 Feb 2012 11:15:43 +0000 (11:15 +0000)] 
Document -fwarn-auto-orphans

7 years agoPut only local instances in the interactive context (fixes Trac #5820)
Simon Peyton Jones [Fri, 10 Feb 2012 10:46:16 +0000 (10:46 +0000)] 
Put only local instances in the interactive context (fixes Trac #5820)

In HscMain.hscDeclsWithLocaion, we were grabbing class instances from
the tcg_inst_env field of the TcGblEnv. But that's wrong: that field
contains all the *home-package* instances.  Instead we need the
tct_insts field, which has just the instances from the module being
compiled.

7 years agoDistinguish between normal and qualified unused imports
Trevor Elliott [Thu, 9 Feb 2012 19:53:34 +0000 (11:53 -0800)] 
Distinguish between normal and qualified unused imports

7 years agoFix the build on Windows
Ian Lynagh [Fri, 10 Feb 2012 01:23:10 +0000 (01:23 +0000)] 
Fix the build on Windows

WhatGccIsCalled was no longer being defined on Windows.
Spotted by Niklas Larsson.

7 years agoFix '-distrust-all-packages' flag.
David Terei [Thu, 9 Feb 2012 00:18:18 +0000 (16:18 -0800)] 
Fix '-distrust-all-packages' flag.

7 years agoMERGE from 7.4 branch: Update dependencies
Ian Lynagh [Mon, 12 Dec 2011 21:20:08 +0000 (21:20 +0000)] 
MERGE from 7.4 branch: Update dependencies

7 years agoRemove a workaround for building with GHC 6.12.2
Ian Lynagh [Tue, 7 Feb 2012 21:30:35 +0000 (21:30 +0000)] 
Remove a workaround for building with GHC 6.12.2

7 years agoARM StgRun: Ensure r11 state is preserved
Ben Gamari [Mon, 30 Jan 2012 21:52:40 +0000 (16:52 -0500)] 
ARM StgRun: Ensure r11 state is preserved

7 years agoIgnore -C when not unregisterised (reported on ghc-users)
Simon Marlow [Tue, 7 Feb 2012 09:27:18 +0000 (09:27 +0000)] 
Ignore -C when not unregisterised (reported on ghc-users)

7 years agoavoid 32-bit integer overflow (#5831)
Simon Marlow [Thu, 2 Feb 2012 10:28:34 +0000 (10:28 +0000)] 
avoid 32-bit integer overflow (#5831)

7 years agoCheck that imported modules actually exist (#5836)
Simon Marlow [Wed, 1 Feb 2012 12:57:54 +0000 (12:57 +0000)] 
Check that imported modules actually exist (#5836)

7 years agocomments
Simon Marlow [Fri, 6 Jan 2012 22:01:53 +0000 (22:01 +0000)] 
comments

7 years agoMerge branch 'master' of http://darcs.haskell.org/ghc
Simon Peyton Jones [Mon, 6 Feb 2012 08:42:54 +0000 (08:42 +0000)] 
Merge branch 'master' of darcs.haskell.org/ghc

7 years agoRefactor tcUserStmt, to fix Trac #5829
Simon Peyton Jones [Mon, 6 Feb 2012 08:42:38 +0000 (08:42 +0000)] 
Refactor tcUserStmt, to fix Trac #5829

The problem was that the FunBind we we build in the expression case
didn't have the right free variables, and that tripped an ASSERT later.

7 years agoGive promoted DataCons a tyConArity and promoted TyCons a tyConKind
Simon Peyton Jones [Mon, 6 Feb 2012 08:40:44 +0000 (08:40 +0000)] 
Give promoted DataCons a tyConArity and promoted TyCons a tyConKind

..and fix up Core Lint.  (I was getting a bogus Core Lint failure.)

7 years agoRefactor HsDecls again, to put family instances in InstDecl
Simon Peyton Jones [Mon, 6 Feb 2012 08:38:59 +0000 (08:38 +0000)] 
Refactor HsDecls again, to put family instances in InstDecl

This continues the clean up of the front end.  Since they
were first invented, type and data family *instance* decls
have been in the TyClDecl data type, even though they always
treated separately.

This patch takes a step in the right direction
  * The InstDecl type now includes both class instances and
    type/data family instances

  * The hs_tyclds field of HsGroup now never has any family
    instance declarations in it

However a family instance is still a TyClDecl.  It should really
be a separate type, but that's the next step.

All this was provoked by fixing Trac #5792 in the HEAD.
(I did a less invasive fix on the branch.)

7 years agoAdd a "tag" command to sync-all
Ian Lynagh [Thu, 2 Feb 2012 21:38:29 +0000 (21:38 +0000)] 
Add a "tag" command to sync-all

7 years agoDon't include Cabal in mkDocs
Ian Lynagh [Thu, 2 Feb 2012 19:21:20 +0000 (19:21 +0000)] 
Don't include Cabal in mkDocs

Cabal no longer has a userguide that we know how to build, so we
can't include it in our docs.

7 years agoWhen type-checking kinds, be sure to promote list and tuple syntax
Simon Peyton Jones [Wed, 1 Feb 2012 15:51:30 +0000 (15:51 +0000)] 
When type-checking kinds, be sure to promote list and tuple syntax

This fixes the ASSERT failure in Trac #5833 and type error in #5798

7 years agoImprove support for LLVM >= 3.0 write barrier. (#5814)
David Terei [Tue, 31 Jan 2012 02:24:01 +0000 (18:24 -0800)] 
Improve support for LLVM >= 3.0 write barrier. (#5814)

7 years agollvmGen: Use new fence instruction
Ben Gamari [Wed, 25 Jan 2012 00:56:35 +0000 (19:56 -0500)] 
llvmGen: Use new fence instruction

Signed-off-by: David Terei <davidterei@gmail.com>
7 years agoValidate fix: no cross compilation for bindists
Simon Marlow [Mon, 30 Jan 2012 14:43:53 +0000 (14:43 +0000)] 
Validate fix: no cross compilation for bindists

Maybe we could revisit whether we want to allow building bindists of
cross-compilers later, but for now I'm fixing validate by setting all
the cross-compilation settings to NO.

7 years agomessage tweak
Simon Marlow [Mon, 30 Jan 2012 11:29:29 +0000 (11:29 +0000)] 
message tweak

7 years agoImprove support for cross-compilation
Simon Marlow [Mon, 30 Jan 2012 11:19:03 +0000 (11:19 +0000)] 
Improve support for cross-compilation

Patchset from Stephen Blackheath <stephen.blackheath@ipwnstudios.com>

7 years agoFix register clobber list in StgRun for ARM
Ben Gamari [Sat, 28 Jan 2012 21:55:04 +0000 (16:55 -0500)] 
Fix register clobber list in StgRun for ARM

The ARM implementation of StgRun does not claim that it clobbers r7-r12. As a
result, the compiler will sometimes put the returned RegTable in one of these
registers, resulting in an invalid RegTable to be returned. Hilarity ensues.

Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
7 years agoRemove bogus extra definition of $(dir)
Simon Marlow [Mon, 23 Jan 2012 10:23:36 +0000 (10:23 +0000)] 
Remove bogus extra definition of $(dir)

This was preventing things like 'cd compiler; make stage2/build/DynFlags.o'
from working.

7 years agoPass alex and happy locations to ghc-cabal; fixes #5579
Ian Lynagh [Sat, 28 Jan 2012 23:33:11 +0000 (23:33 +0000)] 
Pass alex and happy locations to ghc-cabal; fixes #5579

We only use --with-alex / --with-happy if we know where alex / happy
are. In particular, we don't need them when building from a source
tarball.

7 years agoStart on 7.6.1 release notes
Ian Lynagh [Sat, 28 Jan 2012 17:26:06 +0000 (17:26 +0000)] 
Start on 7.6.1 release notes

7 years agoFIX #5819: add -XDataKinds to the language options section of the user's guide
Jose Pedro Magalhaes [Fri, 27 Jan 2012 13:40:31 +0000 (14:40 +0100)] 
FIX #5819: add -XDataKinds to the language options section of the user's guide

7 years agode-tabbed the hs-boot files
Ian Lynagh [Wed, 25 Jan 2012 16:30:36 +0000 (16:30 +0000)] 
de-tabbed the hs-boot files

7 years agoRename polyKindsErr to dataKindsErr
Ian Lynagh [Wed, 25 Jan 2012 13:19:58 +0000 (13:19 +0000)] 
Rename polyKindsErr to dataKindsErr

7 years agoJust rename a local variable
Ian Lynagh [Wed, 25 Jan 2012 13:15:55 +0000 (13:15 +0000)] 
Just rename a local variable

7 years agoRemove accidentally commited 'trace' statements
David Terei [Thu, 26 Jan 2012 18:51:32 +0000 (10:51 -0800)] 
Remove accidentally commited 'trace' statements

7 years agoFix validation error, import only in GHCi
David Terei [Thu, 26 Jan 2012 18:51:10 +0000 (10:51 -0800)] 
Fix validation error, import only in GHCi

7 years agoImprove source documentation for Ghci stmt IO lifting
David Terei [Thu, 26 Jan 2012 09:54:00 +0000 (01:54 -0800)] 
Improve source documentation for Ghci stmt IO lifting

7 years agoFix mistake in previous commits.
David Terei [Thu, 26 Jan 2012 09:51:06 +0000 (01:51 -0800)] 
Fix mistake in previous commits.

7 years agoFix missing import in HscMain.
David Terei [Thu, 26 Jan 2012 09:50:44 +0000 (01:50 -0800)] 
Fix missing import in HscMain.

7 years agoFix warning in GhciMonad.
David Terei [Thu, 26 Jan 2012 09:49:44 +0000 (01:49 -0800)] 
Fix warning in GhciMonad.

7 years agoCode cleaning
David Terei [Thu, 26 Jan 2012 07:49:54 +0000 (23:49 -0800)] 
Code cleaning

7 years agoHave hscStmtWithLocation return (IO [HValue]).
David Terei [Thu, 26 Jan 2012 07:37:25 +0000 (23:37 -0800)] 
Have hscStmtWithLocation return (IO [HValue]).

7 years agoFormatting wibbles.
David Terei [Thu, 26 Jan 2012 02:37:40 +0000 (18:37 -0800)] 
Formatting wibbles.

7 years agoImprove source code documentation og GHCi main.
David Terei [Thu, 26 Jan 2012 02:17:16 +0000 (18:17 -0800)] 
Improve source code documentation og GHCi main.

7 years agoTabs -> Spaces
David Terei [Thu, 26 Jan 2012 02:43:09 +0000 (18:43 -0800)] 
Tabs -> Spaces

7 years agoRemove old dead safe haskell setting
David Terei [Wed, 25 Jan 2012 22:45:13 +0000 (14:45 -0800)] 
Remove old dead safe haskell setting

7 years agoAdd a missing newline in the ghci :h text; spotted by Alexander McPhail
Ian Lynagh [Tue, 24 Jan 2012 19:09:10 +0000 (19:09 +0000)] 
Add a missing newline in the ghci :h text; spotted by Alexander McPhail

8 years agoPort "Add new primtypes 'ArrayArray#' and 'MutableArrayArray#'" to new codegen.
Edward Z. Yang [Fri, 20 Jan 2012 22:17:24 +0000 (17:17 -0500)] 
Port "Add new primtypes 'ArrayArray#' and 'MutableArrayArray#'" to new codegen.

021a0dd265ff34c1e292813c06185eff1d6b5c1c appears to have only
partially added the new primops associated with ArrayArray#
and MutableArrayArray#

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
8 years agoMerge branch 'master' of http://darcs.haskell.org/ghc
Ian Lynagh [Fri, 20 Jan 2012 12:47:25 +0000 (12:47 +0000)] 
Merge branch 'master' of darcs.haskell.org/ghc

8 years agoFollow Cabal version bump
Ian Lynagh [Fri, 20 Jan 2012 12:17:45 +0000 (12:17 +0000)] 
Follow Cabal version bump

8 years agoFix bug introduced in fac8ecbbafde17dd92439c41747223c43e9d2b80
Simon Marlow [Thu, 19 Jan 2012 09:33:52 +0000 (09:33 +0000)] 
Fix bug introduced in fac8ecbbafde17dd92439c41747223c43e9d2b80

Fixes recent failures in hGetBuf001.

8 years agoRemove getDOptsSmpl; use getDynFlags instead
Ian Lynagh [Thu, 19 Jan 2012 13:35:27 +0000 (13:35 +0000)] 
Remove getDOptsSmpl; use getDynFlags instead

8 years agoRemove typecheck/TcSimplify.lhs-old
Ian Lynagh [Thu, 19 Jan 2012 13:34:57 +0000 (13:34 +0000)] 
Remove typecheck/TcSimplify.lhs-old

It hasn't been touched for more than a year.

8 years agoRemove getDOpts; use getDynFlags instead
Ian Lynagh [Thu, 19 Jan 2012 13:31:54 +0000 (13:31 +0000)] 
Remove getDOpts; use getDynFlags instead

8 years agoRemove getDOptsDs; use getDynFlags instead
Ian Lynagh [Thu, 19 Jan 2012 13:17:50 +0000 (13:17 +0000)] 
Remove getDOptsDs; use getDynFlags instead

8 years agoFix validate
Ian Lynagh [Thu, 19 Jan 2012 12:51:22 +0000 (12:51 +0000)] 
Fix validate

This patch defines a flag -fno-warn-pointless-pragmas, and uses it to
disable some warnings in the containers package.

Along the way, also made a ContainsDynFlags class, and added a
HasDynFlags instance for IOEnv (and thus TcRnIf and DsM).

8 years agoRename the testsuite tarball
Ian Lynagh [Wed, 18 Jan 2012 12:14:48 +0000 (12:14 +0000)] 
Rename the testsuite tarball

It's now
    ghc-<version>-testsuite.tar.bz2
rather than
    testsuite-ghc-<version>-src.tar.bz2
which (a) makes more sense, and (b) sorts better in directory listings.

8 years agoMerge branch 'master' of http://darcs.haskell.org/ghc
Simon Peyton Jones [Wed, 18 Jan 2012 15:29:45 +0000 (15:29 +0000)] 
Merge branch 'master' of darcs.haskell.org/ghc

8 years agoDo not inherit "SPECIALISE instance" for INLINE default methods
Simon Peyton Jones [Wed, 18 Jan 2012 13:19:38 +0000 (13:19 +0000)] 
Do not inherit "SPECIALISE instance" for INLINE default methods

Nor should we generate specialised dfuns;
see Note [SPECIALISE instance pragmas]

8 years agoDocument -T RTS flag in manual.
Edward Z. Yang [Wed, 18 Jan 2012 04:55:53 +0000 (23:55 -0500)] 
Document -T RTS flag in manual.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
8 years agoIncorrect type conversion in LLVM backend (#5785).
Ubuntu [Wed, 18 Jan 2012 01:22:35 +0000 (01:22 +0000)] 
Incorrect type conversion in LLVM backend (#5785).

8 years agoEliminate {| and |} vestiges in lexer/parser
Simon Peyton Jones [Tue, 17 Jan 2012 16:40:51 +0000 (16:40 +0000)] 
Eliminate {| and |} vestiges in lexer/parser

They weren't being lexed any more, but we still had productions!

8 years agoUse nested tuples to desugar recursive do-notation
Simon Peyton Jones [Tue, 17 Jan 2012 16:40:03 +0000 (16:40 +0000)] 
Use nested tuples to desugar recursive do-notation

Easy fix for Trac #5742.

8 years agoComments only (to support debug tracing in DmdAnal)
Simon Peyton Jones [Tue, 17 Jan 2012 16:01:41 +0000 (16:01 +0000)] 
Comments only (to support debug tracing in DmdAnal)

8 years agoWarn when a SPECIALISE pragma gives rise to a totally inactive rule
Simon Peyton Jones [Tue, 17 Jan 2012 16:01:16 +0000 (16:01 +0000)] 
Warn when a SPECIALISE pragma gives rise to a totally inactive rule
See Trac #5779

8 years agoDo not combine dictionaries in the EvVarCache when simplEqsOnly is on
Simon Peyton Jones [Tue, 17 Jan 2012 12:15:26 +0000 (12:15 +0000)] 
Do not combine dictionaries in the EvVarCache when simplEqsOnly is on

This fixes Trac #5776; the background is in
Note [Simplifying RULE lhs constraints] in TcSimplify

8 years agoSwitch TcEvidence to Unix line endings
Simon Peyton Jones [Tue, 17 Jan 2012 10:56:14 +0000 (10:56 +0000)] 
Switch TcEvidence to Unix line endings

8 years agoMerge branch 'master' of http://darcs.haskell.org/ghc
Simon Peyton Jones [Tue, 17 Jan 2012 10:30:46 +0000 (10:30 +0000)] 
Merge branch 'master' of darcs.haskell.org/ghc

8 years agoAllow default superclass methods for multi-parameter type classes
Simon Peyton Jones [Tue, 17 Jan 2012 08:35:38 +0000 (08:35 +0000)] 
Allow default superclass methods for multi-parameter type classes

They were prohibited by mistake, a historical hangover

8 years agoOnly use TBAA when LLVM > 2.8. (#5782)
David Terei [Tue, 17 Jan 2012 08:23:22 +0000 (00:23 -0800)] 
Only use TBAA when LLVM > 2.8. (#5782)

8 years agoTabs -> Spaces
David Terei [Tue, 17 Jan 2012 03:12:18 +0000 (19:12 -0800)] 
Tabs -> Spaces

8 years agoAdd missing initialisation of cap->disabled
Simon Marlow [Mon, 16 Jan 2012 14:36:56 +0000 (14:36 +0000)] 
Add missing initialisation of cap->disabled

8 years agoDocumentation for -XDataKinds
Jose Pedro Magalhaes [Mon, 16 Jan 2012 14:02:31 +0000 (15:02 +0100)] 
Documentation for -XDataKinds

8 years agoRemove unnecessary extra use of orphan_hash
Simon Marlow [Mon, 16 Jan 2012 13:23:24 +0000 (13:23 +0000)] 
Remove unnecessary extra use of orphan_hash

8 years agoRevert "Add -faggressive-primops plus refactoring in CoreUtils" (#5780)
Simon Marlow [Mon, 16 Jan 2012 12:41:56 +0000 (12:41 +0000)] 
Revert "Add -faggressive-primops plus refactoring in CoreUtils" (#5780)

This reverts commit 601c983dd0bada6b49bdadd8f172fd4eacac4b0c.

8 years agoFix bug causing polling instead of blocking in the non-threaded RTS (#5773)
Simon Marlow [Mon, 16 Jan 2012 09:49:24 +0000 (09:49 +0000)] 
Fix bug causing polling instead of blocking in the non-threaded RTS (#5773)

This was a regression introduced accidentally in
6b1098511aaabd2c9503ee7be6da1944466f9cb4.  We were previously passing
a large time value to select() to simulate blocking, and this broke
due to a change from unsigned to signed arithmetic.  I've refactored
it to be less fragile now - we just pass NULL as the timeval parameter
to select(), which is the correct way to do blocking.

8 years agoFix for tick intervals greater than one second.
Simon Marlow [Mon, 16 Jan 2012 09:30:00 +0000 (09:30 +0000)] 
Fix for tick intervals greater than one second.

8 years agoSplit -XDataKinds from -XPolyKinds
Jose Pedro Magalhaes [Mon, 16 Jan 2012 13:18:22 +0000 (14:18 +0100)] 
Split -XDataKinds from -XPolyKinds

8 years agoDataConIds need to be treated specially in VectInfo
Manuel M T Chakravarty [Mon, 16 Jan 2012 01:58:42 +0000 (12:58 +1100)] 
DataConIds need to be treated specially in VectInfo

8 years agoMerge wibble
Manuel M T Chakravarty [Sun, 15 Jan 2012 13:22:04 +0000 (00:22 +1100)] 
Merge wibble

8 years agoFix vectorisation of classes
Manuel M T Chakravarty [Sun, 15 Jan 2012 11:10:28 +0000 (22:10 +1100)] 
Fix vectorisation of classes

- Make sure that we have no implicit names in ifaces
- Any vectorisation info makes a module an orphan module
- Allow 'Show' in vectorised code without vectorising it for the moment

8 years agoFix a #define
Ian Lynagh [Sun, 15 Jan 2012 19:21:38 +0000 (19:21 +0000)] 
Fix a #define

I don't think it was causing any problems, but
    TimeToUS(x+y)
would have evaluated to
    x + (y / 1000)