[Haskell-cafe] Re: Compiling regex-posix-0.93.2 on windows

Chris Kuklewicz haskell at list.mightyreason.com
Fri Jan 16 16:17:44 EST 2009


> I should note that you do not need to edit the .cabal file to do this.
> As of Cabal-1.4 there are extra command line flags to configure (or
> equivalently to cabal install)
> 
> --extra-include-dirs=dir --extra-lib-dirs=dir
> 
> Duncan


I have seen the new cabal arguments.  All I was giving was debugging advice on a 
platform I have never tested on.

And regex-posix has a very "old school" Setup.hs file with a small addition:

> #!/usr/bin/env runhaskell
> 
> -- I usually compile this with "ghc --make -o setup Setup.hs"
> 
> import Distribution.Simple(defaultMainWithHooks, defaultUserHooks)
> main = do
>   putStrLn msg
>   defaultMainWithHooks defaultUserHooks
> 
> msg = "This links to the standard c library version of regular expressions.\n\
>       \The corresponding c header file is regex.h and there is a chance you\n\
>       \will need to edit the end of the regex-posix.cabal file to find the\n\
>       \include directory and/or library.\n"

Hmmm...the next version will probably need to mention the cabal command line 
flags as well.



More information about the Haskell-Cafe mailing list