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
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.
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
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
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.
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.
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
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.
panne [Mon, 4 Mar 2002 17:25:36 +0000 (17:25 +0000)]
[project @ 2002-03-04 17:25:36 by panne]
Export modifySTRef, too
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
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.
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
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
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.
panne [Sun, 17 Feb 2002 20:08:56 +0000 (20:08 +0000)]
[project @ 2002-02-17 20:08:56 by panne]
Add missing commas... >:-(
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*
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... ;-)
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
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
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
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
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.
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.
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.
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
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"
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.
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.
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"
simonmar [Thu, 14 Feb 2002 13:59:21 +0000 (13:59 +0000)]
[project @ 2002-02-14 13:59:21 by simonmar]
Initial revision
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
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
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)
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
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)
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
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
simonmar [Wed, 13 Feb 2002 12:17:14 +0000 (12:17 +0000)]
[project @ 2002-02-13 12:17:14 by simonmar]
import Prelude
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)
simonmar [Wed, 13 Feb 2002 11:52:42 +0000 (11:52 +0000)]
[project @ 2002-02-13 11:52:42 by simonmar]
Remove a ToDo
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.
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
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
simonmar [Tue, 12 Feb 2002 15:51:26 +0000 (15:51 +0000)]
[project @ 2002-02-12 15:51:26 by simonmar]
Remove fromInt/toInt
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 :-(
simonmar [Tue, 12 Feb 2002 10:52:47 +0000 (10:52 +0000)]
[project @ 2002-02-12 10:52:47 by simonmar]
wibbles
simonmar [Tue, 12 Feb 2002 10:52:18 +0000 (10:52 +0000)]
[project @ 2002-02-12 10:52:18 by simonmar]
Place this below the Prelude in the dependency tree, so we can import
it in Foreign.Ptr without creating a loop.
simonmar [Tue, 12 Feb 2002 10:51:06 +0000 (10:51 +0000)]
[project @ 2002-02-12 10:51:06 by simonmar]
Export h{Get,Set}Echo, and hIsTerminalDevice
simonmar [Tue, 12 Feb 2002 10:50:37 +0000 (10:50 +0000)]
[project @ 2002-02-12 10:50:37 by simonmar]
Make this build: OPTIONS -fparr and place it above the Prelude in the
dependency tree.
simonmar [Tue, 12 Feb 2002 10:50:03 +0000 (10:50 +0000)]
[project @ 2002-02-12 10:50:03 by simonmar]
The new home for performGC.
simonmar [Tue, 12 Feb 2002 09:39:19 +0000 (09:39 +0000)]
[project @ 2002-02-12 09:39:19 by simonmar]
Merge rev. 1.61 of ghc/lib/std/PrelBase.lhs
simonmar [Mon, 11 Feb 2002 17:30:57 +0000 (17:30 +0000)]
[project @ 2002-02-11 17:30:57 by simonmar]
Add code to build/install the split version of this library on Windows
(untested). It may be that the base library has grown sufficiently to
warrant being split into 3 now, or we may need to orgnise the
splitting criteria a little better. Feedback from someone with a
Win32 build would be welcome (once I've checked the rest of the
changes in).
simonmar [Mon, 11 Feb 2002 17:11:12 +0000 (17:11 +0000)]
[project @ 2002-02-11 17:11:12 by simonmar]
New module from ghc/lib/std.
simonmar [Mon, 11 Feb 2002 17:10:56 +0000 (17:10 +0000)]
[project @ 2002-02-11 17:10:56 by simonmar]
don't forget -funbox-strict-fields for GHC.IOBase
simonmar [Mon, 11 Feb 2002 16:11:38 +0000 (16:11 +0000)]
[project @ 2002-02-11 16:11:38 by simonmar]
Add missing Show instance for Ptr.
simonmar [Mon, 11 Feb 2002 12:31:30 +0000 (12:31 +0000)]
[project @ 2002-02-11 12:31:30 by simonmar]
- Don't forget System/Console
- Add -fglasgow-exts and -cpp here rather than mk/target.mk
simonmar [Mon, 11 Feb 2002 12:29:27 +0000 (12:29 +0000)]
[project @ 2002-02-11 12:29:13 by simonmar]
HsCore ==> HsBase
simonmar [Mon, 11 Feb 2002 12:28:57 +0000 (12:28 +0000)]
[project @ 2002-02-11 12:28:57 by simonmar]
Export runMain (following ghc/lib/std/PrelTopHandler.lhs)
simonmar [Mon, 11 Feb 2002 12:28:31 +0000 (12:28 +0000)]
[project @ 2002-02-11 12:28:31 by simonmar]
Export the various memcpy functions (following ghc/lib/std/PrelIO.hs)
simonmar [Mon, 11 Feb 2002 12:28:04 +0000 (12:28 +0000)]
[project @ 2002-02-11 12:28:04 by simonmar]
Final part of QuickCheck from hslibs/utils.
simonmar [Mon, 11 Feb 2002 12:27:34 +0000 (12:27 +0000)]
[project @ 2002-02-11 12:27:34 by simonmar]
These files aren't necessary any more.
simonmar [Thu, 7 Feb 2002 11:13:30 +0000 (11:13 +0000)]
[project @ 2002-02-07 11:13:29 by simonmar]
Various updates after rearranging the directory structure in the
repository (there wasn't any history worth keeping, and it's better to
do this now before we go 'live').
Packages under 'compat' are backwards-compatibility packages which
should provide an interface equivalent to the current hslibs setup.
There are a few packages still missing.
simonmar [Wed, 6 Feb 2002 11:51:12 +0000 (11:51 +0000)]
[project @ 2002-02-06 11:51:12 by simonmar]
- change package name to "base"
- make GHC/PrimopWrappers work.
simonmar [Wed, 6 Feb 2002 11:50:31 +0000 (11:50 +0000)]
[project @ 2002-02-06 11:50:31 by simonmar]
Back off: don't use UseGhcForCc as a magic way to get the right
include paths, because we still need to tell mkdependC about them.
simonmar [Wed, 6 Feb 2002 11:49:32 +0000 (11:49 +0000)]
[project @ 2002-02-06 11:49:32 by simonmar]
#include <stdlib.h>
simonmar [Wed, 6 Feb 2002 10:40:26 +0000 (10:40 +0000)]
[project @ 2002-02-06 10:40:26 by simonmar]
Building the cbits library is simpler with UseGhcForCC=YES.
simonmar [Wed, 6 Feb 2002 10:14:26 +0000 (10:14 +0000)]
[project @ 2002-02-06 10:14:26 by simonmar]
There's no need for this to be a .hsc file. I'm moving towards
libraries/core being .hsc-free, so eventually this can be used for
bootstrapping.
simonmar [Tue, 5 Feb 2002 17:32:27 +0000 (17:32 +0000)]
[project @ 2002-02-05 17:32:24 by simonmar]
- Merging from ghc/lib/std
- Add System.IO.Error
- Now builds without --make, so we can do -split-objs
simonmar [Wed, 2 Jan 2002 15:13:23 +0000 (15:13 +0000)]
[project @ 2002-01-02 15:13:23 by simonmar]
We need GHC/Prim.hi for when the package is built, although we only
use GHC/Prim.hi-boot during building.
simonmar [Wed, 2 Jan 2002 15:01:44 +0000 (15:01 +0000)]
[project @ 2002-01-02 15:01:44 by simonmar]
Fix the names of some foreign imports.
simonmar [Wed, 2 Jan 2002 15:01:27 +0000 (15:01 +0000)]
[project @ 2002-01-02 15:01:27 by simonmar]
import Prelude explicitly (this is necessary in libraries/core so that
ghc --make can infer correct dependencies).
simonmar [Wed, 2 Jan 2002 14:40:11 +0000 (14:40 +0000)]
[project @ 2002-01-02 14:40:09 by simonmar]
Make this compile again, and update with latest changes from hslibs/lang.
simonmar [Fri, 21 Dec 2001 15:07:26 +0000 (15:07 +0000)]
[project @ 2001-12-21 15:07:20 by simonmar]
Merge up to the ghc/lib/std on the HEAD (tagged as
new-libraries-last-merged).
rrt [Thu, 18 Oct 2001 11:14:17 +0000 (11:14 +0000)]
[project @ 2001-10-18 11:14:17 by rrt]
Remove comment that was for STGHUGS.
rrt [Thu, 18 Oct 2001 11:10:19 +0000 (11:10 +0000)]
[project @ 2001-10-18 11:10:19 by rrt]
Remove STGHUGSery.
simonmar [Fri, 14 Sep 2001 11:25:57 +0000 (11:25 +0000)]
[project @ 2001-09-14 11:25:57 by simonmar]
Remove inline functions from GHC.Handle and GHC.IO, and declare them as
'extern inline' in HsCore.h.
simonmar [Fri, 14 Sep 2001 11:25:24 +0000 (11:25 +0000)]
[project @ 2001-09-14 11:25:23 by simonmar]
- replace PackedString implementation with one based on UArray. It hasn't
been tuned for performance yet, and it seems that not enough fusion is
happening yet, but in theory it should be nearly as fast as the old
implementation (modulo the fact that the new packed string representation
used 32-bit chars vs. 8-bit chars in the old implementation).
- remove hPutBufBA and hGetBufBA from GHC.IO.
- add new functions hPutArray and hGetArray to Data.Array.IO, to directly
read/write arrays of bytes. These are behind the implementations of
hGetPS & hPutPS in the new PackedString.
- finally, remove the last vestiges of ByteArray and MutableByteArray
from the core libraries. Deprecated implementations will be available
in the lang compatibility package.
- move the inline functions from GHC.Handle into HsCore.h, and declare
them as 'extern inline'.
simonmar [Thu, 13 Sep 2001 15:34:17 +0000 (15:34 +0000)]
[project @ 2001-09-13 15:34:17 by simonmar]
remove unused import
simonmar [Thu, 13 Sep 2001 11:50:35 +0000 (11:50 +0000)]
[project @ 2001-09-13 11:50:35 by simonmar]
Add Set (from package data)
simonmar [Thu, 13 Sep 2001 11:40:28 +0000 (11:40 +0000)]
[project @ 2001-09-13 11:40:28 by simonmar]
remove get_prog_arg{c,v} prototypes
simonmar [Thu, 13 Sep 2001 11:39:58 +0000 (11:39 +0000)]
[project @ 2001-09-13 11:39:58 by simonmar]
Use withForeignPtr rather than passing ForeignPtrs directly to foreign
imported functions.
simonmar [Thu, 13 Sep 2001 11:39:14 +0000 (11:39 +0000)]
[project @ 2001-09-13 11:39:14 by simonmar]
Fix the module header
simonmar [Thu, 13 Sep 2001 11:38:54 +0000 (11:38 +0000)]
[project @ 2001-09-13 11:38:54 by simonmar]
cosmetic only: separate the IOErrorType declaration into Haskell 98
and non-Haskell 98 sections.
simonmar [Thu, 13 Sep 2001 11:37:43 +0000 (11:37 +0000)]
[project @ 2001-09-13 11:37:43 by simonmar]
remove a couple of unused imports
simonmar [Thu, 13 Sep 2001 11:37:08 +0000 (11:37 +0000)]
[project @ 2001-09-13 11:37:08 by simonmar]
add missing import; make it compile
simonmar [Thu, 13 Sep 2001 11:36:52 +0000 (11:36 +0000)]
[project @ 2001-09-13 11:36:52 by simonmar]
make this compile
simonmar [Thu, 13 Sep 2001 11:35:09 +0000 (11:35 +0000)]
[project @ 2001-09-13 11:35:09 by simonmar]
Add System.Mem directory
simonmar [Thu, 30 Aug 2001 13:36:00 +0000 (13:36 +0000)]
[project @ 2001-08-30 13:36:00 by simonmar]
fix a few typos and add some clarifications
simonmar [Fri, 17 Aug 2001 12:50:35 +0000 (12:50 +0000)]
[project @ 2001-08-17 12:50:34 by simonmar]
Track updates to ghc/lib/std and hslibs.
simonmar [Fri, 17 Aug 2001 12:48:38 +0000 (12:48 +0000)]
[project @ 2001-08-17 12:48:38 by simonmar]
Add QuickCheck from package util.
simonmar [Fri, 17 Aug 2001 12:47:47 +0000 (12:47 +0000)]
[project @ 2001-08-17 12:47:47 by simonmar]
Add a Makefile (for installing the includes)
simonmar [Fri, 17 Aug 2001 12:47:10 +0000 (12:47 +0000)]
[project @ 2001-08-17 12:47:10 by simonmar]
Copy from ghc/lib/std/cbits
simonmar [Fri, 17 Aug 2001 12:46:40 +0000 (12:46 +0000)]
[project @ 2001-08-17 12:46:40 by simonmar]
Add default pretty printing library.
simonmar [Fri, 17 Aug 2001 12:46:16 +0000 (12:46 +0000)]
[project @ 2001-08-17 12:46:16 by simonmar]
Add default pretty printing library (Text.PrettyPrint.HughesPJ).
simonmar [Fri, 17 Aug 2001 12:45:27 +0000 (12:45 +0000)]
[project @ 2001-08-17 12:45:27 by simonmar]
Move System.IO.Directory to System.Directory
simonmar [Fri, 17 Aug 2001 12:44:54 +0000 (12:44 +0000)]
[project @ 2001-08-17 12:44:54 by simonmar]
Add FiniteMap from package data.
simonmar [Tue, 7 Aug 2001 15:25:04 +0000 (15:25 +0000)]
[project @ 2001-08-07 15:25:04 by simonmar]
Remove 'fork' (unsafe, and not used), and don't export 'seq' and 'par'.
simonmar [Thu, 2 Aug 2001 13:30:36 +0000 (13:30 +0000)]
[project @ 2001-08-02 13:30:36 by simonmar]
Don't export non-H98 functions
simonmar [Thu, 2 Aug 2001 11:20:50 +0000 (11:20 +0000)]
[project @ 2001-08-02 11:20:50 by simonmar]
Add a POSIX regular expression binding as Text/Regex/Posix. POSIX
regexps are provided virtually everywhere (except Windows, but there's
always pcre), and this means we won't have to ship the a copy of
GNU regex.c, which is GPL'ed.
Compared to hslibs/text/Regex.lhs, this one is much shorter (150 lines
vs. 350), more portable (uses the FFI libs and hsc2hs vs. casm), and
easier to use (it returns the right number of subexpressions from the
regex, rather than 32 all the time).
Text.Regex is a re-implementation of the old
hslibs/text/RegexString.lhs, written to use Text.Regex.Posix. The
syntax of regexps is probably not identical, but it's certainly
similar enough that the URI library works unchanged with the new
implementation.
simonmar [Wed, 1 Aug 2001 13:53:07 +0000 (13:53 +0000)]
[project @ 2001-08-01 13:53:07 by simonmar]
Add Andy Gill's HTML combinator library.