[Haskell-cafe] [cabal] How to deal with build-depency that not under cabal's control?

2009-06-14 Thread Magicloud Magiclouds
Hi, I use gtk2hs in linux. Well, I have no idea how to install gtk2hs by cabal, but my program needs it, and I want my program cabalized. So how to do this? Thanks. -- 竹密岂妨流水过 山高哪阻野云飞 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.ha

[Haskell-cafe] cabal install HaXml installs wrong version unless I specify the version number

2008-11-15 Thread Thomas Hartman
I was upgrading happstutorial.com to ghc 6.10.1 when I came across a cabal install issue. Somewhere in day 1 (probably as a HAppS dependency), HaXml 1.13.1 got installed. On day 2, I wanted the latest version of HaXml (1.19.4), a dependency for for xml-parsec. cabal install HaXml gave me: alread

[Haskell-cafe] cabal under windows (was Re: Haskell-Cafe Digest, Vol 51, Issue 180)

2007-11-28 Thread Tim Docker
> Well I'd say none of the packages I've tried, build out of the box... I'm not a windows developer, but Is it actually reasonable to expect any cabal packages that depend on external c libraries and headers to build out of the box on windows? How can cabal find out where those files are, w

RE: [Haskell-cafe] cabal under windows (was Re: Haskell-CafeDigest, Vol 51, Issue 180)

2007-11-29 Thread Bayley, Alistair
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Coutts > On Thu, 2007-11-29 at 13:51 +1100, Tim Docker wrote: > > > > Is it actually reasonable to expect any cabal packages that > depend on > > external c libraries and headers to build out of the box on > windows? How

RE: [Haskell-cafe] cabal under windows (was Re: Haskell-CafeDigest, Vol 51, Issue 180)

2007-11-29 Thread Tim Docker
Duncan Coutts wrote: > Tim Docker wrote: > > Is it actually reasonable to expect any cabal packages that depend on > > external c libraries and headers to build out of the box on windows? > > How can cabal find out where those files are, without requiring a > > config file to be edited? > > It

Re: [Haskell-cafe] 'cabal install lhs2tex' fails for me on os x -- help please

2009-07-27 Thread Don Stewart
conal: > Fails during configuration: > > bash-3.2$ cabal install lhs2tex > Resolving dependencies... > [1 of 1] Compiling Main ( /tmp/lhs2tex-1.1423397/lhs2tex-1.14/ > Setup.hs, /tmp/lhs2tex-1.1423397/lhs2tex-1.14/dist/setup/Main.o ) > Linking /tmp/lhs2tex-1.1423397/lhs2tex

Re: [Haskell-cafe] 'cabal install lhs2tex' fails for me on os x -- help please

2009-07-27 Thread Brandon S. Allbery KF8NH
On Jul 27, 2009, at 14:23 , Conal Elliott wrote: Note that the the first module to be compiled is Main. On my linux machine, Main is the *last* of several modules to be compiled. It's compiling the setup program which is presumably used by cabal to do the work a configure script normally do

Re: [Haskell-cafe] 'cabal install lhs2tex' fails for me on os x -- help please

2009-07-27 Thread Conal Elliott
> > Via cabal: > >--constraint='base<4' > > or replace Control.Exception with Control.OldException > > or add 'base < 4' to the depends in the .cabal file. > Thanks, Don. Trying your first suggestion, I get the same result for the first and third method, and a ghc panic on cat_evals for the

Re: [Haskell-cafe] 'cabal install lhs2tex' fails for me on os x -- help please

2009-07-27 Thread Conal Elliott
Yo ho! I just installed ghc-6.10.4 over my 6.10.3. Now 'cabal install lhs2tex' works. Phew! On Mon, Jul 27, 2009 at 11:44 AM, Conal Elliott wrote: > Via cabal: >> >>--constraint='base<4' >> >> or replace Control.Exception with Control.OldException >> >> or add 'base < 4' to the depends i

[Haskell-cafe] Cabal has trouble with projects that have both src and lib directories?

2008-08-14 Thread Nicholas Andrews
Hi! I'm trying to set up a project with both src and lib directories with cabal. My blah.cabal file looks like: Library Build-Depends: base Exposed-Modules:Foo hs-source-dirs: lib/foo Executable hai Build-depends: base Main-is:Bar.hs ghc-options:

Re: [Haskell-cafe] cabal and ghc disagree on the name of the module Main

2010-07-06 Thread Ivan Lazar Miljenovic
robin morisset writes: > Hello, > > I have the following directories set : > Project/ > Project/Language > Project/Language/Copilot/ > in Project there is the copilot.cabal file. > in Project/Language/Copilot there are a bunch of .hs files, including Main.hs > All the modules in these files are n

Re : [Haskell-cafe] cabal and ghc disagree on the name of the module Main

2010-07-06 Thread robin morisset
Hello, > (Ivan Lazar Miljenovi) > Why not just have a Main.hs file? > As for that error message, do you have a main function? Are you sure > you were using --make? thank you for taking the time for reply. A friend finally found the issue. The main function in the Main module was ok, the probl

Re: [Haskell-cafe] Cabal error installing Yesod and nehe-tuts on Haskell Platform 2012.2.0.0

2012-07-02 Thread Alexander Foremny
Hello Eric, most packages fail to install because zlib-conduit fails to install. The reason for this -- as can be seen in the last line -- is that the tar archive from which the source is extracted is corrupted. Simply run cabal install to try again. I suspect the source archives are re-downloaded

Re: [Haskell-cafe] Cabal error installing Yesod and nehe-tuts on Haskell Platform 2012.2.0.0

2012-07-02 Thread Eric Macaulay
I tried running cabal install again, but just got the same error. On Mon, Jul 2, 2012 at 10:34 PM, Alexander Foremny < alexanderfore...@gmail.com> wrote: > Hello Eric, > > most packages fail to install because zlib-conduit fails to install. > The reason for this -- as can be seen in the last line

Re: [Haskell-cafe] Cabal error installing Yesod and nehe-tuts on Haskell Platform 2012.2.0.0

2012-07-02 Thread Alexander Foremny
Apparently package archives are retained by cabal. Try deleting ~/.cabal/packages/hackage.haskell.org/zlib-conduit-0.4.0.2.tar.gz and try again. Regards Alexander Foremny 2012/7/3 Eric Macaulay : > I tried running cabal install again, but just got the same error. > > > On Mon, Jul 2, 2012 at 10:

[Haskell-cafe] Cabal and using a throw-away package database during distro package building

2010-11-05 Thread Magnus Therning
Recently I experimented a little with putting several Hackage packages into a single Linux distro package, but I ran into a slight problem with registering Haskell packages temporarily. These are the basic steps taken to configure, compile, and stage a Haskell package in ArchLinux: runhaskell

[Haskell-cafe] Cabal and using a throw-away package database during distro package building

2010-11-05 Thread Dimitry Golubovsky
Magnus, You might try Capri which operates Cabal-related stuff privately on a local-to-project package database not touching global or user databases. http://hackage.haskell.org/package/capri http://www.haskell.org/haskellwiki/Capri -- Dimitry Golubovsky Anywhere on the Web __

Re: [Haskell-cafe] [cabal] How to deal with build-depency that not under cabal's control?

2009-06-14 Thread Roman Cheplyaka
* Magicloud Magiclouds [2009-06-14 17:30:33+0800] > Hi, > I use gtk2hs in linux. Well, I have no idea how to install gtk2hs by > cabal, but my program needs it, and I want my program cabalized. So > how to do this? > Thanks. gtk2hs consists of several cabal packages, e.g. gtk, glib and so on.

Re: [Haskell-cafe] [cabal] How to deal with build-depency that not under cabal's control?

2009-06-14 Thread Roman Cheplyaka
* Magicloud Magiclouds [2009-06-14 18:48:26+0800] > My gtk2hs is install manually, `configure && make && make install`. So It's okay. > when I add gtk to build-dependency, it tells me > Setup.hs: At least the following dependencies are missing: > gtk -any Installation of gtk2hs registers these

Re: [Haskell-cafe] [cabal] How to deal with build-depency that not under cabal's control?

2009-06-15 Thread Roman Cheplyaka
I'm CC:ing Duncan, probably he can help. * Magicloud Magiclouds [2009-06-15 10:01:03+0800] > # ghc-pkg list gtk > /var/lib/ghc-6.10.3/./package.conf: > /home/shidaw/.ghc/i386-linux-6.10.3/package.conf: > gtk-0.10.1 > Well, still, I have the problem > > On Sun, Jun 14, 2009 at 6:52 PM, R

Re: [Haskell-cafe] [cabal] How to deal with build-depency that not under cabal's control?

2009-06-15 Thread Duncan Coutts
http://haskell.org/cabal/FAQ.html#runghc-setup-complains-of-missing-packages On Mon, 2009-06-15 at 10:30 +0300, Roman Cheplyaka wrote: > I'm CC:ing Duncan, probably he can help. > > * Magicloud Magiclouds [2009-06-15 > 10:01:03+0800] > > # ghc-pkg list gtk > > /var/lib/ghc-6.10.3/./package.con

[Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-20 Thread Thomas Hartman
problemw with the -I flag to ghc are causing cabal install to fail for hdbc-odbc (darcs head). man ghc still reports that -I is a valid flag after installing ghc 6.7 from darcs head a couple days ago. I think the problem might be the space after the -I flag (which is bad for both 6.6.1 and 6.7

Re: [Haskell-cafe] cabal under windows (was Re: Haskell-Cafe Digest, Vol 51, Issue 180)

2007-11-28 Thread Olivier Boudry
On 11/28/07, Tim Docker <[EMAIL PROTECTED]> wrote: > > > > Well I'd say none of the packages I've tried, build out of the box... > > I'm not a windows developer, but > > Is it actually reasonable to expect any cabal packages that depend on > external c libraries and headers to build out of the

Re: [Haskell-cafe] cabal under windows (was Re: Haskell-Cafe Digest, Vol 51, Issue 180)

2007-11-29 Thread Duncan Coutts
On Thu, 2007-11-29 at 13:51 +1100, Tim Docker wrote: > > Well I'd say none of the packages I've tried, build out of the box... > > I'm not a windows developer, but > > Is it actually reasonable to expect any cabal packages that depend on > external c libraries and headers to build out of the

Re: [Haskell-cafe] Cabal has trouble with projects that have both src and lib directories?

2008-08-14 Thread Ketil Malde
"Nicholas Andrews" <[EMAIL PROTECTED]> writes: > $ runhaskell blah.cabal configure blah.cabal isn't a Haskell file, you need a file Setup.hs that you can 'runhaskell'. Setup.hs need only contain the following three lines: #!/usr/bin/env runhaskell import Distribution.Simple main = defaultMain

Re: [Haskell-cafe] Cabal has trouble with projects that have both src and lib directories?

2008-08-15 Thread Nicholas Andrews
Sorry, I meant runhaskell Setup.hs . To clarify, I DO have a Setup.hs, and am getting the error in my original post when running it. On Fri, Aug 15, 2008 at 1:42 AM, Ketil Malde <[EMAIL PROTECTED]> wrote: > "Nicholas Andrews" <[EMAIL PROTECTED]> writes: > >> $ runhaskell blah.cabal configure > > b

Re: [Haskell-cafe] Cabal has trouble with projects that have both src and lib directories?

2008-08-17 Thread Duncan Coutts
On Thu, 2008-08-14 at 22:32 -0400, Nicholas Andrews wrote: > Hi! > > I'm trying to set up a project with both src and lib directories with > cabal. My blah.cabal file looks like: > > Library > Build-Depends: base > Exposed-Modules:Foo > hs-source-dirs: lib/foo > > Executable

Re: [Haskell-cafe] Cabal and using a throw-away package database during distro package building

2010-11-05 Thread Albert Y. C. Lai
On 10-11-05 06:43 AM, Magnus Therning wrote: runhaskell Setup register --gen-script runhaskell Setup unregister --gen-script [...] Except that the generated register/unregister scripts now also point to my-temp-db, and there seems to be no way to prevent this. I solved it for now b

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-22 Thread Duncan Coutts
On Mon, 2007-08-20 at 13:10 -0400, Thomas Hartman wrote: > > problemw with the -I flag to ghc are causing cabal install to fail for > hdbc-odbc (darcs head). > Any tips on debugging this cabal install would be appreciated. > $ runghc Setup.hs configure; runghc Setup.hs build Try with -v3 is:

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-28 Thread Thomas Hartman
homas Hartman/ext/[EMAIL PROTECTED] cc haskell-cafe@haskell.org Subject Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems On Mon, 2007-08-20 at 13:10 -0400, Thomas Hartman wrote: > > problemw with the -I flag to ghc are causing cabal install to fai

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-28 Thread Duncan Coutts
On Tue, 2007-08-28 at 18:19 -0400, Thomas Hartman wrote: > > Well, I built with -v3 as suggested, but the ouptut doesn't seem that > helpful to me. ghc compile commands, at any rate, do not appear to be > outputted Sorry, I meant to pass -v3 to cabal, not to ghc compiling/running Setup.hs > $ e

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-29 Thread Thomas Hartman
uncan Coutts <[EMAIL PROTECTED]> 08/28/2007 08:08 PM To Thomas Hartman/ext/[EMAIL PROTECTED] cc haskell-cafe@haskell.org Subject Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems On Tue, 2007-08-28 at 18:19 -0400, Thomas Hartman wrote: > >

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-30 Thread Duncan Coutts
On Wed, 2007-08-29 at 10:05 -0400, Thomas Hartman wrote: > > Ah ok, so I did > > echo ":main build -v3" | /usr/local/bin/ghci-6.7.20070816 Setup.hs > 1>build.out 2>build.err > > and this does indeed seem more informative. advice? Turns out this was a bug in FilePath that Cabal was hitting. Th

<    5   6   7   8   9   10