16.04.2010 3:07, Stephen Tetley пишет:
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
Haskell-Cafe mailing list
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
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
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
work. I use GHC 6.12.2 on Windows Server Web 2008, regex-posix is
think it would be nice if someone will write an article on Haskell Wiki
regex-posix, but my English is not good enough for such things.