ghc-base.git
21 years ago[project @ 2002-05-31 12:22:33 by panne]
panne [Fri, 31 May 2002 12:22:35 +0000 (12:22 +0000)]
[project @ 2002-05-31 12:22:33 by panne]
Moved Parsec to its new home

21 years ago[project @ 2002-05-31 09:43:04 by panne]
panne [Fri, 31 May 2002 09:43:04 +0000 (09:43 +0000)]
[project @ 2002-05-31 09:43:04 by panne]
Added Show instance for FunPtr

21 years ago[project @ 2002-05-29 13:28:36 by simonmar]
simonmar [Wed, 29 May 2002 13:28:36 +0000 (13:28 +0000)]
[project @ 2002-05-29 13:28:36 by simonmar]
doc fixes

21 years ago[project @ 2002-05-29 13:27:04 by simonmar]
simonmar [Wed, 29 May 2002 13:27:04 +0000 (13:27 +0000)]
[project @ 2002-05-29 13:27:04 by simonmar]
fix case of markup inside bird tracks.

21 years ago[project @ 2002-05-29 13:22:10 by simonmar]
simonmar [Wed, 29 May 2002 13:24:04 +0000 (13:24 +0000)]
[project @ 2002-05-29 13:22:10 by simonmar]
Don't need to escape single quotes

21 years ago[project @ 2002-05-28 19:22:04 by sof]
sof [Tue, 28 May 2002 19:22:04 +0000 (19:22 +0000)]
[project @ 2002-05-28 19:22:04 by sof]
make it compile

21 years ago[project @ 2002-05-28 16:33:46 by simonmar]
simonmar [Tue, 28 May 2002 16:33:47 +0000 (16:33 +0000)]
[project @ 2002-05-28 16:33:46 by simonmar]
Documentation for the overloaded array interfaces (currently a bit
flaky due to a couple of shortcomings in Haddock).

21 years ago[project @ 2002-05-28 16:32:45 by simonmar]
simonmar [Tue, 28 May 2002 16:33:02 +0000 (16:33 +0000)]
[project @ 2002-05-28 16:32:45 by simonmar]
Documentation

21 years ago[project @ 2002-05-28 15:04:54 by simonmar]
simonmar [Tue, 28 May 2002 15:04:54 +0000 (15:04 +0000)]
[project @ 2002-05-28 15:04:54 by simonmar]
Documentation

21 years ago[project @ 2002-05-28 14:06:01 by simonmar]
simonmar [Tue, 28 May 2002 14:06:01 +0000 (14:06 +0000)]
[project @ 2002-05-28 14:06:01 by simonmar]
Add (minimal) documentation

21 years ago[project @ 2002-05-28 14:04:18 by simonmar]
simonmar [Tue, 28 May 2002 14:04:18 +0000 (14:04 +0000)]
[project @ 2002-05-28 14:04:18 by simonmar]
Fix mistake in 'evaluate'.

21 years ago[project @ 2002-05-28 12:03:06 by simonmar]
simonmar [Tue, 28 May 2002 12:03:06 +0000 (12:03 +0000)]
[project @ 2002-05-28 12:03:06 by simonmar]
Document

21 years ago[project @ 2002-05-28 12:00:17 by simonmar]
simonmar [Tue, 28 May 2002 12:00:17 +0000 (12:00 +0000)]
[project @ 2002-05-28 12:00:17 by simonmar]
typo

21 years ago[project @ 2002-05-28 11:43:59 by simonmar]
simonmar [Tue, 28 May 2002 11:43:59 +0000 (11:43 +0000)]
[project @ 2002-05-28 11:43:59 by simonmar]
Export list tweak

21 years ago[project @ 2002-05-28 11:41:29 by simonmar]
simonmar [Tue, 28 May 2002 11:41:29 +0000 (11:41 +0000)]
[project @ 2002-05-28 11:41:29 by simonmar]
Documentation tweaks

21 years ago[project @ 2002-05-28 11:21:56 by simonmar]
simonmar [Tue, 28 May 2002 11:21:56 +0000 (11:21 +0000)]
[project @ 2002-05-28 11:21:56 by simonmar]
tweak documentationa

21 years ago[project @ 2002-05-28 11:21:03 by simonmar]
simonmar [Tue, 28 May 2002 11:21:03 +0000 (11:21 +0000)]
[project @ 2002-05-28 11:21:03 by simonmar]
Add documentation

21 years ago[project @ 2002-05-28 10:38:50 by simonmar]
simonmar [Tue, 28 May 2002 10:38:50 +0000 (10:38 +0000)]
[project @ 2002-05-28 10:38:50 by simonmar]
Document Text.Regex.Posix and Text.Regex

22 years ago[project @ 2002-05-27 15:57:01 by simonmar]
simonmar [Mon, 27 May 2002 15:57:01 +0000 (15:57 +0000)]
[project @ 2002-05-27 15:57:01 by simonmar]
Documentation, such as it is

22 years ago[project @ 2002-05-27 15:43:44 by simonmar]
simonmar [Mon, 27 May 2002 15:43:44 +0000 (15:43 +0000)]
[project @ 2002-05-27 15:43:44 by simonmar]
Documentation for System.Mem.Weak

22 years ago[project @ 2002-05-27 14:54:27 by simonmar]
simonmar [Mon, 27 May 2002 14:54:27 +0000 (14:54 +0000)]
[project @ 2002-05-27 14:54:27 by simonmar]
Add documentation

22 years ago[project @ 2002-05-27 14:36:51 by simonmar]
simonmar [Mon, 27 May 2002 14:36:51 +0000 (14:36 +0000)]
[project @ 2002-05-27 14:36:51 by simonmar]
Documentation

22 years ago[project @ 2002-05-27 14:31:06 by simonmar]
simonmar [Mon, 27 May 2002 14:31:08 +0000 (14:31 +0000)]
[project @ 2002-05-27 14:31:06 by simonmar]
Document Control.Exception and Data.Dynamic

22 years ago[project @ 2002-05-27 14:30:49 by simonmar]
simonmar [Mon, 27 May 2002 14:30:49 +0000 (14:30 +0000)]
[project @ 2002-05-27 14:30:49 by simonmar]
Define __HADDOCK__ for .hs files as well as .lhs files.

22 years ago[project @ 2002-05-16 11:39:36 by simonmar]
simonmar [Thu, 16 May 2002 11:39:36 +0000 (11:39 +0000)]
[project @ 2002-05-16 11:39:36 by simonmar]
Happy -g currently requires GlaExts, which means it can't be used
inside fptools/libraries (GlaExts comes from lang, and lang isn't
built yet).  So, until I've fixed Happy and everyone has built &
installed the vnew version...

   Add a dummy GlaExts module.

This is a TEMPORARY HACK to keep Happy happy during the switchover
period, and will go away before the release.

22 years ago[project @ 2002-05-15 12:17:18 by simonmar]
simonmar [Wed, 15 May 2002 12:17:18 +0000 (12:17 +0000)]
[project @ 2002-05-15 12:17:18 by simonmar]
Fix comment to avoid confusing Haddock

22 years ago[project @ 2002-05-15 12:16:11 by simonmar]
simonmar [Wed, 15 May 2002 12:16:11 +0000 (12:16 +0000)]
[project @ 2002-05-15 12:16:11 by simonmar]
Fix non-Haddockish comments

22 years ago[project @ 2002-05-15 09:00:00 by chak]
chak [Wed, 15 May 2002 09:00:00 +0000 (09:00 +0000)]
[project @ 2002-05-15 09:00:00 by chak]
* Added the options `-ffi' and `-fffi', which switch on FFI support
  (`-fglasgow-exts' implies `-fffi').

  NB: Strictly speaking `-fffi' is the correct name; however, `-ffi' is
      supported as an alternative spelling.

* `-fglasgow-exts' no longer enables the `with' keyword for implicit
  parameters.  To use `with' as a keyword, the additional option `-fwith' has
  to be supplied.  (Note that SimonM recently enabled the use of `let' instead
  of `with'.)

  NB: This might prompt some makefile tweaks in libraries or regression tests.

* Renamed `Foreign.Marshal.Utils.withObject' to `Foreign.Marshal.Utils.with'
  as required by the FFI Addendum.  (The old name is still available, but
  marked as deprecated.)

* Added `realloc' to `Foreign.Marshal.Alloc' (tracking RC4 of the FFI
  Addendum).

Docu
~~~~
* Added `-ffi', `-fffi', and `-fwith' to the flag reference and the section
  describing options for Glasgow extensions

* Removed most of the FFI section in the User's Guide in favour of a reference
  to the Addendum plus a brief description of additional features supported by
  GHC.

  NB: The old material is still available at fptools/docs/, I merely removed
  the reference in the User's Guide.

22 years ago[project @ 2002-05-14 21:08:59 by sof]
sof [Tue, 14 May 2002 21:08:59 +0000 (21:08 +0000)]
[project @ 2002-05-14 21:08:59 by sof]
lexNumberBase: support negative exponents

22 years ago[project @ 2002-05-14 13:22:37 by simonmar]
simonmar [Tue, 14 May 2002 13:22:37 +0000 (13:22 +0000)]
[project @ 2002-05-14 13:22:37 by simonmar]
Replace qsort by mergesort, which is more reliable performance-wise.
From: Ian Lynagh <igloo@earth.li>

22 years ago[project @ 2002-05-11 08:59:08 by panne]
panne [Sat, 11 May 2002 08:59:08 +0000 (08:59 +0000)]
[project @ 2002-05-11 08:59:08 by panne]
Now that Int is exported, it might be a good idea to import it
first...

22 years ago[project @ 2002-05-10 16:18:28 by simonmar]
simonmar [Fri, 10 May 2002 16:18:29 +0000 (16:18 +0000)]
[project @ 2002-05-10 16:18:28 by simonmar]
More documentation

22 years ago[project @ 2002-05-10 15:41:33 by simonmar]
simonmar [Fri, 10 May 2002 15:41:34 +0000 (15:41 +0000)]
[project @ 2002-05-10 15:41:33 by simonmar]
More documentation

22 years ago[project @ 2002-05-10 14:52:00 by simonmar]
simonmar [Fri, 10 May 2002 14:52:00 +0000 (14:52 +0000)]
[project @ 2002-05-10 14:52:00 by simonmar]
give slurpFile, hGetBuf and hPutBuf reasonable behaviour for
zero-sized files

22 years ago[project @ 2002-05-10 14:51:14 by simonmar]
simonmar [Fri, 10 May 2002 14:51:14 +0000 (14:51 +0000)]
[project @ 2002-05-10 14:51:14 by simonmar]
Add some documentation for IORef

22 years ago[project @ 2002-05-10 13:42:07 by simonmar]
simonmar [Fri, 10 May 2002 13:42:07 +0000 (13:42 +0000)]
[project @ 2002-05-10 13:42:07 by simonmar]
Add documentation

22 years ago[project @ 2002-05-10 13:17:27 by simonmar]
simonmar [Fri, 10 May 2002 13:17:29 +0000 (13:17 +0000)]
[project @ 2002-05-10 13:17:27 by simonmar]
- Add documentation to Control.Concurrent and friends
- Other documentation tweaks

22 years ago[project @ 2002-05-10 13:16:55 by simonmar]
simonmar [Fri, 10 May 2002 13:16:55 +0000 (13:16 +0000)]
[project @ 2002-05-10 13:16:55 by simonmar]
Add GHC/PrimopWrappers to EXTRA_SRCS

22 years ago[project @ 2002-05-10 08:58:34 by simonmar]
simonmar [Fri, 10 May 2002 08:58:35 +0000 (08:58 +0000)]
[project @ 2002-05-10 08:58:34 by simonmar]
Convert these files from .lhs to .hs, and give them proper headers to
match the style used in the rest of the libraries.

22 years ago[project @ 2002-05-10 08:38:53 by simonmar]
simonmar [Fri, 10 May 2002 08:38:53 +0000 (08:38 +0000)]
[project @ 2002-05-10 08:38:53 by simonmar]
import GHC.Ptr to get the representation of Ptr.  This module should
really be split into compiler-dep and indep. parts.

22 years ago[project @ 2002-05-10 08:35:05 by simonmar]
simonmar [Fri, 10 May 2002 08:35:05 +0000 (08:35 +0000)]
[project @ 2002-05-10 08:35:05 by simonmar]
import GHC.Ptr instead of Foreign.Ptr (I fixed the latter to export
Ptr abstractly yesterday).

22 years ago[project @ 2002-05-09 13:28:30 by simonmar]
simonmar [Thu, 9 May 2002 13:28:30 +0000 (13:28 +0000)]
[project @ 2002-05-09 13:28:30 by simonmar]
Add a type signature for getClockTime

22 years ago[project @ 2002-05-09 13:16:29 by simonmar]
simonmar [Thu, 9 May 2002 13:16:33 +0000 (13:16 +0000)]
[project @ 2002-05-09 13:16:29 by simonmar]
Rename libraries/core to libraries/base in the module headers.

22 years ago[project @ 2002-05-09 13:15:07 by simonmar]
simonmar [Thu, 9 May 2002 13:15:08 +0000 (13:15 +0000)]
[project @ 2002-05-09 13:15:07 by simonmar]
Various tweaks needed to get the source processed cleanly with Haddock.

22 years ago[project @ 2002-05-09 13:14:42 by simonmar]
simonmar [Thu, 9 May 2002 13:14:42 +0000 (13:14 +0000)]
[project @ 2002-05-09 13:14:42 by simonmar]
tweak the module comment

22 years ago[project @ 2002-05-09 13:13:28 by simonmar]
simonmar [Thu, 9 May 2002 13:14:02 +0000 (13:14 +0000)]
[project @ 2002-05-09 13:13:28 by simonmar]
Add documentation Haddock-style

22 years ago[project @ 2002-05-09 13:09:30 by simonmar]
simonmar [Thu, 9 May 2002 13:09:30 +0000 (13:09 +0000)]
[project @ 2002-05-09 13:09:30 by simonmar]
singletonSet has been deprecated for a while; remove it now

22 years ago[project @ 2002-05-09 13:05:46 by simonmar]
simonmar [Thu, 9 May 2002 13:05:46 +0000 (13:05 +0000)]
[project @ 2002-05-09 13:05:46 by simonmar]
Fix comments that are misinterpreted by Haddock

22 years ago[project @ 2002-05-09 10:43:42 by simonmar]
simonmar [Thu, 9 May 2002 10:43:42 +0000 (10:43 +0000)]
[project @ 2002-05-09 10:43:42 by simonmar]
We can process GHC.Err with Haddock now

22 years ago[project @ 2002-05-09 10:43:26 by simonmar]
simonmar [Thu, 9 May 2002 10:43:26 +0000 (10:43 +0000)]
[project @ 2002-05-09 10:43:26 by simonmar]
Omit the imports in Haddock, to avoid module recursion

22 years ago[project @ 2002-05-06 06:51:00 by sof]
sof [Mon, 6 May 2002 06:51:00 +0000 (06:51 +0000)]
[project @ 2002-05-06 06:51:00 by sof]
timezone mingw fix, making this module resemble even more of a dog's dinner

22 years ago[project @ 2002-05-03 08:39:17 by simonmar]
simonmar [Fri, 3 May 2002 08:39:17 +0000 (08:39 +0000)]
[project @ 2002-05-03 08:39:17 by simonmar]
Fix the build on Sparc-Solaris, hopefully without breaking it on Windows.

22 years ago[project @ 2002-05-02 15:20:02 by sof]
sof [Thu, 2 May 2002 15:20:02 +0000 (15:20 +0000)]
[project @ 2002-05-02 15:20:02 by sof]
extra_libraries(mingw): The Return of MSVCRT

22 years ago[project @ 2002-04-28 02:01:00 by sof]
sof [Sun, 28 Apr 2002 02:01:00 +0000 (02:01 +0000)]
[project @ 2002-04-28 02:01:00 by sof]
\\begin{code} prefix missing

22 years ago[project @ 2002-04-26 15:39:50 by lewie]
lewie [Fri, 26 Apr 2002 15:39:50 +0000 (15:39 +0000)]
[project @ 2002-04-26 15:39:50 by lewie]
Fix broken def of fixST.

22 years ago[project @ 2002-04-26 13:34:05 by simonmar]
simonmar [Fri, 26 Apr 2002 13:34:10 +0000 (13:34 +0000)]
[project @ 2002-04-26 13:34:05 by simonmar]
Remove \$Id\$ from all files: it isn't particularly useful (see
previous discussion on cvs-ghc@haskell.org), and it confuses Haddock.

22 years ago[project @ 2002-04-26 13:33:10 by simonmar]
simonmar [Fri, 26 Apr 2002 13:33:10 +0000 (13:33 +0000)]
[project @ 2002-04-26 13:33:10 by simonmar]
- Remove \$Id\$
- Fix comments that confuse Haddock

22 years ago[project @ 2002-04-26 13:26:39 by simonmar]
simonmar [Fri, 26 Apr 2002 13:26:39 +0000 (13:26 +0000)]
[project @ 2002-04-26 13:26:39 by simonmar]
We can cope with Control.Monad.Reader & friends now (Haddock can parse
fundeps).

22 years ago[project @ 2002-04-26 12:58:45 by simonmar]
simonmar [Fri, 26 Apr 2002 12:58:45 +0000 (12:58 +0000)]
[project @ 2002-04-26 12:58:45 by simonmar]
doc string wibble

22 years ago[project @ 2002-04-26 12:48:16 by simonmar]
simonmar [Fri, 26 Apr 2002 12:48:17 +0000 (12:48 +0000)]
[project @ 2002-04-26 12:48:16 by simonmar]
- Add proper module headers to these guys
- Remove \$Id\$
- Update copyrights
- Int.lhs and Word.lhs were just wrapped in \begin{code}..\end{code},
  so make them .hs files instead.

22 years ago[project @ 2002-04-26 12:31:06 by simonmar]
simonmar [Fri, 26 Apr 2002 12:31:06 +0000 (12:31 +0000)]
[project @ 2002-04-26 12:31:06 by simonmar]
Add a LICENSE

22 years ago[project @ 2002-04-24 17:57:55 by ross]
ross [Wed, 24 Apr 2002 17:57:55 +0000 (17:57 +0000)]
[project @ 2002-04-24 17:57:55 by ross]
haddock food.

22 years ago[project @ 2002-04-24 16:31:37 by simonmar]
simonmar [Wed, 24 Apr 2002 16:31:47 +0000 (16:31 +0000)]
[project @ 2002-04-24 16:31:37 by simonmar]
Add the single character '|' to the header comment of each module so
that Haddock will parse it as the module documentation.

22 years ago[project @ 2002-04-24 16:13:26 by simonmar]
simonmar [Wed, 24 Apr 2002 16:13:26 +0000 (16:13 +0000)]
[project @ 2002-04-24 16:13:26 by simonmar]
Makefile rules for building HTML documentation using Haddock.  It's a
bit rough around the edges so far, and I haven't added any actual
documentation yet, but you can build Haddock (in fptools/haddock) and
then say

$ make haddock-docs

in fptools/libraries/base to get bare-bones HTML docs for the entire
contents (almost) of the base package.

22 years ago[project @ 2002-04-24 16:10:21 by simonmar]
simonmar [Wed, 24 Apr 2002 16:10:21 +0000 (16:10 +0000)]
[project @ 2002-04-24 16:10:21 by simonmar]
Omit the generic declarations when processing with Haddock, since the
Haddock parser doesn't understand them (yet).

22 years ago[project @ 2002-04-24 16:09:12 by simonmar]
simonmar [Wed, 24 Apr 2002 16:09:35 +0000 (16:09 +0000)]
[project @ 2002-04-24 16:09:12 by simonmar]
Update foreign import syntax

22 years ago[project @ 2002-04-24 16:01:51 by simonmar]
simonmar [Wed, 24 Apr 2002 16:03:39 +0000 (16:03 +0000)]
[project @ 2002-04-24 16:01:51 by simonmar]
Update foreign import syntax

22 years ago[project @ 2002-04-24 15:47:34 by simonmar]
simonmar [Wed, 24 Apr 2002 15:47:34 +0000 (15:47 +0000)]
[project @ 2002-04-24 15:47:34 by simonmar]
Update foreign import syntax

22 years ago[project @ 2002-04-24 15:47:10 by sof]
sof [Wed, 24 Apr 2002 15:47:10 +0000 (15:47 +0000)]
[project @ 2002-04-24 15:47:10 by sof]
Directory.Permissions.searchable: True iff S_ISDIR() and X bit set (was : !S_ISREG() and X) -- falls into line with what nhc98 and Hugs does

22 years ago[project @ 2002-04-24 11:17:53 by simonpj]
simonpj [Wed, 24 Apr 2002 11:17:53 +0000 (11:17 +0000)]
[project @ 2002-04-24 11:17:53 by simonpj]
"\Oxxx" and "\Xyyy" are not octal or hexadecimal escapes in Haskell 98,
and should not be lexed as such.

22 years ago[project @ 2002-04-18 23:32:56 by sof]
sof [Thu, 18 Apr 2002 23:32:56 +0000 (23:32 +0000)]
[project @ 2002-04-18 23:32:56 by sof]
re-added Show instance for ThreadId

22 years ago[project @ 2002-04-13 14:59:06 by panne]
panne [Sat, 13 Apr 2002 14:59:06 +0000 (14:59 +0000)]
[project @ 2002-04-13 14:59:06 by panne]
Ugly hack to make `lex' H98-compliant again: lex "" should return
[("","")], not []. This should probably be fixed elsewhere...

22 years ago[project @ 2002-04-13 05:08:55 by sof]
sof [Sat, 13 Apr 2002 05:08:55 +0000 (05:08 +0000)]
[project @ 2002-04-13 05:08:55 by sof]
readIEEENumber: support reading IEEE-754 'special' values (NaN,Inf)

22 years ago[project @ 2002-04-11 12:03:43 by simonpj]
simonpj [Thu, 11 Apr 2002 12:03:45 +0000 (12:03 +0000)]
[project @ 2002-04-11 12:03:43 by simonpj]
-------------------
Mainly derived Read
-------------------

This commit is a tangle of several things that somehow got wound up
together, I'm afraid.

The main course
~~~~~~~~~~~~~~~
Replace the derived-Read machinery with Koen's cunning new parser
combinator library.   The result should be
* much smaller code sizes from derived Read
* faster execution of derived Read

WARNING: I have not thoroughly tested this stuff; I'd be glad if you did!
 All the hard work is done, but there may be a few nits.

The Read class gets two new methods, not exposed
in the H98 inteface of course:
  class Read a where
    readsPrec    :: Int -> ReadS a
    readList     :: ReadS [a]
    readPrec     :: ReadPrec a -- NEW
    readListPrec :: ReadPrec [a] -- NEW

There are the following new libraries:

  Text.ParserCombinators.ReadP Koens combinator parser
  Text.ParserCombinators.ReadPrec Ditto, but with precedences

  Text.Read.Lex An emasculated lexical analyser
that provides the functionality
of H98 'lex'

TcGenDeriv is changed to generate code that uses the new libraries.
The built-in instances of Read (List, Maybe, tuples, etc) use the new
libraries.

Other stuff
~~~~~~~~~~~
1. Some fixes the the plumbing of external-core generation. Sigbjorn
did most of the work earlier, but this commit completes the renaming and
typechecking plumbing.

2. Runtime error-generation functions, such as GHC.Err.recSelErr,
GHC.Err.recUpdErr, etc, now take an Addr#, pointing to a UTF8-encoded
C string, instead of a Haskell string.  This makes the *calls* to these
functions easier to generate, and smaller too, which is a good thing.

In particular, it means that MkId.mkRecordSelectorId doesn't need to
be passed "unpackCStringId", which was GRUESOME; and that in turn means
that tcTypeAndClassDecls doesn't need to be passed unf_env, which is
a very worthwhile cleanup.   Win/win situation.

3.  GHC now faithfully translates do-notation using ">>" for statements
with no binding, just as the report says.  While I was there I tidied
up HsDo to take a list of Ids instead of 3 (but now 4) separate Ids.
Saves a bit of code here and there.  Also introduced Inst.newMethodFromName
to package a common idiom.

22 years ago[project @ 2002-04-10 15:57:16 by simonmar]
simonmar [Wed, 10 Apr 2002 15:57:16 +0000 (15:57 +0000)]
[project @ 2002-04-10 15:57:16 by simonmar]
Update to newer FFI definition style

22 years ago[project @ 2002-04-10 11:43:49 by stolz]
stolz [Wed, 10 Apr 2002 11:43:49 +0000 (11:43 +0000)]
[project @ 2002-04-10 11:43:49 by stolz]
Two new scheduler-API primops:

1) GHC.Conc.forkProcess/forkProcess# :: IO Int
   This is a low-level call to fork() to replace Posix.forkProcess().
   In a Concurrent Haskell setting, only the thread invoking forkProcess()
   is alive in the child process. Other threads will be GC'ed!
      This brings the RTS closer to pthreads, where a call to fork()
   doesn't clone any pthreads, either.
      The result is 0 for the child and the child's pid for the parent.
   The primop will barf() when used on mingw32, sorry.

2) GHC.Conc.labelThread/forkProcess# :: String -> IO ()
   Useful for scheduler debugging: If the RTS is compiled with DEBUGging
   support, this primitive assigns a name to the current thread which
   will be used in debugging output (+RTS -D1). For larger applications,
   simply numbering threads is not sufficient.
     Notice: The Haskell side of this call is always available, but if
   you are not compiling with debugging support, the actual primop will
   turn into a no-op.

22 years ago[project @ 2002-04-02 15:33:34 by sof]
sof [Tue, 2 Apr 2002 15:33:34 +0000 (15:33 +0000)]
[project @ 2002-04-02 15:33:34 by sof]
don't bother defining __hscore_sigaddset() on mingw

22 years ago[project @ 2002-04-02 10:19:21 by simonmar]
simonmar [Tue, 2 Apr 2002 10:19:21 +0000 (10:19 +0000)]
[project @ 2002-04-02 10:19:21 by simonmar]
Add foldl', the strict version of foldl.

22 years ago[project @ 2002-04-01 09:19:18 by simonpj]
simonpj [Mon, 1 Apr 2002 09:19:18 +0000 (09:19 +0000)]
[project @ 2002-04-01 09:19:18 by simonpj]
Remove Ix context from STArray data type.
Data type contexts are evil.  H98 says they
even apply for pattern matching, which GHC didn't
implement till now --- and that forces Ix even on
equality of STArrays. No, no, no.

22 years ago[project @ 2002-03-27 17:55:26 by simonmar]
simonmar [Wed, 27 Mar 2002 17:55:26 +0000 (17:55 +0000)]
[project @ 2002-03-27 17:55:26 by simonmar]
Fix cut-n-pasto  (the testsuite actually showed up something useful!)

22 years ago[project @ 2002-03-26 23:50:56 by sof]
sof [Tue, 26 Mar 2002 23:50:56 +0000 (23:50 +0000)]
[project @ 2002-03-26 23:50:56 by sof]
To make cygwin/mingw interworking a little bit simpler, use the __MINGW32__ define rather than config.h's mingw32_TARGET_OS

22 years ago[project @ 2002-03-26 21:07:06 by sof]
sof [Tue, 26 Mar 2002 21:07:06 +0000 (21:07 +0000)]
[project @ 2002-03-26 21:07:06 by sof]
make it work with cygwin again

22 years ago[project @ 2002-03-26 21:02:19 by sof]
sof [Tue, 26 Mar 2002 21:02:19 +0000 (21:02 +0000)]
[project @ 2002-03-26 21:02:19 by sof]
cygwin: stick with system()

22 years ago[project @ 2002-03-26 20:18:28 by sof]
sof [Tue, 26 Mar 2002 20:18:28 +0000 (20:18 +0000)]
[project @ 2002-03-26 20:18:28 by sof]
mingw32: drop msvcrt from extra_libraries list

22 years ago[project @ 2002-03-26 17:11:15 by simonmar]
simonmar [Tue, 26 Mar 2002 17:11:15 +0000 (17:11 +0000)]
[project @ 2002-03-26 17:11:15 by simonmar]
Update to new FFI syntax

22 years ago[project @ 2002-03-26 17:09:52 by simonmar]
simonmar [Tue, 26 Mar 2002 17:09:52 +0000 (17:09 +0000)]
[project @ 2002-03-26 17:09:52 by simonmar]
Update foreign import declaration to new syntax

22 years ago[project @ 2002-03-26 17:06:32 by simonmar]
simonmar [Tue, 26 Mar 2002 17:06:32 +0000 (17:06 +0000)]
[project @ 2002-03-26 17:06:32 by simonmar]
Add some missing type signatures

22 years ago[project @ 2002-03-26 17:03:08 by simonmar]
simonmar [Tue, 26 Mar 2002 17:03:08 +0000 (17:03 +0000)]
[project @ 2002-03-26 17:03:08 by simonmar]
Add type signatures for isAlreadyExistsErrorType & friends

22 years ago[project @ 2002-03-26 10:53:03 by simonmar]
simonmar [Tue, 26 Mar 2002 10:53:03 +0000 (10:53 +0000)]
[project @ 2002-03-26 10:53:03 by simonmar]
sigaddset() can be a macro, so add an wrapper around it (inlined in
via-C mode).  I didn't bother with the #ifdef darwin_TARGET_OS around
this change since it doesn't hurt on other architectures.

22 years ago[project @ 2002-03-26 10:44:32 by simonmar]
simonmar [Tue, 26 Mar 2002 10:44:32 +0000 (10:44 +0000)]
[project @ 2002-03-26 10:44:32 by simonmar]
sigaddset returns a CInt, not ()

From: Wolfgang Thaller <wolfgang.thaller@gmx.net>

22 years ago[project @ 2002-03-25 15:49:26 by sof]
sof [Mon, 25 Mar 2002 15:49:26 +0000 (15:49 +0000)]
[project @ 2002-03-25 15:49:26 by sof]
make HSbase splitting a mingw-only affair (and a sorry one, at that.)

22 years ago[project @ 2002-03-25 05:25:27 by sof]
sof [Mon, 25 Mar 2002 05:25:27 +0000 (05:25 +0000)]
[project @ 2002-03-25 05:25:27 by sof]
make splitting of HSbase.o work (mingw only)

22 years ago[project @ 2002-03-25 05:23:53 by sof]
sof [Mon, 25 Mar 2002 05:23:53 +0000 (05:23 +0000)]
[project @ 2002-03-25 05:23:53 by sof]
provide isblank() for Win32

22 years ago[project @ 2002-03-22 10:20:24 by simonmar]
simonmar [Fri, 22 Mar 2002 10:20:24 +0000 (10:20 +0000)]
[project @ 2002-03-22 10:20:24 by simonmar]
This module now lives above the Prelude in the dependency tree.

22 years ago[project @ 2002-03-20 15:38:36 by simonmar]
simonmar [Wed, 20 Mar 2002 15:38:36 +0000 (15:38 +0000)]
[project @ 2002-03-20 15:38:36 by simonmar]
convert to new-style FFI declarations

22 years ago[project @ 2002-03-19 11:24:51 by simonmar]
simonmar [Tue, 19 Mar 2002 11:24:52 +0000 (11:24 +0000)]
[project @ 2002-03-19 11:24:51 by simonmar]
Fix 64-bit shift operations.

- Move the declarations of the 64-bit "primops" from PrimOps.h to
  HsBase.h where they more properly belong.

- change the names of the 64-bit shift ops to include the "unchecked"
  prefix

- add checked versions of these primops to GHC.Int and GHC.Word, and
  use them.

- update the FFI declarations in GHC.Int and GHC.Word while I'm there.

22 years ago[project @ 2002-03-19 10:59:01 by simonmar]
simonmar [Tue, 19 Mar 2002 10:59:01 +0000 (10:59 +0000)]
[project @ 2002-03-19 10:59:01 by simonmar]
Use new form of FFI declarations

22 years ago[project @ 2002-03-18 14:03:20 by simonmar]
simonmar [Mon, 18 Mar 2002 14:03:20 +0000 (14:03 +0000)]
[project @ 2002-03-18 14:03:20 by simonmar]
Fix silly bug I noticed unpackAcc, which apparently is not triggered.

22 years ago[project @ 2002-03-15 12:45:12 by simonmar]
simonmar [Fri, 15 Mar 2002 12:45:12 +0000 (12:45 +0000)]
[project @ 2002-03-15 12:45:12 by simonmar]
This doesn't appear to be used

22 years ago[project @ 2002-03-15 12:42:39 by simonmar]
simonmar [Fri, 15 Mar 2002 12:43:07 +0000 (12:43 +0000)]
[project @ 2002-03-15 12:42:39 by simonmar]
Convert to new syntax