Ian Lynagh [Mon, 24 Mar 2008 20:58:08 +0000 (20:58 +0000)]
Update .darcs-boring
GHC/Prim.hs, GHC/PrimopWrappers.hs are no longer generated in this package
Ian Lynagh [Mon, 24 Mar 2008 20:57:34 +0000 (20:57 +0000)]
Remove GHC.PrimopWrappers from base's exposed modules list
Ian Lynagh [Sun, 23 Mar 2008 19:11:46 +0000 (19:11 +0000)]
base now uses build-type: Configure
Ian Lynagh [Sun, 23 Mar 2008 18:13:42 +0000 (18:13 +0000)]
Move Integer out into its own package
We now depend on the new integer package.
We also depend on a new ghc-prim package, which has GHC.Prim,
GHC.PrimopWrappers, and new modules GHC.Bool and GHC.Generics,
containing Bool and Unit/Inl/Inr respectively.
Ian Lynagh [Sat, 22 Mar 2008 13:36:22 +0000 (13:36 +0000)]
List extensions used rather than using the -fglasgow-exts hammer
Ian Lynagh [Fri, 21 Mar 2008 01:13:56 +0000 (01:13 +0000)]
Remove a gratuitous pattern type sig
Ian Lynagh [Thu, 20 Mar 2008 00:39:57 +0000 (00:39 +0000)]
An even better definition for (^) (trac #1687)
Ian Lynagh [Tue, 18 Mar 2008 00:30:17 +0000 (00:30 +0000)]
Replace (^) with a faster variant (from trac #1687)
Ian Lynagh [Fri, 14 Mar 2008 19:30:37 +0000 (19:30 +0000)]
Add partitionEithers, lefts, and rights.
Patch from Russell O'Connor, trac proposal #974.
Malcolm.Wallace@cs.york.ac.uk [Wed, 12 Mar 2008 11:10:47 +0000 (11:10 +0000)]
System.Console.GetOpt mistakenly rejects options as ambiguous.
From "Eelis van der Weegen" <haskell-libs@contacts.eelis.net>.
Testcase:
> import System.Console.GetOpt
>
> type Color = String
>
> optsDesc :: [OptDescr Color]
> optsDesc = [Option "" ["color", "colour"]
> (ReqArg id "color") "Foreground color"]
>
> main = do
> let args = ["--col=blue"]
> case getOpt RequireOrder optsDesc args of
> (_, _, err:_) -> putStrLn err
> _ -> return ()
Output:
option `--col' is ambiguous; could be one of:
--color=color, --colour=color Foreground color
--color=color, --colour=color Foreground color
This error is silly, because the two alternatives listed are the same
option. The problem is caused by incorrect use of a generator in a list
comprehension.
Don Stewart [Mon, 10 Mar 2008 00:54:55 +0000 (00:54 +0000)]
untabify
Don Stewart [Sat, 8 Mar 2008 01:42:56 +0000 (01:42 +0000)]
untabify
Don Stewart [Sat, 8 Mar 2008 01:41:29 +0000 (01:41 +0000)]
untabify
Don Stewart [Sat, 8 Mar 2008 01:40:40 +0000 (01:40 +0000)]
untabify
Don Stewart [Sat, 8 Mar 2008 01:35:56 +0000 (01:35 +0000)]
untabify
Don Stewart [Sat, 8 Mar 2008 01:24:57 +0000 (01:24 +0000)]
untabify
Don Stewart [Sat, 8 Mar 2008 01:20:59 +0000 (01:20 +0000)]
untabify
Don Stewart [Fri, 7 Mar 2008 19:27:27 +0000 (19:27 +0000)]
untabify
Don Stewart [Wed, 5 Mar 2008 03:37:12 +0000 (03:37 +0000)]
untabify
Don Stewart [Wed, 5 Mar 2008 01:58:27 +0000 (01:58 +0000)]
untabify
Don Stewart [Wed, 5 Mar 2008 01:25:30 +0000 (01:25 +0000)]
untabify
Don Stewart [Wed, 5 Mar 2008 01:03:43 +0000 (01:03 +0000)]
untabify
Don Stewart [Wed, 5 Mar 2008 01:02:55 +0000 (01:02 +0000)]
untabify
Don Stewart [Wed, 5 Mar 2008 00:50:41 +0000 (00:50 +0000)]
untabify
Don Stewart [Wed, 5 Mar 2008 00:50:25 +0000 (00:50 +0000)]
untabify
Don Stewart [Tue, 4 Mar 2008 23:53:30 +0000 (23:53 +0000)]
untabify
Don Stewart [Tue, 4 Mar 2008 22:51:20 +0000 (22:51 +0000)]
untabify
Don Stewart [Tue, 4 Mar 2008 17:48:27 +0000 (17:48 +0000)]
untabify
Don Stewart [Mon, 3 Mar 2008 19:51:09 +0000 (19:51 +0000)]
untabify
Don Stewart [Mon, 3 Mar 2008 19:50:02 +0000 (19:50 +0000)]
untabify
Don Stewart [Mon, 3 Mar 2008 19:44:54 +0000 (19:44 +0000)]
untabify
Don Stewart [Thu, 28 Feb 2008 23:44:43 +0000 (23:44 +0000)]
untabify
Don Stewart [Thu, 28 Feb 2008 18:54:09 +0000 (18:54 +0000)]
untabify
Don Stewart [Thu, 28 Feb 2008 18:53:56 +0000 (18:53 +0000)]
untabify
Don Stewart [Thu, 28 Feb 2008 18:53:31 +0000 (18:53 +0000)]
untabify
Simon Marlow [Thu, 28 Feb 2008 11:30:35 +0000 (11:30 +0000)]
export MVar, TVar, and STM non-abstractly
As requested by Sterling Clover on ghc-users
Max Bolingbroke [Wed, 13 Feb 2008 21:22:46 +0000 (21:22 +0000)]
Added Down class and improved groupWith fusion
Don Stewart [Wed, 27 Feb 2008 06:28:36 +0000 (06:28 +0000)]
untabify
Don Stewart [Tue, 26 Feb 2008 07:06:30 +0000 (07:06 +0000)]
untabify
Simon Marlow [Wed, 20 Feb 2008 14:12:09 +0000 (14:12 +0000)]
mention explicitly that hIsEOF may block
Don Stewart [Tue, 19 Feb 2008 23:36:44 +0000 (23:36 +0000)]
untabify
Don Stewart [Tue, 19 Feb 2008 23:30:47 +0000 (23:30 +0000)]
untabify
Don Stewart [Tue, 19 Feb 2008 23:29:10 +0000 (23:29 +0000)]
untabify
Don Stewart [Tue, 19 Feb 2008 22:54:37 +0000 (22:54 +0000)]
untabify
Don Stewart [Tue, 19 Feb 2008 06:15:13 +0000 (06:15 +0000)]
untabify
Don Stewart [Wed, 13 Feb 2008 22:26:44 +0000 (22:26 +0000)]
Add exitSuccess :: IO a. For symmetry with exitFailure
Don Stewart [Mon, 18 Feb 2008 07:57:32 +0000 (07:57 +0000)]
untabify
Don Stewart [Mon, 18 Feb 2008 06:54:11 +0000 (06:54 +0000)]
untabify
Don Stewart [Fri, 15 Feb 2008 00:55:43 +0000 (00:55 +0000)]
untabify
Simon Marlow [Mon, 11 Feb 2008 10:19:08 +0000 (10:19 +0000)]
FIX dynamic001, dynamic002: further fixes to tuple printing
Don Stewart [Wed, 13 Feb 2008 22:19:50 +0000 (22:19 +0000)]
untabify
Don Stewart [Wed, 13 Feb 2008 22:18:56 +0000 (22:18 +0000)]
untabify only
Don Stewart [Thu, 7 Feb 2008 19:19:39 +0000 (19:19 +0000)]
whitespace only
Don Stewart [Thu, 7 Feb 2008 18:39:54 +0000 (18:39 +0000)]
Whitespace only
Simon Marlow [Tue, 5 Feb 2008 10:39:04 +0000 (10:39 +0000)]
FIX dynamic001 dynamic002: isTupleTyCon had rotted
In the patch "Tuple tycons have parens around their names", the names
of the tuple tycons were changed to include parens, but isTupleTyCon
was not updated to match, which made tuple types show as "(,) a b"
rather than "(a,b)"
Ian Lynagh [Sun, 3 Feb 2008 15:27:55 +0000 (15:27 +0000)]
deforestation rules for enumFromThenTo; based on a patch from Robin Houston
Don Stewart [Tue, 29 Jan 2008 19:19:40 +0000 (19:19 +0000)]
Generalise type of forever :: (Monad m) => m a -> m b
Simon Marlow [Thu, 24 Jan 2008 09:22:03 +0000 (09:22 +0000)]
FIX #1936: hGetBufNonBlocking was blocking on stdin/stdout/stderr
Simon Marlow [Thu, 24 Jan 2008 09:12:16 +0000 (09:12 +0000)]
The default uncaught exception handler was adding an extra \n
Simon Marlow [Wed, 23 Jan 2008 13:12:48 +0000 (13:12 +0000)]
add comment about lack of _chsize_s()
Simon Marlow [Wed, 23 Jan 2008 10:29:04 +0000 (10:29 +0000)]
Windows: large file support for hFileSize and hSeek (#1771)
Ian Lynagh [Sun, 20 Jan 2008 18:24:29 +0000 (18:24 +0000)]
Export topHandler, topHandlerFastExit from GHC.TopHandler
We now use one of these in ghc when running with ghc -e
Ross Paterson [Sun, 20 Jan 2008 02:23:08 +0000 (02:23 +0000)]
haddock attributes for haddock-2.0
Bertram Felgenhauer [Wed, 21 Nov 2007 10:14:58 +0000 (10:14 +0000)]
Data.List.sort: force elements from start to end.
this prevents a stack overflow on sort (take 10^6 [1..])
simonpj@microsoft.com [Wed, 9 Jan 2008 11:47:36 +0000 (11:47 +0000)]
Fix comment on GHC.Ptr.minusPtr
simonpj@microsoft.com [Fri, 4 Jan 2008 09:13:14 +0000 (09:13 +0000)]
Remove redundant imports of GHC.Err
GHC.Base SOURCE-imports GHC.Err, and re-exports 'error'. So
other modules need only import GHC.Base.
This doesn't change the fact that these other modules are all compiled
before GHC.Err, so they are all part of the module loop that starts with
GHC.Base and finishes with GHC.Err. But it does reduce the occurrence
of those SOURCE imports.
simonpj@microsoft [Thu, 20 Dec 2007 17:18:12 +0000 (17:18 +0000)]
Tuple tycons have parens around their names
The name of the pair TyCon, in the Typeable instance,
should be "(,)" not ",".
Don't merge to 6.8; it's a minor API change.
simonpj@microsoft.com [Thu, 20 Dec 2007 11:19:29 +0000 (11:19 +0000)]
Add groupWith, sortWith, the, to support generalised list comprehensions
This the base-library patch to support the main compiler patch
Implement generalised list comprehensions
It just adds three functions to GHC.Exts.
David Waern [Sun, 9 Dec 2007 17:39:31 +0000 (17:39 +0000)]
Add GHC.Prim to exposedModules in the Haddock 0.x hook
Please merge to the stable branch
David Waern [Sun, 9 Dec 2007 17:39:31 +0000 (17:39 +0000)]
Add GHC.Prim to exposedModules in the Haddock 0.x hook
Please merge to the stable branch
Ian Lynagh [Sun, 2 Dec 2007 21:57:58 +0000 (21:57 +0000)]
Simplify the GHC.Prim hack in base.cabal/Setup.hs
Malcolm.Wallace@cs.york.ac.uk [Fri, 7 Dec 2007 13:33:35 +0000 (13:33 +0000)]
Implement 'openTempFile' for nhc98.
Simon Marlow [Wed, 5 Dec 2007 09:14:23 +0000 (09:14 +0000)]
docs: describe the changes to forkIO, and document forkOnIO
Simon Marlow [Wed, 5 Dec 2007 09:13:34 +0000 (09:13 +0000)]
doc only: use realToFrac instead of fromRational.toRational
Roman Leshchinskiy [Wed, 5 Dec 2007 22:08:59 +0000 (22:08 +0000)]
Add singletonP to GHC.PArr
Simon Marlow [Wed, 5 Dec 2007 12:01:18 +0000 (12:01 +0000)]
FIX #1621: bug in Windows code for getCPUTime
We were reading the components of FILETIME as CLong, when they should
be unsigned. Word32 seems to be the correct type here.
Simon Marlow [Tue, 4 Dec 2007 15:39:40 +0000 (15:39 +0000)]
protect console handler against concurrent access (#1922)
Simon Marlow [Tue, 4 Dec 2007 11:08:17 +0000 (11:08 +0000)]
protect against concurrent access to the signal handlers (#1922)
Simon Marlow [Fri, 30 Nov 2007 13:51:22 +0000 (13:51 +0000)]
restore fdToHandle' to avoid breaking clients (#1109)
Simon Marlow [Fri, 30 Nov 2007 10:16:48 +0000 (10:16 +0000)]
note about how to convert CTime (aka EpochTime) to UTCTime
Ian Lynagh [Mon, 26 Nov 2007 21:42:13 +0000 (21:42 +0000)]
Fix some URLs
Ian Lynagh [Mon, 26 Nov 2007 18:44:28 +0000 (18:44 +0000)]
Fix some links in haddock docs
Ian Lynagh [Mon, 26 Nov 2007 17:06:31 +0000 (17:06 +0000)]
Don't try to make haddock links to the mtl package as we don't depend on it
Ian Lynagh [Mon, 26 Nov 2007 16:34:43 +0000 (16:34 +0000)]
Escape some special characters in haddock docs
Simon Marlow [Fri, 23 Nov 2007 09:22:19 +0000 (09:22 +0000)]
FIX BUILD: maybeUpdateFile: ignore failures when removing the target
Simon Marlow [Thu, 22 Nov 2007 09:42:07 +0000 (09:42 +0000)]
FIX #1753
hClose should close the Handle and unlock the file even if calling
close() fails for some reason.
Simon Marlow [Wed, 21 Nov 2007 10:22:48 +0000 (10:22 +0000)]
remove lockFile.h from install-includes
Simon Marlow [Wed, 21 Nov 2007 09:43:00 +0000 (09:43 +0000)]
oops, we forgot to export traceShow
Simon Marlow [Wed, 21 Nov 2007 08:43:41 +0000 (08:43 +0000)]
Fix compilation with GHC 6.2.x
Simon Marlow [Tue, 20 Nov 2007 12:10:53 +0000 (12:10 +0000)]
Move file locking into the RTS, fixing #629, #1109
File locking (of the Haskell 98 variety) was previously done using a
static table with linear search, which had two problems: the array had
a fixed size and was sometimes too small (#1109), and performance of
lockFile/unlockFile was suboptimal due to the linear search.
Also the algorithm failed to count readers as required by Haskell 98
(#629).
Now it's done using a hash table (provided by the RTS). Furthermore I
avoided the extra fstat() for every open file by passing the dev_t and
ino_t into lockFile. This and the improvements to the locking
algorithm result in a healthy 20% or so performance increase for
opening/closing files (see openFile008 test).
Simon Marlow [Tue, 20 Nov 2007 10:20:42 +0000 (10:20 +0000)]
Only overwrite GHC/Prim.hs and GHC/Primopwrappers.hs if they change
This avoids make doing unnecessary work after 'setup makefile'.
Simon Marlow [Fri, 16 Nov 2007 09:12:27 +0000 (09:12 +0000)]
fix comment
Ian Lynagh [Sat, 10 Nov 2007 17:30:52 +0000 (17:30 +0000)]
Fix ` characters in elem's haddock docs
David Waern [Fri, 9 Nov 2007 00:08:06 +0000 (00:08 +0000)]
Filter out GHC.Prim also for the Haddock step
Please merge to the GHC 6.8.2 branch
Simon Marlow [Fri, 2 Nov 2007 16:00:54 +0000 (16:00 +0000)]
Add module of special magic GHC desugaring helper functions
Currently containing only one such helper: (>>>) for arrow desugaring
Malcolm.Wallace@cs.york.ac.uk [Tue, 30 Oct 2007 12:04:59 +0000 (12:04 +0000)]
add Control.Category to the nhc98 build
Malcolm.Wallace@cs.york.ac.uk [Tue, 30 Oct 2007 12:04:10 +0000 (12:04 +0000)]
fix nhc98 build: need a qualified Prelude import
Simon Marlow [Mon, 29 Oct 2007 15:07:30 +0000 (15:07 +0000)]
Fix performance regression: re-instate -funbox-strict-fields
Yikes! While investigating the increase in code size with GHC 6.8
relative to 6.6, I noticed that in the transition to Cabal for the
libraries we lost -funbox-strict-fields, which is more or less
depended on by the IO library for performance. I'm astonished that we
didn't notice this earlier!
To reduce the chances of this happening again, I put
-funbox-strict-fields in the OPTIONS_GHC pragma of the modules that
need it. {-# UNPACK #-} pragmas would be better, though.
Simon Marlow [Mon, 29 Oct 2007 13:19:21 +0000 (13:19 +0000)]
FIX BUILD: Haddock 1.x fails to parse (Prelude..)
Ashley Yakeley [Mon, 29 Oct 2007 02:25:26 +0000 (02:25 +0000)]
new Control.Category, ghc ticket #1773