
Hello, I'm having some problems with cabal. I don't know if here is the better place to ask, in http://www.haskell.org/cabal/ sais to ask here. There are two things. One of them is simpler, and it's in haskell-cafe. Shouldn't include-dirs: . be default? The other is about setup clean. It's leaving some things behind. The dist directory is not removed, and is kept empty. Other files that are not removed are the c2hs generated files .h and .chi. Is this a bug? marcot@quindinho:~/codigo/haskell/haskellgpc/haskellgpc$ find | grep -v _darcs . ./AUTHORS ./Algebra ./Algebra/Geometric ./Algebra/Geometric/Gpc.chs ./COPYING ./README ./Setup.hs ./ToDo ./haskellgpc.cabal ./send.sh marcot@quindinho:~/codigo/haskell/haskellgpc/haskellgpc$ ./Setup.hs configure Configuring HaskellGPC-0.0.1... configure: /usr/bin/ghc-pkg configure: Dependency base-any: using base-2.0 configure: Using install prefix: /usr/local configure: Binaries installed in: /usr/local/bin configure: Libraries installed in: /usr/local/lib/HaskellGPC-0.0.1/ghc-6.6 configure: Private binaries installed in: /usr/local/libexec configure: Data files installed in: /usr/local/share/HaskellGPC-0.0.1 configure: Using compiler: /usr/bin/ghc configure: Compiler flavor: GHC configure: Compiler version: 6.6 configure: Using package tool: /usr/bin/ghc-pkg configure: Using ar found on system at: /usr/bin/ar configure: Using haddock found on system at: /usr/bin/haddock configure: No pfesetup found configure: Using ranlib found on system at: /usr/bin/ranlib configure: Using runghc found on system at: /usr/bin/runghc configure: No runhugs found configure: No happy found configure: No alex found configure: Using hsc2hs: /usr/bin/hsc2hs configure: Using c2hs: /usr/bin/c2hs configure: No cpphs found configure: No greencard found marcot@quindinho:~/codigo/haskell/haskellgpc/haskellgpc$ ./Setup.hs build Preprocessing library HaskellGPC-0.0.1... Building HaskellGPC-0.0.1... [1 of 1] Compiling Algebra.Geometric.Gpc ( Algebra/Geometric/Gpc.hs, dist/build/Algebra/Geometric/Gpc.o ) /usr/bin/ar: creating dist/build/libHSHaskellGPC-0.0.1.a marcot@quindinho:~/codigo/haskell/haskellgpc/haskellgpc$ ./Setup.hs clean cleaning... marcot@quindinho:~/codigo/haskell/haskellgpc/haskellgpc$ find | grep -v _darcs . ./AUTHORS ./Algebra ./Algebra/Geometric ./Algebra/Geometric/Gpc.chi ./Algebra/Geometric/Gpc.chs ./Algebra/Geometric/Gpc.h ./COPYING ./README ./Setup.hs ./ToDo ./dist ./haskellgpc.cabal ./send.sh marcot@quindinho:~/codigo/haskell/haskellgpc/haskellgpc$ Thanks. -- malebria Marco Túlio Gontijo e Silva Correio (MSN): malebria@riseup.net Jabber (GTalk): malebria@jabber.org Ekiga: malebria@ekiga.net IRC: malebria@irc.freenode.net malebria@irc.oftc.org Skype: marcotmarcot Telefone: 33346720 Celular: 98116720 Endereço: Rua Paula Cândido, 257/201 Gutierrez 30430-260 Belo Horizonte/MG Brasil

On Mon, 2007-01-29 at 13:49 -0200, Marco Túlio Gontijo e Silva wrote:
Hello,
I'm having some problems with cabal. I don't know if here is the better place to ask, in http://www.haskell.org/cabal/ sais to ask here.
There are two things. One of them is simpler, and it's in haskell-cafe. Shouldn't include-dirs: . be default?
No, because the include dirs get used by all the dependent packages so that'd effectively mean compiling everything with -I . all the time which isn't what we want.
The other is about setup clean. It's leaving some things behind. The dist directory is not removed, and is kept empty. Other files that are not removed are the c2hs generated files .h and .chi. Is this a bug?
Yes it's a bug. Cabal's c2hs support is very immature. Patches welcome. Duncan
participants (2)
-
Duncan Coutts
-
Marco Túlio Gontijo e Silva