[Hugs-bugs] Re: [Haskell] More on HXML toolbox with Hugs/Windows: matchRegex

Ross Paterson ross at soi.city.ac.uk
Mon Jan 26 23:10:12 EST 2004

On Mon, Jan 26, 2004 at 06:29:45PM +0000, Graham Klyne wrote:
> I think I've managed to create a version of POpen to go with Hugs under 
> Windows.  (It all compiles/links, but I haven't yet got a stand-alone test 
> case for it).
> So now I'm pushing ahead with trying to get the HXML toolbox running under 
> Hugs/Windows, and I've hit a snag with the Regex library.
> The oldlibs version of Regex apparently exports a function matchRegex, but 
> the Text.Regex module which it calls upon to supply that function does not 
> appear to define it.  The problem can be seen by trying to load module 
> Network.URI that is supplied with Hugs (2003 edition).

Unfortunately the Windows version of the Nov 2003 release lacks the
compiled version of Text.Regex.Posix, which is used by Text.Regex and
hence by Network.URI.  I don't think there's any way round this with
your setup (compiling with MSVC) -- you can recompile the interpreter,
but not FFI libraries (I guess?).  (It needs to be linked with the
stuff in fptools/base/cbits/regex)

More information about the Hugs-Bugs mailing list