ghc-base.git
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

22 years ago[project @ 2002-03-14 16:26:40 by simonmar]
simonmar [Thu, 14 Mar 2002 16:26:40 +0000 (16:26 +0000)]
[project @ 2002-03-14 16:26:40 by simonmar]
Add class Splittable that accidentally got dropped on the floor when
we moved over to the new libraries.

22 years ago[project @ 2002-03-14 12:09:49 by simonmar]
simonmar [Thu, 14 Mar 2002 12:09:52 +0000 (12:09 +0000)]
[project @ 2002-03-14 12:09:49 by simonmar]
Eliminate some orphan-instance modules to speed up compilation.

I decided to just bite the bullet and give Data.Dynamic an .hi-boot
file, so I could remove GHC.Dynamic altogether, move its data types
into Data.Dynamic and hence prevent Data.Dynamic from being an orphan
module.  Furthermore, GHC.Dynamic wasn't GHC specific - its only
purpose in life was to prevent module loops, so having it at all was
artificial.

22 years ago[project @ 2002-03-11 14:53:51 by simonmar]
simonmar [Mon, 11 Mar 2002 14:53:51 +0000 (14:53 +0000)]
[project @ 2002-03-11 14:53:51 by simonmar]
Use updated FFI syntax

22 years ago[project @ 2002-03-05 14:31:47 by simonmar]
simonmar [Tue, 5 Mar 2002 14:31:47 +0000 (14:31 +0000)]
[project @ 2002-03-05 14:31:47 by simonmar]
The interface file for GHC.Prim is now built-in to the compiler, and
mostly automatically generated.

22 years ago[project @ 2002-03-04 17:25:36 by panne]
panne [Mon, 4 Mar 2002 17:25:36 +0000 (17:25 +0000)]
[project @ 2002-03-04 17:25:36 by panne]
Export modifySTRef, too

22 years ago[project @ 2002-03-04 17:02:43 by simonmar]
simonmar [Mon, 4 Mar 2002 17:02:43 +0000 (17:02 +0000)]
[project @ 2002-03-04 17:02:43 by simonmar]
- generate GHC/Prim.hi from GHC/Prim.hi-boot using ghc --compile-iface
- compile the whole lot with -funbox-strict-fields

22 years ago[project @ 2002-02-27 14:33:09 by simonmar]
simonmar [Wed, 27 Feb 2002 14:33:09 +0000 (14:33 +0000)]
[project @ 2002-02-27 14:33:09 by simonmar]
Move the Float/Double constant folding rules from GHC.Float to
GHC.Base, thus returning GHC.Float to its non-orphan status.

22 years ago[project @ 2002-02-27 14:32:23 by simonmar]
simonmar [Wed, 27 Feb 2002 14:32:23 +0000 (14:32 +0000)]
[project @ 2002-02-27 14:32:23 by simonmar]
Define hTell in GHC.Handle, and export it from System.IO

22 years ago[project @ 2002-02-27 14:31:44 by simonmar]
simonmar [Wed, 27 Feb 2002 14:31:44 +0000 (14:31 +0000)]
[project @ 2002-02-27 14:31:44 by simonmar]
remove unnecessary import of GHC.Prim

22 years ago[project @ 2002-02-26 18:19:17 by ross]
ross [Tue, 26 Feb 2002 18:19:17 +0000 (18:19 +0000)]
[project @ 2002-02-26 18:19:17 by ross]
New Control.Arrow module, plus Arrow stub (in lang) for compatability.

22 years ago[project @ 2002-02-17 20:08:56 by panne]
panne [Sun, 17 Feb 2002 20:08:56 +0000 (20:08 +0000)]
[project @ 2002-02-17 20:08:56 by panne]
Add missing commas...   >:-(

22 years ago[project @ 2002-02-17 20:05:35 by panne]
panne [Sun, 17 Feb 2002 20:05:35 +0000 (20:05 +0000)]
[project @ 2002-02-17 20:05:35 by panne]
Install GHC.Prim interface file, too... *sigh*

22 years ago[project @ 2002-02-17 15:22:11 by panne]
panne [Sun, 17 Feb 2002 15:22:11 +0000 (15:22 +0000)]
[project @ 2002-02-17 15:22:11 by panne]
Synch import_dirs with the result of "make install". It could have
been fixed the other way round, but fixing the config files makes more
sense to me. Furthermore, I've got a 50% chance of taking the correct
route by pure accident... ;-)

22 years ago[project @ 2002-02-16 18:04:28 by simonmar]
simonmar [Sat, 16 Feb 2002 18:04:28 +0000 (18:04 +0000)]
[project @ 2002-02-16 18:04:28 by simonmar]
Must #include <sys/types.h> before regex.h

22 years ago[project @ 2002-02-15 11:28:47 by simonpj]
simonpj [Fri, 15 Feb 2002 11:28:47 +0000 (11:28 +0000)]
[project @ 2002-02-15 11:28:47 by simonpj]
Remove __P from prototypes

22 years ago[project @ 2002-02-15 11:27:03 by simonpj]
simonpj [Fri, 15 Feb 2002 11:27:03 +0000 (11:27 +0000)]
[project @ 2002-02-15 11:27:03 by simonpj]
- include <sys/types.h> rather than non-std <sys/cdefs.h>
- remove use of __P-style prototypes

22 years ago[project @ 2002-02-15 11:26:02 by simonpj]
simonpj [Fri, 15 Feb 2002 11:26:02 +0000 (11:26 +0000)]
[project @ 2002-02-15 11:26:02 by simonpj]
mingw32 doesn't define _POSIX2_RE_DUP_MAX, it seems

22 years ago[project @ 2002-02-14 15:14:02 by simonmar]
simonmar [Thu, 14 Feb 2002 15:14:02 +0000 (15:14 +0000)]
[project @ 2002-02-14 15:14:02 by simonmar]
Fixes to 'make install' in fptools/libraries.  We have to maintain the
directory structure when installing the .hi files, rather than just
dumping them in a single directory as we do for packages in
fptools/hslibs.

22 years ago[project @ 2002-02-14 14:08:50 by simonmar]
simonmar [Thu, 14 Feb 2002 14:08:50 +0000 (14:08 +0000)]
[project @ 2002-02-14 14:08:50 by simonmar]
Catch up with changes to the foreign import syntax.

22 years ago[project @ 2002-02-14 14:08:25 by simonmar]
simonmar [Thu, 14 Feb 2002 14:08:25 +0000 (14:08 +0000)]
[project @ 2002-02-14 14:08:25 by simonmar]
Use cbits/regex if the system doesn't have a POSIX-compatible regular
expression library.

22 years ago[project @ 2002-02-14 14:07:16 by simonmar]
simonmar [Thu, 14 Feb 2002 14:07:16 +0000 (14:07 +0000)]
[project @ 2002-02-14 14:07:16 by simonmar]
Also import FreeBSD's regex.h

22 years ago[project @ 2002-02-14 14:05:48 by simonmar]
simonmar [Thu, 14 Feb 2002 14:05:48 +0000 (14:05 +0000)]
[project @ 2002-02-14 14:05:48 by simonmar]
Include regex stuff if $(HavePosixRegex) == "NO"

22 years ago[project @ 2002-02-14 14:05:12 by simonmar]
simonmar [Thu, 14 Feb 2002 14:05:12 +0000 (14:05 +0000)]
[project @ 2002-02-14 14:05:12 by simonmar]
FreeBSD regex library requires reallocf(), a FreeBSD-specific flavour
of realloc(), so include it here.

22 years ago[project @ 2002-02-14 14:03:25 by simonmar]
simonmar [Thu, 14 Feb 2002 14:03:25 +0000 (14:03 +0000)]
[project @ 2002-02-14 14:03:25 by simonmar]
Remove support for "collate" which appears to be a locale-independent
way of interpreting character ranges like [a-z].  Anyway it relies on
stuff internal to FreeBSD's libc which doesn't appear to be easy to
extract, so just disable it.

22 years ago[project @ 2002-02-14 14:01:38 by simonmar]
simonmar [Thu, 14 Feb 2002 14:01:38 +0000 (14:01 +0000)]
[project @ 2002-02-14 14:01:38 by simonmar]
<regex.h> ==> "regex.h"

22 years ago[project @ 2002-02-14 13:59:21 by simonmar]
simonmar [Thu, 14 Feb 2002 13:59:21 +0000 (13:59 +0000)]
[project @ 2002-02-14 13:59:21 by simonmar]
Initial revision

22 years ago[project @ 2002-02-14 13:59:20 by simonmar]
simonmar [Thu, 14 Feb 2002 13:59:21 +0000 (13:59 +0000)]
[project @ 2002-02-14 13:59:20 by simonmar]
Import FreeBSD's regex library

22 years ago[project @ 2002-02-14 07:33:09 by sof]
sof [Thu, 14 Feb 2002 07:33:09 +0000 (07:33 +0000)]
[project @ 2002-02-14 07:33:09 by sof]
move half a dozen non-mingw f-imports into approp. ifdef section

22 years ago[project @ 2002-02-14 07:32:17 by sof]
sof [Thu, 14 Feb 2002 07:32:17 +0000 (07:32 +0000)]
[project @ 2002-02-14 07:32:17 by sof]
mingw: support timezone and tzname (as before)

22 years ago[project @ 2002-02-14 07:31:34 by sof]
sof [Thu, 14 Feb 2002 07:31:34 +0000 (07:31 +0000)]
[project @ 2002-02-14 07:31:34 by sof]
hook in timeUtils.h

22 years ago[project @ 2002-02-14 07:31:03 by sof]
sof [Thu, 14 Feb 2002 07:31:03 +0000 (07:31 +0000)]
[project @ 2002-02-14 07:31:03 by sof]
Time stubs (for mingw)

22 years ago[project @ 2002-02-13 14:26:01 by simonmar]
simonmar [Wed, 13 Feb 2002 14:26:01 +0000 (14:26 +0000)]
[project @ 2002-02-13 14:26:01 by simonmar]
Move c_unlink foreign import outside #ifdef mingw32_TARGET_OS

22 years ago[project @ 2002-02-13 12:21:21 by simonmar]
simonmar [Wed, 13 Feb 2002 12:21:21 +0000 (12:21 +0000)]
[project @ 2002-02-13 12:21:21 by simonmar]
Merge inputReady.c from ghc/lib/std

22 years ago[project @ 2002-02-13 12:17:14 by simonmar]
simonmar [Wed, 13 Feb 2002 12:17:14 +0000 (12:17 +0000)]
[project @ 2002-02-13 12:17:14 by simonmar]
import Prelude

22 years ago[project @ 2002-02-13 12:12:08 by simonmar]
simonmar [Wed, 13 Feb 2002 12:12:08 +0000 (12:12 +0000)]
[project @ 2002-02-13 12:12:08 by simonmar]
Make this build on mingw32 (hopefully)

22 years ago[project @ 2002-02-13 11:52:42 by simonmar]
simonmar [Wed, 13 Feb 2002 11:52:42 +0000 (11:52 +0000)]
[project @ 2002-02-13 11:52:42 by simonmar]
Remove a ToDo

22 years ago[project @ 2002-02-13 11:51:40 by simonmar]
simonmar [Wed, 13 Feb 2002 11:51:40 +0000 (11:51 +0000)]
[project @ 2002-02-13 11:51:40 by simonmar]
- Detect presence of a POSIX-compatible regex interface in configure,
  and omit Text.Regex.Posix (and hence Text.Regex) if it is missing.
  ToDo: pull in a suitably-licensed implementation of POSIX regex
  to be used in the event that the system doesn't supply one.

- Rename old HaveRegex to HaveGNURegex.

22 years ago[project @ 2002-02-13 10:43:15 by simonpj]
simonpj [Wed, 13 Feb 2002 10:43:15 +0000 (10:43 +0000)]
[project @ 2002-02-13 10:43:15 by simonpj]
Use C comments not Haskell comments; ghc-pkg doesnt understand the latter

22 years ago[project @ 2002-02-13 10:17:29 by simonmar]
simonmar [Wed, 13 Feb 2002 10:17:29 +0000 (10:17 +0000)]
[project @ 2002-02-13 10:17:29 by simonmar]
include <limits.h> to get PATH_MAX

22 years ago[project @ 2002-02-12 15:51:26 by simonmar]
simonmar [Tue, 12 Feb 2002 15:51:26 +0000 (15:51 +0000)]
[project @ 2002-02-12 15:51:26 by simonmar]
Remove fromInt/toInt

22 years ago[project @ 2002-02-12 15:17:34 by simonmar]
simonmar [Tue, 12 Feb 2002 15:17:34 +0000 (15:17 +0000)]
[project @ 2002-02-12 15:17:34 by simonmar]
Switch over to the new hierarchical libraries
---------------------------------------------

This commit reorganises our libraries to use the new hierarchical
module namespace extension.

The basic story is this:

   - fptools/libraries contains the new hierarchical libraries.
     Everything in here is "clean", i.e. most deprecated stuff has
     been removed.

- fptools/libraries/base is the new base package
  (replacing "std") and contains roughly what was previously
  in std, lang, and concurrent, minus deprecated stuff.
  Things that are *not allowed* in libraries/base include:
Addr, ForeignObj, ByteArray, MutableByteArray,
_casm_, _ccall_, ``'', PrimIO

  For ByteArrays and MutableByteArrays we use UArray and
  STUArray/IOUArray respectively now.

  Modules previously called PrelFoo are now under
  fptools/libraries/GHC.  eg. PrelBase is now GHC.Base.

- fptools/libraries/haskell98 provides the Haskell 98 std.
  libraries (Char, IO, Numeric etc.) as a package.  This
  package is enabled by default.

- fptools/libraries/network is a rearranged version of
  the existing net package (the old package net is still
  available; see below).

- Other packages will migrate to fptools/libraries in
  due course.

     NB. you need to checkout fptools/libraries as well as
     fptools/hslibs now.  The nightly build scripts will need to be
     tweaked.

   - fptools/hslibs still contains (almost) the same stuff as before.
     Where libraries have moved into the new hierarchy, the hslibs
     version contains a "stub" that just re-exports the new version.
     The idea is that code will gradually migrate from fptools/hslibs
     into fptools/libraries as it gets cleaned up, and in a version or
     two we can remove the old packages altogether.

   - I've taken the opportunity to make some changes to the build
     system, ripping out the old hslibs Makefile stuff from
     mk/target.mk; the new package building Makefile code is in
     mk/package.mk (auto-included from mk/target.mk).

     The main improvement is that packages now register themselves at
     make boot time using ghc-pkg, and the monolithic package.conf
     in ghc/driver is gone.

     I've updated the standard packages but haven't tested win32,
     graphics, xlib, object-io, or OpenGL yet.  The Makefiles in
     these packages may need some further tweaks, and they'll need
     pkg.conf.in files added.

   - Unfortunately all this rearrangement meant I had to bump the
     interface-file version and create a bunch of .hi-boot-6 files :-(

22 years ago[project @ 2002-02-12 10:52:47 by simonmar]
simonmar [Tue, 12 Feb 2002 10:52:47 +0000 (10:52 +0000)]
[project @ 2002-02-12 10:52:47 by simonmar]
wibbles