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

[Haskell-cafe] cabal-install failure

2008-06-13 Thread Darrin Thompson
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 output: ... many successful installs ... Registering vty-3.0.1...

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