Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Gwern Branwen
On 2008.10.01 13:24:55 -0700, Martin DeMello [EMAIL PROTECTED] scribbled 0.9K characters: On Wed, Oct 1, 2008 at 1:06 PM, Gwern Branwen [EMAIL PROTECTED] wrote: Yi fails on Alex because Cabal doesn't track executables, nor executables needed for installation. You want 'cabal install alex

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Duncan Coutts
On Wed, 2008-10-01 at 20:53 +0200, Svein Ove Aas wrote: On Wed, Oct 1, 2008 at 7:54 PM, Duncan Coutts Because we actually consult the index of available packages more often than you think. Every time you cabal install in a local directory we make sure all the required packages are available

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread wman
On Wed, Oct 1, 2008 at 10:52 PM, Duncan Coutts [EMAIL PROTECTED]wrote: and you have network access, start updating it. That's hard. Detecting if we would be able to make a network connection without actually doing it is not something I know how to do (esp in a portable way). We would very

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Krzysztof Skrzętnicki
On Thu, Oct 2, 2008 at 00:00, Svein Ove Aas [EMAIL PROTECTED] wrote: That aside, why not start downloading in the background, while it's doing whatever you started cabal for? Assuming the network is working, you should have an updated package list by the time it's done; granted, it won't be

Re: [Haskell-cafe] cabal upgrade

2008-09-30 Thread Cetin Sert
A reminder: When I wanted to upgrade to yi 0.4.6.2, I needed to download the new package list cabal update #download list of new packages cabal upgrade #make any upgrades Regards, CS 2008/9/26 Duncan Coutts [EMAIL PROTECTED] On Fri, 2008-09-26 at 10:49 +0200, Achim

Re: [Haskell-cafe] cabal upgrade

2008-09-26 Thread Brandon S. Allbery KF8NH
On 2008 Sep 26, at 4:49, Achim Schneider wrote: Well, I might be spoiled by portage but shouldn't there be a thing like cabal upgrade pureMD5 and cabal upgrade --all snuffy:502 Z$ cabal help upgrade Usage: cabal upgrade [FLAGS] or: cabal upgrade [PACKAGES] -- brandon s. allbery

Re: [Haskell-cafe] cabal upgrade

2008-09-26 Thread Duncan Coutts
On Fri, 2008-09-26 at 10:49 +0200, Achim Schneider wrote: % cabal update Downloading package list from server 'http://hackage.haskell.org/packages/archive' % cabal install pureMD5 All requested packages already installed. Nothing to do. % cabal install pureMD5-0.2.4 Downloading

Re: [Haskell-cafe] cabal update : getHostByName

2008-09-01 Thread Marc Weber
On Mon, Sep 01, 2008 at 12:01:49PM +0200, minh thu wrote: Hi, I've followed the instruction from the upcoming book Real World Haskell to install cabal. Now, when I enter cabal update, it answers this: Downloading package list from server 'http://hackage.haskell.org/packages/archive'

Re: [Haskell-cafe] cabal update : getHostByName

2008-09-01 Thread minh thu
2008/9/1 Marc Weber [EMAIL PROTECTED]: On Mon, Sep 01, 2008 at 12:01:49PM +0200, minh thu wrote: Hi, I've followed the instruction from the upcoming book Real World Haskell to install cabal. Now, when I enter cabal update, it answers this: Downloading package list from server

RE: [Haskell-cafe] cabal build command and package versions

2008-08-21 Thread Simon Peyton-Jones
| On Wed, 2008-08-20 at 13:53 -0500, Nicolas Frisby wrote: | I have a question about cabal's behavior for the build command. When | using the build command on a cabalized project, any version changes | for installed packages go unnoticed - the necessary modules in the | project are not

RE: [Haskell-cafe] cabal build command and package versions

2008-08-21 Thread Duncan Coutts
On Thu, 2008-08-21 at 08:23 +0100, Simon Peyton-Jones wrote: | On Wed, 2008-08-20 at 13:53 -0500, Nicolas Frisby wrote: | I have a question about cabal's behavior for the build command. When | using the build command on a cabalized project, any version changes | for installed packages go

Re: [Haskell-cafe] cabal build command and package versions

2008-08-20 Thread Duncan Coutts
On Wed, 2008-08-20 at 13:53 -0500, Nicolas Frisby wrote: I have a question about cabal's behavior for the build command. When using the build command on a cabalized project, any version changes for installed packages go unnoticed - the necessary modules in the project are not re-compiled.

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 hai

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 configure|build. 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

Re: [Haskell-cafe] cabal on ubuntu

2008-08-14 Thread John Van Enk
UncommonProgrammingLanguages :( On Thu, Aug 14, 2008 at 4:51 PM, Martin DeMello [EMAIL PROTECTED]wrote: I'm running Ubuntu 8 (Hardy Heron), and while trying to install cabal ran into this bug: https://bugs.launchpad.net/ubuntu/+source/haskell-cabal/+bug/231099 I finally had to install

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 -k

Re: [Haskell-cafe] Cabal files on Windows

2008-08-01 Thread Duncan Coutts
On Sun, 2008-07-27 at 21:01 -0500, John Lato wrote: Use Haskell String syntax for paths that contain spaces: include-dirs: C:\\Program Files\\program\\include Hi Duncan, Thanks, this worked (mostly). Although I had to change the line to include-dirs: \C:\\Program

Re: [Haskell-cafe] Cabal files on Windows

2008-08-01 Thread John Lato
On Fri, Aug 1, 2008 at 8:39 AM, Duncan Coutts [EMAIL PROTECTED] wrote: On Sun, 2008-07-27 at 21:01 -0500, John Lato wrote: Use Haskell String syntax for paths that contain spaces: include-dirs: C:\\Program Files\\program\\include Hi Duncan, Thanks, this worked (mostly). Although I

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Austin Seipp
Excerpts from Yann Golanski's message of Wed Jul 30 02:34:05 -0500 2008: I cannot seem to be able to install yi via cabal install. The error I get is as follows. I suspect alex is not installed in the correct place. ... Hi, cabal-install will put installed binaries in $HOME/.cabal/bin by

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Yann Golanski
Quoth Austin Seipp on Wed, Jul 30, 2008 at 03:45:49 -0500 Excerpts from Yann Golanski's message of Wed Jul 30 02:34:05 -0500 2008: I cannot seem to be able to install yi via cabal install. The error I get is as follows. I suspect alex is not installed in the correct place. ... Hi,

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Nicolas Pouillard
Excerpts from Yann Golanski's message of Wed Jul 30 10:59:35 +0200 2008: Quoth Austin Seipp on Wed, Jul 30, 2008 at 03:45:49 -0500 Excerpts from Yann Golanski's message of Wed Jul 30 02:34:05 -0500 2008: I cannot seem to be able to install yi via cabal install. The error I get is as

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Duncan Coutts
On Wed, 2008-07-30 at 03:45 -0500, Austin Seipp wrote: Excerpts from Yann Golanski's message of Wed Jul 30 02:34:05 -0500 2008: I cannot seem to be able to install yi via cabal install. The error I get is as follows. I suspect alex is not installed in the correct place. ... Hi,

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Yann Golanski
Quoth Nicolas Pouillard on Wed, Jul 30, 2008 at 11:06:43 +0200 Excerpts from Yann Golanski's message of Wed Jul 30 10:59:35 +0200 2008: ; sudo cabal install yi Resolving dependencies... 'yi-0.4.3' is cached. Configuring yi-0.4.3... Preprocessing library yi-0.4.3... Preprocessing

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread John Dorsey
[problems with cabal install yi] Curious, I tried this out, on a Debian etch box with GHC 6.8.3. cabal update ; cabal install yi --global complained about needing alex =2.0.something and 3. Then cabal install alex happily installed alex version 2.2. Finally, cabal install yi --global worked

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Austin Seipp
Excerpts from John Dorsey's message of Wed Jul 30 13:58:26 -0500 2008: Is something amiss with cabal-install? Shouldn't it have automatically installed alex? Or does it only do that with libraries, by design? AFAICT, dependencies are only downloaded and installed if they are listed in a

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Duncan Coutts
On Wed, 2008-07-30 at 14:58 -0400, John Dorsey wrote: [problems with cabal install yi] Curious, I tried this out, on a Debian etch box with GHC 6.8.3. cabal update ; cabal install yi --global complained about needing alex =2.0.something and 3. Then cabal install alex happily installed

Re: [Haskell-cafe] Cabal and Strings and CPP

2008-07-29 Thread Malcolm Wallace
Philip Weaver [EMAIL PROTECTED] wrote: I'm trying to use CPP-defined strings in a Haskell module, like this: main :: IO () main = putStrLn FOO This of course will not work: ghc -DFOO=hello world --make Main.hs -o test Have you tried using ANSI cpp's stringification operator?

Re: [Haskell-cafe] Cabal and Strings and CPP

2008-07-29 Thread Philip Weaver
On Tue, Jul 29, 2008 at 3:14 AM, Malcolm Wallace [EMAIL PROTECTED] wrote: Philip Weaver [EMAIL PROTECTED] wrote: I'm trying to use CPP-defined strings in a Haskell module, like this: main :: IO () main = putStrLn FOO This of course will not work: ghc -DFOO=hello world --make

Re: [Haskell-cafe] Cabal files on Windows

2008-07-28 Thread Duncan Coutts
On Sun, 2008-07-27 at 21:01 -0500, John Lato wrote: On Sun, Jul 27, 2008 at 3:25 PM, Duncan Coutts Use Haskell String syntax for paths that contain spaces: include-dirs: C:\\Program Files\\program\\include Hi Duncan, Thanks, this worked (mostly). Although I had to change the line

Re: [Haskell-cafe] Cabal and Strings and CPP

2008-07-28 Thread Duncan Coutts
On Mon, 2008-07-28 at 15:02 -0700, Philip Weaver wrote: However, passing the same CPP definition via cabal does not work. runhaskell Setup.hs build --ghc-options=-DFOO=\hello world\ runhaskell Setup.hs build --ghc-options=-DFOO='hello world' With either of these commands, I get

Re: [Haskell-cafe] Cabal files on Windows

2008-07-27 Thread Henk-Jan van Tuyl
On Sun, 27 Jul 2008 03:23:09 +0200, John Lato [EMAIL PROTECTED] wrote: Hello, Can anyone point me to a method for including path names with spaces in a cabal file? I would like to add a line similar to the following: include-dirs: C:\Program Files\program\include and of course a

Re: [Haskell-cafe] Cabal files on Windows

2008-07-27 Thread Duncan Coutts
On Sat, 2008-07-26 at 20:23 -0500, John Lato wrote: Hello, Can anyone point me to a method for including path names with spaces in a cabal file? I would like to add a line similar to the following: include-dirs: C:\Program Files\program\include and of course a corresponding library as

Re: [Haskell-cafe] Cabal files on Windows

2008-07-27 Thread John Lato
On Sun, Jul 27, 2008 at 3:25 PM, Duncan Coutts [EMAIL PROTECTED] wrote: On Sat, 2008-07-26 at 20:23 -0500, John Lato wrote: Hello, Can anyone point me to a method for including path names with spaces in a cabal file? I would like to add a line similar to the following: include-dirs:

Re: [Haskell-cafe] cabal-install failure

2008-06-19 Thread Gwern Branwen
On 2008.06.14 08:56:34 +0100, Duncan Coutts [EMAIL PROTECTED] scribbled 1.3K characters: On Fri, 2008-06-13 at 22:10 -0400, Gwern Branwen wrote: I think this may be Cabal's fault anyway. The yi.cabal includes the line: build-tools: alex = 2.0.1 3 in the 'executable yi'

Re: [Haskell-cafe] cabal-install failure

2008-06-19 Thread Duncan Coutts
On Mon, 2008-06-16 at 13:25 +0100, Claus Reinke wrote: The main point of the Program abstraction is about configuring and running programs. As it happens some programs are provided by some haskell packages (but not all, eg ld, ar, etc). option to get version info and code to extract it

Re: [Haskell-cafe] cabal-install failure

2008-06-19 Thread Claus Reinke
In the specific case of parsing --version strings, I'm not sure regexes are any easier. Using words and then selecting the Nth word seems to do pretty well. for comparison, see the examples below:-) There's no reason this can't be massaged further, but it already allows for IO if necessary (I

Re: [Haskell-cafe] cabal-install failure

2008-06-16 Thread Claus Reinke
The main point of the Program abstraction is about configuring and running programs. As it happens some programs are provided by some haskell packages (but not all, eg ld, ar, etc). option to get version info and code to extract it (with one apparently very special case being hsc2hs). And

Re: [Haskell-cafe] cabal-install failure

2008-06-15 Thread Duncan Coutts
On Sat, 2008-06-14 at 11:03 +0100, Claus Reinke wrote: http://hackage.haskell.org/trac/hackage/ticket/227 One problem is that not all build-tools correspond to haskell packages. Some do some don't. We have a hard coded list of them at the moment (which can be

Re: [Haskell-cafe] cabal-install failure

2008-06-14 Thread Duncan Coutts
On Fri, 2008-06-13 at 22:10 -0400, Gwern Branwen wrote: I think this may be Cabal's fault anyway. The yi.cabal includes the line: build-tools: alex = 2.0.1 3 in the 'executable yi' section, right after the build-depends, so Yi is being straightforward and upfront about its

Re: [Haskell-cafe] cabal-install failure

2008-06-14 Thread Claus Reinke
http://hackage.haskell.org/trac/hackage/ticket/227 One problem is that not all build-tools correspond to haskell packages. Some do some don't. We have a hard coded list of them at the moment (which can be extended in Setup.hs files) so we could extend that with what

RE: [Haskell-cafe] Cabal-Install Fails To Compile

2008-06-13 Thread Aditya Siram
Thanks so much for your help. Actually Don got it fixed within twenty minutes but I mistakenly didn't cc the group. But it works perfectly now. -Deech Subject: Re: [Haskell-cafe] Cabal-Install Fails To Compile From: [EMAIL PROTECTED] To: [EMAIL

Re: [Haskell-cafe] cabal-install failure

2008-06-13 Thread Duncan Coutts
On Fri, 2008-06-13 at 11:19 -0400, Darrin Thompson wrote: Cabal-install is looking good. It now, for the record, has only two deps outside of Cabal-1.4. I installed cabal-install-0.5 on ubuntu with the haskell.org linux binary for ghc 6.8.2. I then tried cabal-install yi Got this

Re: [Haskell-cafe] cabal-install failure

2008-06-13 Thread Gwern Branwen
On 2008.06.13 22:22:06 +0100, Duncan Coutts [EMAIL PROTECTED] scribbled 2.1K characters: On Fri, 2008-06-13 at 11:19 -0400, Darrin Thompson wrote: Cabal-install is looking good. It now, for the record, has only two deps outside of Cabal-1.4. I installed cabal-install-0.5 on ubuntu with

Re: [Haskell-cafe] Cabal-Install Fails To Compile

2008-06-12 Thread Don Stewart
Could you try the cabal-1.4 package just put up on hackage.haskell.org? aditya_siram: Hi all, I downloaded cabal-install and the cabal-1.4 branch from darcs. The following error occurs when building: runhaskell Setup.hs build Building cabal-install-0.4.9... [19 of 27] Compiling

Re: [Haskell-cafe] Cabal-Install Fails To Compile

2008-06-12 Thread Duncan Coutts
On Thu, 2008-06-12 at 16:07 -0500, Aditya Siram wrote: Hi all, I downloaded cabal-install and the cabal-1.4 branch from darcs. The following error occurs when building: runhaskell Setup.hs build Building cabal-install-0.4.9... [19 of 27] Compiling Hackage.SrcDist ( Hackage/SrcDist.hs,

Re: [Haskell-cafe] cabal install fail for happs-hsp-template

2008-06-02 Thread Duncan Coutts
On Mon, 2008-06-02 at 09:42 -0700, Thomas Hartman wrote: Can cabal install be made to work for this package? * [EMAIL PROTECTED]:~sudo cabal install happs-hsp-template [sudo] password for thartman: cabal: internal error: could not construct a valid install plan. The proposed (invalid)

Re: [Haskell-cafe] cabal Setup.hs configure - cabal doesnt produce a setup-config

2008-05-19 Thread geoffrey
I did a complete uninstall and reinstall of GHC and that seems to have fixed it. So i probably broke things (i guess). On Sun, 2008-05-18 at 17:11 -0400, Gwern Branwen wrote: On 2008.05.19 06:53:22 +1000, geoffrey [EMAIL PROTECTED] scribbled 1.8K characters: Hi, I am trying to

Re: [Haskell-cafe] cabal Setup.hs configure - cabal doesnt produce a setup-config

2008-05-18 Thread Gwern Branwen
On 2008.05.19 06:53:22 +1000, geoffrey [EMAIL PROTECTED] scribbled 1.8K characters: Hi, I am trying to install nanocurses, but cabal isn't creating the setup-config file in dist/ I have run (and re-run) runghc Setup.hs configure The first time it complained about mpg123

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-06 Thread Magnus Therning
On 3/6/08, Magnus Therning [EMAIL PROTECTED] wrote: On 3/4/08, Thomas Schilling [EMAIL PROTECTED] wrote: On 4 mar 2008, at 11.37, Magnus Therning wrote: On 3/4/08, Thomas Schilling [EMAIL PROTECTED] wrote: executable foo main-is: bla if !os(windows): buildable:

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-06 Thread Magnus Therning
On 3/6/08, Magnus Therning [EMAIL PROTECTED] wrote: On 3/6/08, Magnus Therning [EMAIL PROTECTED] wrote: On 3/4/08, Thomas Schilling [EMAIL PROTECTED] wrote: On 4 mar 2008, at 11.37, Magnus Therning wrote: On 3/4/08, Thomas Schilling [EMAIL PROTECTED] wrote: executable foo

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-06 Thread Duncan Coutts
On Thu, 2008-03-06 at 16:29 +, Magnus Therning wrote: On 3/6/08, Magnus Therning [EMAIL PROTECTED] wrote: On 3/6/08, Magnus Therning [EMAIL PROTECTED] wrote: On 3/4/08, Thomas Schilling [EMAIL PROTECTED] wrote: Oh, right.

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-04 Thread Thomas Schilling
executable foo main-is: bla if !os(windows): buildable: false Unfortunately this gives rather unhelpful error messages when used with flags, but it works well enough for now. / Thomas On 4 mar 2008, at 09.10, Magnus Therning wrote: I'm putting together a package consisting of 2

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-04 Thread Henning Thielemann
On Tue, 4 Mar 2008, Magnus Therning wrote: I'm putting together a package consisting of 2 executables. Only one of them is pure Haskell and thus buildable on all platforms, the other relies on Windows API calls and can only be built on that platform. I found the “if os(...)” conditional

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-04 Thread Magnus Therning
On 3/4/08, Henning Thielemann [EMAIL PROTECTED] wrote: On Tue, 4 Mar 2008, Magnus Therning wrote: I'm putting together a package consisting of 2 executables. Only one of them is pure Haskell and thus buildable on all platforms, the other relies on Windows API calls and can only be built

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-04 Thread Thomas Schilling
On 4 mar 2008, at 10.58, Magnus Therning wrote: Good point. Does CABAL 1.2 have support for multiple .cabal files in the same directory? If not then I'm not too happy with this solution. No. Eventually, Cabal will support something like this, but it's unlikely that Cabal 1.4 will.

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-04 Thread Magnus Therning
On 3/4/08, Thomas Schilling [EMAIL PROTECTED] wrote: executable foo main-is: bla if !os(windows): buildable: false Unfortunately this gives rather unhelpful error messages when used with flags, but it works well enough for now. / Thomas Hmmm, I don't seem to get this to work

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-04 Thread Thomas Schilling
On 4 mar 2008, at 11.37, Magnus Therning wrote: On 3/4/08, Thomas Schilling [EMAIL PROTECTED] wrote: executable foo main-is: bla if !os(windows): buildable: false Unfortunately this gives rather unhelpful error messages when used with flags, but it works well enough for now. /

Re: [Haskell-cafe] .cabal problem

2008-03-01 Thread Adam Langley
2008/3/1 Galchin Vasili [EMAIL PROTECTED]: I am trying to install a package on my Linux Ubuntu machine. It chokes build-depends: base, directory because directory dependency is unresolvable. Do I have to specify extra-libs so that correct library space is searched? Actually I tried this

Re: [Haskell-cafe] .cabal problem

2008-03-01 Thread Galchin Vasili
exactly .. I have version 6.6.1 ... question is how do I get the Unbuntu package for version 6.8? V. On Sat, Mar 1, 2008 at 8:02 PM, Adam Langley [EMAIL PROTECTED] wrote: 2008/3/1 Galchin Vasili [EMAIL PROTECTED]: I am trying to install a package on my Linux Ubuntu machine. It chokes

Re: [Haskell-cafe] cabal errors

2008-02-29 Thread Duncan Coutts
On Thu, 2008-02-28 at 07:10 -0500, Kristofer Buffington wrote: Hi I installed ghc 6.8 from source and I've been installing packages from hackage. I'm not sure when the problem started, but I've been getting this error trying to install any cabal package.. accept apparently, Cabal itself.

Re: [Haskell-cafe] cabal errors

2008-02-29 Thread Ross Paterson
On Thu, Feb 28, 2008 at 07:10:03AM -0500, Kristofer Buffington wrote: I installed ghc 6.8 from source and I've been installing packages from hackage. I'm not sure when the problem started, but I've been getting this error trying to install any cabal package.. accept apparently, Cabal itself.

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-03 Thread Magnus Therning
Duncan Coutts wrote: On Sat, 2008-02-02 at 22:33 +, Magnus Therning wrote: Duncan Coutts wrote: [..] Just so I'm sure I understand... Sure thing. Or are you just trying to link some C code statically into a haskell program, but it just so happens that this C code relies on being built

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Duncan Coutts
On Fri, 2008-02-01 at 11:42 +, Magnus Therning wrote: Is it possible to get Cabal to use 'cl' (Microsoft's C/C++ compiler shipped with Visual Studio Express)? The problem is to get GHC to use 'cl'. That's a longer term project that GHC HQ are interested in. There's something about it on

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Felix Martini
Magnus Therning wrote: Is it possible to get Cabal to use 'cl' (Microsoft's C/C++ compiler shipped with Visual Studio Express)? Duncan Coutts wrote: The problem is to get GHC to use 'cl'. That's a longer term project that GHC HQ are interested in. There's something about it on the GHC dev

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Duncan Coutts
On Sat, 2008-02-02 at 18:15 +0100, Felix Martini wrote: Magnus Therning wrote: Is it possible to get Cabal to use 'cl' (Microsoft's C/C++ compiler shipped with Visual Studio Express)? Duncan Coutts wrote: The problem is to get GHC to use 'cl'. That's a longer term project that GHC HQ

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Magnus Therning
Duncan Coutts wrote: [..] It would be reasonable to use the system C compiler rather than ghc, however we will have to do more work to find what extra include dirs get used and have Cabal pass those. Currently we pass the -package flags to ghc which ghc uses to look up what include dirs

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Duncan Coutts
On Sat, 2008-02-02 at 18:50 +, Magnus Therning wrote: Duncan Coutts wrote: [..] It would be reasonable to use the system C compiler rather than ghc, however we will have to do more work to find what extra include dirs get used and have Cabal pass those. Currently we pass the

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Magnus Therning
Duncan Coutts wrote: [..] Just so I'm sure I understand... Sure thing. Or are you just trying to link some C code statically into a haskell program, but it just so happens that this C code relies on being built with MS's C compiler rather than gcc. Yes, this is exactly it. I mean, I could

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Duncan Coutts
On Sat, 2008-02-02 at 22:33 +, Magnus Therning wrote: Duncan Coutts wrote: [..] Just so I'm sure I understand... Sure thing. Or are you just trying to link some C code statically into a haskell program, but it just so happens that this C code relies on being built with MS's C

Re: [Haskell-cafe] cabal and hpc?

2008-01-14 Thread Don Stewart
garious: Has the Haskell Program Coverage tool been integrated into Cabal? That is, is there anything like runhaskell Setup.hs coverage to generate a coverage report? Not yet, but definitely on the todo list (its a variant of the test target, that would add -fhpc to each compile, so

Re: [Haskell-cafe] Cabal and DB packages

2008-01-08 Thread inormann
This is how I successfully installed haskelldb-0.10 package with ghc-6.8.2 today: Assuming you have downloaded and unpacked haskelldb-0.10 from http://hackage.haskell.org/packages/archive/haskelldb/0.10/haskelldb-0.10.tar.gz you need to append in haskelldb-0.10/haskelldb.cabal pretty,

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 box on

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 can

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's usually

Re: [Haskell-cafe] cabal-install

2007-11-28 Thread Duncan Coutts
On Tue, 2007-11-27 at 18:02 -0800, Don Stewart wrote: ben.franksen: Just thought I install the latest version (0.4.0) from hackage and test it. Build and install went fine, but then it gets strange: cabal: dist/Conftest.c: openFile: does not exist (No such file or directory) This

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 box on

Re: [Haskell-cafe] cabal-install

2007-11-27 Thread Don Stewart
ben.franksen: Just thought I install the latest version (0.4.0) from hackage and test it. Build and install went fine, but then it gets strange: [EMAIL PROTECTED]: .../haskell/cabal-install-0.4.0 sudo runhaskell Setup.lhs install Installing: /usr/local/bin [EMAIL PROTECTED]:

Re: [Haskell-cafe] Cabal and DB packages

2007-11-25 Thread Thomas Schilling
On Sun, 2007-11-25 at 18:49 +0100, manu wrote: Hello, I'm trying to do something that should be fairly simple, installing some DB package so I can use MySQL or SQLite. However I've had troubles building HSQL, HaskellDB and Takusen before giving up (I am using ghc 6.8.1 and

Re: [Haskell-cafe] Cabal and DB packages

2007-11-25 Thread Alistair Bayley
On 25/11/2007, Thomas Schilling [EMAIL PROTECTED] wrote: On Sun, 2007-11-25 at 18:49 +0100, manu wrote: Hello, I'm trying to do something that should be fairly simple, installing some DB package so I can use MySQL or SQLite. with Takusen : $ runhaskell Setup.hs configure

Re: [Haskell-cafe] cabal Main-Is restriction

2007-11-15 Thread Duncan Coutts
On Thu, 2007-11-15 at 11:14 -0600, Nicolas Frisby wrote: It seems the meaning of the -main-is switch for GHC and the Main-Is build option for Cabal executables differ. With GHC, I can point to any function main in any module, but in Cabal I must point to a filename with precisely the module

Re: [Haskell-cafe] cabal problem?

2007-11-14 Thread Don Stewart
jens.blanck: I have problems building X11. I just installed ghc 6.8 but I got the same behaviour when asking it to use the old compiler. Jens runghc Setup.hs configure Configuring X11-1.3.0.2007... checking for gcc... gcc checking for C compiler default output

Re: [Haskell-cafe] cabal problem?

2007-11-14 Thread Duncan Coutts
On Wed, 2007-11-14 at 16:16 +, Jens Blanck wrote: sudo runghc Setup.hs install root's password: Setup.hs : Warning: Unknown field 'build-type' Setup.hs: error reading ./.setup-config; run setup configure command? I suspect your path is different for your root user, so it's picking up

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 1build.out 2build.err and this does indeed seem more informative. advice? Turns out this was a bug in FilePath that Cabal was hitting. The bug was

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

2007-08-29 Thread Thomas Hartman
@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: Well, I built with -v3 as suggested, but the ouptut doesn't seem that helpful to me. ghc compile commands, at any rate, do

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

2007-08-28 Thread Thomas Hartman
-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 fail for hdbc-odbc (darcs head). Any tips on debugging

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 $ echo

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 can't install in home directory

2007-05-29 Thread Isaac Dupree
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Grzegorz wrote: Hi, It seems that if GHC is installed non-user-writable directory, and you want to install a package in the home directory (using runghc Setup configure --prefix=$HOME) this isn't possible: when running runghc Setup install you

Re: [Haskell-cafe] Cabal, lib and exe in one

2007-05-02 Thread Simon Marlow
Duncan Coutts wrote: On Tue, 2007-05-01 at 22:29 +0100, Magnus Therning wrote: So if foo.hs is in test-src and Foo/Bar.hs is in src then I think you just need: hs-source-dirs: test-src, src No, that's not enough, I also have to add the following lines to make the executable compile and link:

Re: [Haskell-cafe] Cabal, lib and exe in one

2007-05-02 Thread Magnus Therning
On Wed, May 02, 2007 at 10:08:41 +0100, Simon Marlow wrote: [..] IMO we shouldn't allow both a library and an exe in the same package. I think I argued against this originally, and my understanding is that doing this is deprecated, although perhaps not visibly enough. Whenever the question of what

Re: [Haskell-cafe] Cabal, lib and exe in one

2007-05-02 Thread R Hayes
I think Simon is right, and not just from a Haskell point of view. Allowing a package to contain a both a library and an executable makes the behavior of the package system less obvious. That's not to say that it can't behave correctly, but that it can't behave both correctly and in a

Re: [Haskell-cafe] Cabal, lib and exe in one

2007-05-01 Thread Duncan Coutts
On Tue, 2007-05-01 at 09:34 +0100, Magnus Therning wrote: I'm trying to create a single cabal file containing specs for both a library and an executable using that library. I'm not having much luck though :( This is what I have so far: name: foo version: 0.1 exposed-modules:

Re: [Haskell-cafe] Cabal, lib and exe in one

2007-05-01 Thread Magnus Therning
On Tue, May 01, 2007 at 12:02:18 +0100, Duncan Coutts wrote: On Tue, 2007-05-01 at 09:34 +0100, Magnus Therning wrote: I'm trying to create a single cabal file containing specs for both a library and an executable using that library. I'm not having much luck though :( This is what I have so

Re: [Haskell-cafe] Cabal, lib and exe in one

2007-05-01 Thread Duncan Coutts
On Tue, 2007-05-01 at 22:29 +0100, Magnus Therning wrote: So if foo.hs is in test-src and Foo/Bar.hs is in src then I think you just need: hs-source-dirs: test-src, src No, that's not enough, I also have to add the following lines to make the executable compile and link: extensions:

Re: [Haskell-cafe] Cabal licence files

2006-12-22 Thread John Meacham
On Fri, Dec 15, 2006 at 03:14:32AM +, Dougal Stanton wrote: The cabal setup recognises a small set of licences which I don't think are well explained. I'm trying to put together a canonical list for setting up new projects. This has bugged me about cabal, why does it have a built in

Re: [Haskell-cafe] Cabal licence files

2006-12-15 Thread Jason Dagit
On 12/14/06, Dougal Stanton [EMAIL PROTECTED] wrote: The cabal setup recognises a small set of licences which I don't think are well explained. I'm trying to put together a canonical list for setting up new projects. GPL: http://www.gnu.org/licenses/gpl.txt LGPL:

Re: [Haskell-cafe] Cabal licence files

2006-12-15 Thread Dougal Stanton
Quoth Jason Dagit, nevermore: Something that has always confused me about .cabal files is that BSD has two versions but GPL only has one version and I don't know if I'd be selecting GPL version 2 or 3. Could it be changed to support different versions of the GPL like it does with BSD? Yes,

Re: [Haskell-cafe] Cabal question, adding data files

2006-08-23 Thread Ross Paterson
On Wed, Aug 23, 2006 at 10:42:54PM +0100, Neil Mitchell wrote: I have a cabal executable, which requires additional data files. How do I do this in Cabal? I have seen extra-source-files, but they are not added at install time to the destination directory, which doesn't help me. The field you

Re: [Haskell-cafe] Cabal question, adding data files

2006-08-23 Thread Neil Mitchell
Hi The field you want is data-files, documented in section 2.1.1 of the Cabal User's Guide. That looks perfect. Is there any reason that Alex doesn't use this? I was trying to learn by example. Thanks Neil ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Cabal question, adding data files

2006-08-23 Thread Conrad Parker
On Wed, Aug 23, 2006 at 11:36:00PM +0100, Neil Mitchell wrote: Hi The field you want is data-files, documented in section 2.1.1 of the Cabal User's Guide. That looks perfect. Is there any reason that Alex doesn't use this? I was trying to learn by example. Perhaps because Alex predates

<    2   3   4   5   6   7   8   >