Hello You can build GNU's regex C-library with MinGW from source and this will give you regex.h and libregex.a / libregex.dll. I think I've only had the Haskell regex-posix package half-working doing this though; i.e. I could build and install regex-posix after I'd made and installed GNU regex, but when I tried to use (Haskell) packages that depended on (Haskell) regex-posix I got linker errors. As I could live without the dependent packages I never investigated further. Best wishes Stephen _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Thanks, it
works. Some tests from regex-posix-unittest still fail, but I think
this is because
of my regex implementation. If you interested in using regex-posix on
Windows, this
is what I actually did to make it work:
Firs I’ve downloaded
regex library from http://mingw.cvs.sourceforge.net/mingw/regex/ and built it with default parameters.
This gave me libgnurx-0.dll.
Than I’ve downloaded regex-posix from hackage, added reference to
libgnurx to
the cabal file, built and install. At this point I was able to build
and run regex-posix-unittest,
but GHCi still didn’t want to load the library. I’ve copied
libgnurx-0.dll into the GHC’s
/bin directory and renamed it to libgnurx.dll. After this GHCi has
started
work. I use GHC 6.12.2 on Windows Server Web 2008, regex-posix is
0.94.1. I
think it would be nice if someone will write an article on Haskell Wiki
on building
regex-posix, but my English is not good enough for such things.