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

2009-01-17 Thread Duncan Coutts
On Fri, 2009-01-16 at 21:17 +, Chris Kuklewicz wrote: 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,

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

2009-01-16 Thread Chris Kuklewicz
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

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

2009-01-15 Thread Paulo Tanimoto
Hi Chris et al: On Fri, Oct 17, 2008 at 4:33 PM, Chris Kuklewicz hask...@list.mightyreason.com wrote: I am not sure what is going wrong. I have not been using Haskell on windows. I am also copying this reply to haskell-cafe and libaries mailing lists. Does anyone know? I get passed that

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

2009-01-15 Thread ChrisK
Paulo: I suggest doing this more carefully. Get the source from hackage. Edit the regex-posix.cabal file to add the include and lib directories you need on Cygwin. cabal configure it. cabal build it. cabal install it. Then in an unrelated directory try and run ghci -package regex-posix.

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

2009-01-15 Thread Duncan Coutts
On Thu, 2009-01-15 at 22:00 +, ChrisK wrote: Paulo: I suggest doing this more carefully. Get the source from hackage. Edit the regex-posix.cabal file to add the include and lib directories you need on Cygwin. I should note that you do not need to edit the .cabal file to do this. As

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

2009-01-15 Thread Paulo Tanimoto
Hi Chris, Good call, I'm following your advice. ghci fails to load with the package that it seemed to compile just fine. Here are some details (also see file attached). Thank you! Paulo $ wget http://hackage.haskell.org/packages/archive/regex-posix/0.93.2/regex-posix-0.93.2.tar.gz $ vim

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

2009-01-15 Thread Paulo Tanimoto
Duncan, On Thu, Jan 15, 2009 at 4:35 PM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: 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

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

2008-10-17 Thread Chris Kuklewicz
I am not sure what is going wrong. I have not been using Haskell on windows. I am also copying this reply to haskell-cafe and libaries mailing lists. Does anyone know? Parnell Flynn wrote: I am having a terrible time compiling the 0.93.2 version of the regex-posix library on windows XP.