Compiling regex-posix on Windows

Mikhail Glushenkov the.dead.shall.rise at
Thu Mar 25 14:02:03 EDT 2010

Hi all,

The only problem stalling the release of the Windows installer for the
new Haskell Platform is the bug in regex-posix. It compiles fine
(using the libregex.a library from MinGW), but
fails at runtime with the following error:

Prelude> import Text.Regex.Posix
Prelude Text.Regex.Posix> "bar" =~ "(foo|bar)" ::Bool
Loading package array- ... linking ... done.
Loading package bytestring- ... linking ... done.
Loading package containers- ... linking ... done.
Loading package mtl- ... linking ... done.
Loading package regex-base-0.93.1 ... linking ... done.
Loading package regex-posix-0.94.1 ... linking ... <interactive>: E:\Program Fil
es (x86)\Haskell\regex-posix-0.94.1\ghc-6.12.1\HSregex-posix-0.94.1.o: unknown s
ymbol `_regerror'
: unable to load package `regex-posix-0.94.1'
Prelude Text.Regex.Posix>

Unfortunately, Chris, the maintainer, doesn't have access to a Windows
machine with GHC currently, and therefore can't help me.

I'd appreciate any pointers on how to fix this.

()  ascii ribbon campaign - against html e-mail
/\   - against proprietary attachments

More information about the Libraries mailing list