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

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-19 Thread Stephen Tetley
Hi Tom This will the job for a UserHooks - probably preBuild? - see Distribution.Simple.UserHooks. postConf - Hook to run after configure command preBuild - Hook to run before build command. Second arg indicates verbosity level. buildHook - Over-ride this hook to get different behaviour during bu

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-20 Thread Tom Hawkins
On Mon, Jul 19, 2010 at 11:54 AM, Stephen Tetley wrote: > Hi Tom > > This will the job for a UserHooks - probably preBuild? - see > Distribution.Simple.UserHooks. > > postConf - Hook to run after configure command > preBuild - Hook to run before build command. Second arg indicates > verbosity leve

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-20 Thread Rogan Creswick
On Tue, Jul 20, 2010 at 8:50 PM, Tom Hawkins wrote: > > Thanks.  I tried this, but it appears cabal-install ignores the > Setup.hs file.  The only way I could get it to take is if I run > 'runhaskell Setup.hs configure' directly.  I always assumed > cabal-install runs Setup.hs under the hood, but

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-21 Thread Magnus Therning
On Wed, Jul 21, 2010 at 04:53, Rogan Creswick wrote: > On Tue, Jul 20, 2010 at 8:50 PM, Tom Hawkins wrote: >> >> Thanks.  I tried this, but it appears cabal-install ignores the >> Setup.hs file.  The only way I could get it to take is if I run >> 'runhaskell Setup.hs configure' directly.  I alway

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-21 Thread Rogan Creswick
On Wed, Jul 21, 2010 at 3:00 AM, Magnus Therning wrote: > > I am successfully using hooks with the following in my .cabal file: > >    Build-Type    : Simple > > and my main in Setup.hs looks like this: > >    main = defaultMainWithHooks $ simpleUserHooks >        { cleanHook = profileClean >    

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-22 Thread Magnus Therning
On Wed, Jul 21, 2010 at 17:43, Rogan Creswick wrote: > On Wed, Jul 21, 2010 at 3:00 AM, Magnus Therning wrote: >> >> I am successfully using hooks with the following in my .cabal file: >> >>    Build-Type    : Simple >> >> and my main in Setup.hs looks like this: >> >>    main = defaultMainWithHo

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-22 Thread Ross Paterson
On Wed, Jul 21, 2010 at 09:43:16AM -0700, Rogan Creswick wrote: > On Wed, Jul 21, 2010 at 3:00 AM, Magnus Therning wrote: > > I am successfully using hooks with the following in my .cabal file: > > > >    Build-Type    : Simple > > I've been unable to reproduce this -- flipping the build type to

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-22 Thread Magnus Therning
On Thu, Jul 22, 2010 at 10:59, Ross Paterson wrote: > On Wed, Jul 21, 2010 at 09:43:16AM -0700, Rogan Creswick wrote: >> On Wed, Jul 21, 2010 at 3:00 AM, Magnus Therning wrote: >> > I am successfully using hooks with the following in my .cabal file: >> > >> >    Build-Type    : Simple >> >> I've

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-22 Thread Ross Paterson
On Thu, Jul 22, 2010 at 11:31:21AM +0100, Magnus Therning wrote: > On Thu, Jul 22, 2010 at 10:59, Ross Paterson wrote: > > Magnus is building by directly running the Setup.hs himself, which ignores > > the Build-Type.  To get cabal-install to use his Setup.hs, the Build-Type > > must be set to Cus

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-22 Thread Magnus Therning
On Thu, Jul 22, 2010 at 11:52, Ross Paterson wrote: > On Thu, Jul 22, 2010 at 11:31:21AM +0100, Magnus Therning wrote: >> On Thu, Jul 22, 2010 at 10:59, Ross Paterson wrote: >> > Magnus is building by directly running the Setup.hs himself, which ignores >> > the Build-Type.  To get cabal-install

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-22 Thread wren ng thornton
Magnus Therning wrote: On Thu, Jul 22, 2010 at 11:52, Ross Paterson wrote: On Thu, Jul 22, 2010 at 11:31:21AM +0100, Magnus Therning wrote: On Thu, Jul 22, 2010 at 10:59, Ross Paterson wrote: Magnus is building by directly running the Setup.hs himself, which ignores the Build-Type. To get c

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-22 Thread Mark Wotton
On Fri, Jul 23, 2010 at 12:33 PM, wren ng thornton wrote: > Magnus Therning wrote: >> >> On Thu, Jul 22, 2010 at 11:52, Ross Paterson wrote: >>> >>> On Thu, Jul 22, 2010 at 11:31:21AM +0100, Magnus Therning wrote: On Thu, Jul 22, 2010 at 10:59, Ross Paterson wrote: > > Mag

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-22 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/22/10 09:44 , Magnus Therning wrote: > All right, so why would cabal want to avoid compiling the Setup.hs? > > Of course this behaviour of cabal's means that I in the future will use > *Custom* > all the time, since I otherwise have to remember

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-23 Thread Magnus Therning
On Fri, Jul 23, 2010 at 03:33, wren ng thornton wrote: > Magnus Therning wrote: >> >> On Thu, Jul 22, 2010 at 11:52, Ross Paterson wrote: >>> >>> On Thu, Jul 22, 2010 at 11:31:21AM +0100, Magnus Therning wrote: On Thu, Jul 22, 2010 at 10:59, Ross Paterson wrote: > > Magnus

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-23 Thread Magnus Therning
On Fri, Jul 23, 2010 at 04:58, Mark Wotton wrote: > On Fri, Jul 23, 2010 at 12:33 PM, wren ng thornton wrote: >> Magnus Therning wrote: >>> >>> On Thu, Jul 22, 2010 at 11:52, Ross Paterson wrote: On Thu, Jul 22, 2010 at 11:31:21AM +0100, Magnus Therning wrote: > > On Thu, Jul 2

RE: [Haskell-cafe] cabal, Setup.lhs example

2010-07-23 Thread Sittampalam, Ganesh
Mark Wotton wrote: > Perhaps cabal should print a warning if you have a Setup.hs file, > _and_ try to use Simple? It'd at least give the hint that they're > unhappy together. I think it should instead verify that Setup.hs is consistent with a Simple build. I don't know how much variation exists

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-23 Thread Edward Kmett
That actually runs contrary to one of cabal's other practices, which is to add a 'simple' Setup.hs to your package as it makes the sdist is one is not present. With your proposed change, it would then complain about _every_ package that used simple. ;) Setup.hs exists so that you can execute runha

Re: [Haskell-cafe] cabal, Setup.lhs example

2010-07-23 Thread Edward Kmett
On Fri, Jul 23, 2010 at 8:07 AM, Edward Kmett wrote: > That actually runs contrary to one of cabal's other practices, which is to > add a 'simple' Setup.hs to your package as it makes the sdist is one is not > present. er.. I meant "if one is not present." __

Re: [Haskell-cafe] Cabal LD errors

2010-08-01 Thread Edward Z. Yang
Excerpts from wren ng thornton's message of Sun Aug 01 21:06:07 -0400 2010: > So I'm getting some weird linking errors from cabal-install when doing > `cabal configure && cabal build` Hello Wren, Could you run cabal with -v3 or so and attach the output somewhere? Cheers, Edward

Re: [Haskell-cafe] Cabal LD errors

2010-08-01 Thread Gregory Collins
wren ng thornton writes: > So I'm getting some weird linking errors from cabal-install when doing `cabal > configure && cabal build` > > ld warning: atom sorting error for > _postazm0zi2zi0_DataziMonoidziOrdziArgmax_Max_closure_tbl and > _postazm0zi2zi0_DataziMonoidziOrdziArgmax_Min_closure_tbl i

Re: [Haskell-cafe] Cabal LD errors

2010-08-01 Thread wren ng thornton
Gregory Collins wrote: wren ng thornton writes: So I'm getting some weird linking errors from cabal-install when doing `cabal configure && cabal build` ld warning: atom sorting error for _postazm0zi2zi0_DataziMonoidziOrdziArgmax_Max_closure_tbl and _postazm0zi2zi0_DataziMonoidziOrdziArgmax_Mi

Re: [Haskell-cafe] cabal, haddock, hscolour

2010-08-13 Thread Ivan Lazar Miljenovic
Johannes Waldmann writes: > How is the "cabal" magic that would run hscolour? > > I am using "cabal haddock --executables --hyperlink-source" > and this generates the API docs for all modules, > and all have source links, but the actual html-ized source > is only generated for the main module,

Re: [Haskell-cafe] cabal, haddock, hscolour

2010-08-18 Thread Duncan Coutts
On 13 August 2010 15:49, Johannes Waldmann wrote: > How is the "cabal" magic that would run hscolour? > > I am using  "cabal haddock --executables  --hyperlink-source" > and this generates the API docs for all modules, > and all have source links, but the actual html-ized source > is only generate

[Haskell-cafe] cabal-install profiling libraries

2010-08-20 Thread Johannes Waldmann
Here's another instance of the machine (*) telling me what to do, instead of doing it (or am I missing something): I have a large set of cabal packages installed with ghc. Then suddenly I need some package Foo with profiling. So I switch to library-profiling: True in my .cabal/config, and then

Re: [Haskell-cafe] Cabal-install prefix

2010-09-21 Thread Ivan Lazar Miljenovic
On 22 September 2010 15:55, N. Raghavendra wrote: > I am new to Haskell, and am trying to install a package (scan) using > cabal-install.  I want it to install all files under the directory > ${HOME}/nonvc, like in ~/nonvc/share and ~/nonvc/bin.  So I specified > > install-dirs user >  -- prefix:

Re: [Haskell-cafe] cabal mystery (#562?)

2010-10-28 Thread Daniel Fischer
On Thursday 28 October 2010 15:08:09, Conor McBride wrote: > So I poked about a bit, and I see it's a known issue. As a user, I'm > wondering what to do. Try with HTTP-4000.0.9 instead of 4000.0.7? > > Just now, > >    wget http://hackage.haskell.org/packages/archive/00-index.tar.gz > > is chuggi

Re: [Haskell-cafe] : cabal install SDL

2009-12-27 Thread Stephen Tetley
2009/12/27 Lie Ryan : > [SNIP...] (i.e. can I use > the resultant SDL-binding outside Cygwin?) Hi The short answers is "yes" - once you have the Haskell binding installed will need only the .exe of your (Haskell) application compiled by GHC and the SDL.dll [1]. The long answer is that this was

[Haskell-cafe] cabal install vacuum-cairo

2010-01-17 Thread Ozgur Akgun
Cafe, I've been trying to install vacuum-cairo using cabal but I couldn't have it installed because of the missing packages cairo, svg and gtkcairo. What should I do to install vacuum-cairo? Thanks for any help in advance, -- Ozgur Akgun ___ Haskell

Re: [Haskell-cafe] cabal install glfw

2010-01-19 Thread Paul L
The problem you mentioned has long been fixed in the darcs version, but then there is also another problem: you need GHC 6.12 in order to compile GLFW for Snow Leopard. Here is a detail description of why prior versions of GHC fails to work: http://hackage.haskell.org/trac/ghc/ticket/3522 I've jus

Re: [Haskell-cafe] cabal install glfw

2010-01-20 Thread Ozgur Akgun
Sorry, I cannot install GHC 6.12 right now, so I won't be able to try it. Thanks anyway. 2010/1/19 Paul L > The problem you mentioned has long been fixed in the darcs version, > but then there is also another problem: you need GHC 6.12 in order to > compile GLFW for Snow Leopard. Here is a detai

Re: [Haskell-cafe] cabal fun (not)

2010-02-05 Thread Ivan Miljenovic
On 6 February 2010 01:05, Johannes Waldmann wrote: > so please please please have "cabal install" fail with some error > message if (that is, before) the install would break anything. - J. If you upgrade a library, it will break all other libraries that depend upon it. "ghc-pkg list" will tell y

Re: [Haskell-cafe] cabal fun (not)

2010-02-06 Thread Peter Robinson
On 6 February 2010 03:33, Ivan Miljenovic wrote: > If you upgrade a library, it will break all other libraries that > depend upon it.  "ghc-pkg list" will tell you which libraries are > broken and need to be rebuilt. I think you mean "ghc-pkg check". Peter _

Re: [Haskell-cafe] cabal fun (not)

2010-02-06 Thread Ivan Miljenovic
On 6 February 2010 19:23, Peter Robinson wrote: > I think you mean "ghc-pkg check". Yes, I do. Whoops :s -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com Charles de Gaulle - "The better I get to know men, the more I find myself loving dogs." - http://www.brain

Re: [Haskell-cafe] Cabal update problem

2010-02-19 Thread Valery V. Vorotyntsev
> after updating to cabal-install-0.8.0/Cabal-1.8.0.2 with GHC 6.10.4, I > always get an error when updating the package list: > >   > cabal update >   Downloading the latest package list from hackage.haskell.org >   cabal: Codec.Compression.Zlib: premature end of compressed stream Would you pleas

Re: [Haskell-cafe] Cabal update problem

2010-02-19 Thread Maciej Podgurski
Am 19.02.2010 13:55 schrieb Valery V. Vorotyntsev: after updating to cabal-install-0.8.0/Cabal-1.8.0.2 with GHC 6.10.4, I always get an error when updating the package list: > cabal update Downloading the latest package list from hackage.haskell.org cabal: Codec.Compression.Zlib: premature

[Haskell-cafe] Cabal pre-compiled packages

2010-02-27 Thread Diego Souza
Hi, currently when one install a cabal package it compiles it and then install generated binaries. I wonder whether or not it would be useful to have pre-compiled binaries as many package managers usually do (e.g. apt). I often think that would save some time on the expense of a busier hackage ser

Re: [Haskell-cafe] Cabal dependency hell

2010-03-08 Thread Bulat Ziganshin
Hello Maciej, Monday, March 8, 2010, 4:33:08 PM, you wrote: > PS. I understand that content may be flame-gen. I am sorry in advance if > such circumstances happen. However I believe that possible improvements > in process are worth the risk. i was the author of this idea and i thought that 1) p

Re: [Haskell-cafe] Cabal dependency hell

2010-03-08 Thread Marc Weber
Hi Maciej, that's why I started hack-nix. You can patch dependencies easily. However you have to install the Nix package manager. It also works with lates versions only because the dependency solves is written in Nix itself. Which package is causing trouble to you? We can't expect package mai

[Haskell-cafe] Cabal and LLVM bindings

2010-03-11 Thread Ville Tirronen
Hi! I'm trying to get cabal build my toy compiler, which is based on llvm bindings on hackage. Everything is fine with ghc --make, but with cabal install I get: Loading package llvm-0.7.1.1 ... : can't load .so/.DLL for: LLVMSystem (dlopen(libLLVMSystem.dylib, 9): image not found) cabal: Error: s

RE: [Haskell-cafe] Cabal source installation

2010-03-23 Thread Chris Dornan
ary package. Chris -Original Message- From: Colin Paul Adams [mailto:co...@colina.demon.co.uk] Sent: 23 March 2010 11:35 AM To: Chris Dornan Subject: Re: [Haskell-cafe] Cabal source installation Have you tried? cabal unpack -- Colin Adams

[Haskell-cafe] Cabal Compiler Flag Problem

2010-03-23 Thread Ben Derrett
Hi, I'm trying to install the Haskell cgi module, as per here http://passingcuriosity.com/2009/haskell-fastcgi-with-apache/. When I type cabal install cgi, I get the following error (on a Fedora instance): cabal install cgi Resolving dependencies... Configuring MonadCatchIO-mtl-0.3.0.0... Preproce

RE: [Haskell-cafe] cabal through PHPProxy

2010-03-31 Thread Bayley, Alistair
> From: haskell-cafe-boun...@haskell.org > [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Dupont Corentin > > i'm using PHPProxy to go on the internet (www.phpproxy.fr). > How can i tell cabal to use this? I think the normal way is through setting HTTP_PROXY env var e.g. set HTTP_PROXY=h

Re: [Haskell-cafe] cabal through PHPProxy

2010-03-31 Thread Dupont Corentin
Thanks for the response. I don't think this will work because PHPProxy is a web based proxy. To use it, you have to type the http address you want in a field on the page. Corentin On 3/31/10, Bayley, Alistair wrote: >> From: haskell-cafe-boun...@haskell.org >> [mailto:haskell-cafe-boun...@haskel

Re: [Haskell-cafe] cabal through PHPProxy

2010-03-31 Thread Valery V. Vorotyntsev
> i'm using PHPProxy to go on the internet (www.phpproxy.fr). > How can i tell cabal to use this? ... > PHPProxy is a web based proxy. To use it, you have to type the http > address you want in a field on the page. You still need some web access in order to access a web-based proxy... Is www.phpp

Re: [Haskell-cafe] Cabal dependency hell

2010-04-11 Thread Duncan Coutts
On Mon, 2010-03-08 at 13:33 +, Maciej Piechotka wrote: > While I love Haskell it's packaging system have some problems - > especially with parsec. > > Currently I'm not able to install an practically anything using cabal > due to version mismatches (or at least packages linking to both version

Re: [Haskell-cafe] Cabal dependency hell

2010-04-11 Thread Maciej Piechotka
> * Build reporting in the hackage server > The idea here is that cabal sends back anonymous reports to the > server to say if a package compiled or not, and against what > versions of dependencies. This would make it clearer to > maintainers if their dependenc

Re: [Haskell-cafe] Cabal dependency hell

2010-04-11 Thread Daniel Fischer
Am Sonntag 11 April 2010 18:43:30 schrieb Maciej Piechotka: > > * Build reporting in the hackage server > > The idea here is that cabal sends back anonymous reports to > > the server to say if a package compiled or not, and against what > > versions of dependencies. This would make it

Re: [Haskell-cafe] Cabal dependency hell

2010-04-11 Thread Edward Z. Yang
Excerpts from Daniel Fischer's message of Sun Apr 11 16:20:30 -0400 2010: > I think in the default cabal config, build-reporting would be turned off > and you'd have to turn it on yourself. Turning it on by default wouldn't be > sensible. I doubt you'd get very much runtime with that. I'd sugge

Re: [Haskell-cafe] Cabal dependency hell

2010-04-11 Thread Jason Dagit
On Sun, Apr 11, 2010 at 9:26 AM, Duncan Coutts wrote: > On Mon, 2010-03-08 at 13:33 +, Maciej Piechotka wrote: > > While I love Haskell it's packaging system have some problems - > > especially with parsec. > > > > Currently I'm not able to install an practically anything using cabal > > due

Re: [Haskell-cafe] Cabal dependency hell

2010-04-11 Thread Ivan Lazar Miljenovic
"Edward Z. Yang" writes: > I doubt you'd get very much runtime with that. I'd suggest prompting the > user to submit a failed build report if the build fails. Exactly like how Windows keeps prompting you to allow it to send an error report to Microsoft? I don't know about you, but I always foun

Re: [Haskell-cafe] Cabal dependency hell

2010-04-11 Thread Edward Z. Yang
Excerpts from Ivan Lazar Miljenovic's message of Sun Apr 11 17:37:15 -0400 2010: > "Edward Z. Yang" writes: > > I doubt you'd get very much runtime with that. I'd suggest prompting the > > user to submit a failed build report if the build fails. > > Exactly like how Windows keeps prompting you t

[Haskell-cafe] Cabal, GHC and Preprocessors

2010-04-11 Thread Ashley Yakeley
I want identifier concatenation in Haskell. For instance: #define CDecl(n) = class C_##n a where { f_##n :: a }; CDecl(1) CDecl(2) CDecl(3) (Actual motivator involves generating by type kind.) I have no trouble switching on CPP, but this doesn't work. The trouble is, GHC uses gcc for

Re: [Haskell-cafe] Cabal dependency hell

2010-04-12 Thread Duncan Coutts
On Sun, 2010-04-11 at 18:43 +0200, Maciej Piechotka wrote: > > * Build reporting in the hackage server > > The idea here is that cabal sends back anonymous reports to the > > server to say if a package compiled or not, and against what > > versions of dependencies. Thi

Re: [Haskell-cafe] Cabal dependency hell

2010-04-12 Thread Duncan Coutts
On Sun, 2010-04-11 at 14:28 -0700, Jason Dagit wrote: > I've noticed another type of diamond dependency problem. Suppose I > build and install Foo today and it depends on Bar 2.0.0. In a week, I > install Bar 2.0.1. Next I installed Baz that also depends on Bar, and > it gets Bar 2.0.1. When I

Re: [Haskell-cafe] Cabal update problem

2010-04-12 Thread Duncan Coutts
On Fri, 2010-02-19 at 12:21 +0100, Maciej Podgurski wrote: > Hi, > > after updating to cabal-install-0.8.0/Cabal-1.8.0.2 with GHC 6.10.4, I > always get an error when updating the package list: > > > cabal update > Downloading the latest package list from hackage.haskell.org > cabal:

Re: [Haskell-cafe] Cabal dependency hell

2010-04-12 Thread Ketil Malde
Duncan Coutts writes: > Here are a few things which I would like to see implemented that would > help all this: > * Build reporting in the hackage server > The idea here is that cabal sends back anonymous reports to the > server to say if a package compiled or not, and aga

Re: [Haskell-cafe] Cabal dependency hell

2010-04-12 Thread Jason Dagit
On Mon, Apr 12, 2010 at 4:00 AM, Duncan Coutts wrote: > On Sun, 2010-04-11 at 14:28 -0700, Jason Dagit wrote: > > > I've noticed another type of diamond dependency problem. Suppose I > > build and install Foo today and it depends on Bar 2.0.0. In a week, I > > install Bar 2.0.1. Next I install

Re: [Haskell-cafe] Cabal dependency hell

2010-04-13 Thread wren ng thornton
Duncan Coutts wrote: On Sun, 2010-04-11 at 18:43 +0200, Maciej Piechotka wrote: - Privacy problem. I don't want the software to call home with data without asking. Obviously it is important that the data be anonymous and that we do not send stuff without the user's knowledge. While there is n

Re: [Haskell-cafe] Cabal dependency hell

2010-04-13 Thread wren ng thornton
Ketil Malde wrote: Perhaps it would also be possible to suggest library upgrades likely to remedy the problem in case of a build failure? +1 for good error messages. +2 for "should I try upgrading libfoo? [yn]" integration (if configurable as AlwaysYes, AlwaysAsk, or AlwaysNo). -- Live wel

Re: [Haskell-cafe] cabal: other-modules

2010-04-15 Thread Ivan Lazar Miljenovic
Johannes Waldmann writes: > What is the purpose of the "Other-Modules" section in a cabal file? > (I.e., can we drop it?) Non-exported modules. > If it's just the set of dependencies of the "Exported-Modules", > then a reasonable build system should be able to figure this out on > its own. Exp

Re: [Haskell-cafe] cabal: other-modules

2010-04-15 Thread Malcolm Wallace
On 15 Apr 2010, at 08:24, Johannes Waldmann wrote: What is the purpose of the "Other-Modules" section in a cabal file? (I.e., can we drop it?) If it's just the set of dependencies of the "Exported-Modules", then a reasonable build system should be able to figure this out on its own. It is

[Haskell-cafe] Cabal generating text files?

2010-04-25 Thread Michał J Gajda
Hi, Does anyone know how to generate a text file in a Cabal package? E.g. I want cabal to install a text file into $share_dir/applications/ app.desktop, and fill in certain fragments of this file with paths depending of the $share_dir variable. Say: ==Yi.desktop template==

[Haskell-cafe] Cabal-install: bus error

2010-05-03 Thread Chris Eidhof
Hey everyone, After I upgraded to a newer cabal-install my cabal-install broke again: I get a Bus Error when doing "cabal update" or "cabal install something". The version that was bundled with the Haskell platform worked fine, but now it's broken again. I'm not sure what it was that went wrong

Re: [Haskell-cafe] cabal-install-1.16.0.2

2012-10-15 Thread Johan Tibell
On Mon, Oct 15, 2012 at 7:16 PM, Johan Tibell wrote: > Hi all, > > I've created bug fix release candidates for Cabal and cabal-install to > address the bugs found after the release. Here's the list of fixed bugs: Fixed since cabal-install-1.16.0: * Fix installing from custom folder on Linux (#

Re: [Haskell-cafe] cabal-install-1.16.0.2

2012-10-15 Thread Andrés Sicard-Ramírez
Hi Johan, On Mon, Oct 15, 2012 at 10:18 PM, Johan Tibell wrote: > > Fixed since Cabal-1.16.0.1: > > * Fixed warnings on the generated Paths module. The warnings are > generated by the flag '-fwarn-missing-import-lists'. I tested this issue with Cabal-1.16.0.2 and the issue was fixed. Thanks,

[Haskell-cafe] Cabal bug? repeat "--reinstall"

2013-01-04 Thread Niklas Hambüchen
I get the following: $ cabal install --only-dependencies --reinstall Resolving dependencies... All the requested packages are already installed: Use --reinstall if you want to reinstall anyway. Can somebody confirm that they see the same? ___ Haskell

Re: [Haskell-cafe] cabal update error

2010-11-13 Thread Ivan Lazar Miljenovic
On 13 November 2010 19:48, Daniel Díaz wrote: > Hi all, > > I just installed the Haskell Platform, and when I try "cabal update", I > have the following output: > >> Downloading the latest package list from hackage.haskell.org >> cabal: failed > > This error does not give me information about what

Re: [Haskell-cafe] cabal update error

2010-11-13 Thread Daniel Díaz
El Sab, 13 de Noviembre de 2010, 10:33 am, Ivan Lazar Miljenovic escribió: > On 13 November 2010 19:48, Daniel Díaz wrote: >> Hi all, >> >> I just installed the Haskell Platform, and when I try "cabal update", I >> have the following output: >> >>> Downloading the latest package list from hackage

Re: [Haskell-cafe] cabal update error

2010-11-13 Thread Ross Paterson
On Sat, Nov 13, 2010 at 08:33:18PM +1100, Ivan Lazar Miljenovic wrote: > I would guess that it's related to > http://www.reddit.com/r/haskell/comments/e5db7/alert_hackage_downtime_tomorrow_0600_1200_pst/ That would be 14:00 - 20:00 UTC, wouldn't it? ___

[Haskell-cafe] Cabal-install is broken

2010-11-22 Thread Permjacov Evgeniy
current cabal-install (0.8.2) cannot be compiled with ghc-7.0.1 set of boot libraries. It requires cabal 1.8.* wich fails to compile. Does anyone worked this out ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listi

[Haskell-cafe] Cabal sdist bug patch

2010-12-01 Thread John D. Ramsdell
So as far as I can tell, it's easy to fix the cabal sdist bug. The module that generates a distribution simply has to use insntallOrdinaryFile when copying files, not the version of copyFile that is exported by Distribution.Simple.Util. I'll respond to the open ticket with this patch later today.

Re: [Haskell-cafe] Cabal message problem.

2010-12-15 Thread Ivan Lazar Miljenovic
On 16 December 2010 13:35, Magicloud Magiclouds wrote: > Hi, >  I see this kind of information a lot when I using cabal to install > package. Or sometimes same packages both exist in global and user > space, which is a "shadowed by" message. >  How to resolve that? Thanks. > > Resolving dependenci

Re: [Haskell-cafe] Cabal message problem.

2010-12-15 Thread Magicloud Magiclouds
On Thu, Dec 16, 2010 at 10:55 AM, Ivan Lazar Miljenovic wrote: > On 16 December 2010 13:35, Magicloud Magiclouds > wrote: >> Hi, >>  I see this kind of information a lot when I using cabal to install >> package. Or sometimes same packages both exist in global and user >> space, which is a "shadow

Re: [Haskell-cafe] Cabal message problem.

2010-12-15 Thread Magicloud Magiclouds
On Thu, Dec 16, 2010 at 2:24 PM, Magicloud Magiclouds wrote: > On Thu, Dec 16, 2010 at 10:55 AM, Ivan Lazar Miljenovic > wrote: >> On 16 December 2010 13:35, Magicloud Magiclouds >> wrote: >>> Hi, >>>  I see this kind of information a lot when I using cabal to install >>> package. Or sometimes s

Re: [Haskell-cafe] Cabal message problem.

2010-12-15 Thread Ivan Lazar Miljenovic
On 16 December 2010 17:26, Magicloud Magiclouds wrote: > And, sure, I could reinstall Cabal. Then things seem fine. But it is > weird. I have to have the same packages installed at two places of the > system. What makes you say that? Does "ghc-pkg list" show it twice? -- Ivan Lazar Miljenovic

Re: [Haskell-cafe] Cabal message problem.

2010-12-15 Thread Magicloud Magiclouds
On Thu, Dec 16, 2010 at 2:59 PM, Ivan Lazar Miljenovic wrote: > On 16 December 2010 17:26, Magicloud Magiclouds > wrote: >> And, sure, I could reinstall Cabal. Then things seem fine. But it is >> weird. I have to have the same packages installed at two places of the >> system. > > What makes you

Re: [Haskell-cafe] Cabal message problem.

2010-12-15 Thread Ivan Lazar Miljenovic
On 16 December 2010 18:30, Magicloud Magiclouds wrote: > On Thu, Dec 16, 2010 at 2:59 PM, Ivan Lazar Miljenovic > For example, now I have message as this when installing darcs. > : cannot satisfy -package Cabal-1.10.0.0: >    Cabal-1.10.0.0-9ac678c7f1e4f8dd31bac0e19f600698 is unusable due to > mis

Re: [Haskell-cafe] Cabal message problem.

2010-12-15 Thread Magicloud Magiclouds
On Thu, Dec 16, 2010 at 3:48 PM, Ivan Lazar Miljenovic wrote: > On 16 December 2010 18:30, Magicloud Magiclouds > wrote: >> On Thu, Dec 16, 2010 at 2:59 PM, Ivan Lazar Miljenovic >> For example, now I have message as this when installing darcs. >> : cannot satisfy -package Cabal-1.10.0.0: >>    C

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Magicloud Magiclouds
On Thu, Dec 16, 2010 at 3:56 PM, Magicloud Magiclouds wrote: > On Thu, Dec 16, 2010 at 3:48 PM, Ivan Lazar Miljenovic > wrote: >> On 16 December 2010 18:30, Magicloud Magiclouds >> wrote: >>> On Thu, Dec 16, 2010 at 2:59 PM, Ivan Lazar Miljenovic >>> For example, now I have message as this when

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Ivan Lazar Miljenovic
On 16 December 2010 19:06, Magicloud Magiclouds wrote: > > Oh, clean job around ~/.ghc and ~/.cabal has been done. No luck. Sounds like a dodgy GHC install then; I believe lispy on #haskell has reported similar problems. -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpres

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Magicloud Magiclouds
On Thu, Dec 16, 2010 at 4:07 PM, Ivan Lazar Miljenovic wrote: > On 16 December 2010 19:06, Magicloud Magiclouds > wrote: >> >> Oh, clean job around ~/.ghc and ~/.cabal has been done. No luck. > > Sounds like a dodgy GHC install then; I believe lispy on #haskell has > reported similar problems. >

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Johannes Waldmann
Magicloud Magiclouds gmail.com> writes: > Really hoping cabal has some kind of way to ignore these version thing. +1, sort of. Really, when moving to ghc-7 I found the most annyoing thing is upper version bounds in cabal files. This makes cabal-install all too eager to downgrade libraries. E

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Brent Yorgey
On Thu, Dec 16, 2010 at 10:08:23AM +, Johannes Waldmann wrote: > But: I'm always puzzled by build-dependencies like "A <= 3.4.5". > With the "major.minor.release" scheme, > a change in "release" means no API change (just bugfix), > in "minor" means compatible extension of API, > and only "majo

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Daniel Fischer
On Thursday 16 December 2010 11:08:23, Johannes Waldmann wrote: > But: I'm always puzzled by build-dependencies like "A <= 3.4.5". > With the "major.minor.release" scheme, > a change in "release" means no API change (just bugfix), > in "minor" means compatible extension of API, > and only "major" c

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Johannes Waldmann
Daniel Fischer googlemail.com> writes: > Maybe a flag "ignore upper bounds and try with the latest" for cabal +1 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Duncan Coutts
On 16 December 2010 13:38, Daniel Fischer wrote: > The problem is that without upper bounds, things will break a lot when > packages undergo API changes, but probably more often things will also work > with the new API. So with upper bounds, you prevent breakage at the cost of > preventing builds

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Ketil Malde
Daniel Fischer writes: > Or: it breaks with a bug introduced in 3.4.6 which hasn't yet been fixed. This is an important point, I think: API breakages are not always intentional. Except for base, I generally don't specify upper bounds (well, maybe this is laziness on my part as well), unless I k

Re: [Haskell-cafe] Cabal message problem.

2010-12-16 Thread Daniel Fischer
On Thursday 16 December 2010 15:40:37, Duncan Coutts wrote: > On 16 December 2010 13:38, Daniel Fischer > > wrote: > > The problem is that without upper bounds, things will break a lot when > > packages undergo API changes, but probably more often things will also > > work with the new API. So wit

Re: [Haskell-cafe] Cabal message problem.

2010-12-24 Thread Henning Thielemann
On 16.12.2010 15:40, Duncan Coutts wrote: On 16 December 2010 13:38, Daniel Fischer wrote: Maybe a flag "ignore upper bounds and try with the latest" for cabal would be a solution. Would that be hard to implement or easy? That suggestion has come up quite a few times. I think it's probably

Re: [Haskell-cafe] Cabal proxy configuration

2011-01-27 Thread Ivan Lazar Miljenovic
On 28 January 2011 15:13, Azeem -ul-Hasan wrote: > My university requires the students to use internet through an authenticated > http proxy. How do I configure cabal for that? I am using Ubuntu. Please be > detailed about it. Do you mean Cabal or cabal-install? Assuming the latter: export http

Re: [Haskell-cafe] Cabal proxy configuration

2011-01-27 Thread Azeem -ul-Hasan
(use: setAuthorityGen); returning Nothing cabal: Failed to download index 'ErrorMisc "Unsucessful HTTP code: (4,0,7)"' This is the first time I am using cabal so I am almost completely blank for it. Thanks Azeem > Date: Fri, 28 Jan 2011 15:26:08 +1000 > Subject: Re:

Re: [Haskell-cafe] Cabal proxy configuration

2011-01-27 Thread Ivan Lazar Miljenovic
On 28 January 2011 16:00, Azeem -ul-Hasan wrote: > > Please explain this a bit. Where are the configuration files for cabal > install. cabal-install is configured in ~/.cabal/config However, as far as I'm aware it uses normal http connections and doesn't require any particular configuration for

Re: [Haskell-cafe] Cabal && license combinations

2011-02-07 Thread Malcolm Wallace
It seems then that a package should be the least restrictive combination of all the licenses in all the contained modules. Omit the words "least restrictive" and I think you are correct. To combine licences, just aggregate them. There is no lattice of subsumption; no "more" or "less" restri

Re: [Haskell-cafe] Cabal && license combinations

2011-02-08 Thread Duncan Coutts
On Mon, 2011-02-07 at 14:42 +, Malcolm Wallace wrote: > > It seems then that a package should be the least restrictive > > combination of all the licenses in all the contained modules. > > Omit the words "least restrictive" and I think you are correct. > > To combine licences, just aggregat

Re: [Haskell-cafe] Cabal && license combinations

2011-02-08 Thread Vivian McPhail
> On Mon, 2011-02-07 at 14:42 +, Malcolm Wallace wrote: > > > It seems then that a package should be the least restrictive > > > combination of all the licenses in all the contained modules. > > > > Omit the words "least restrictive" and I think you are correct. > OK. > > > > To combine lice

Re: [Haskell-cafe] Cabal && license combinations

2011-02-08 Thread Ketil Malde
Vivian McPhail writes: > Looking specifically at hmatrix, there are three kinds of modules > >i) bindings to GSLGPL >ii) bindings to LAPACK BSD >iii) pure Haskellhmatrix author's choice > > 1) Am I correct in thinking that even the bindings modules (the

Re: [Haskell-cafe] Cabal && license combinations

2011-02-08 Thread Chris Smith
It feels to me like a quite reasonable simplification that if someone wants to offer different bits of code, with the intent that the license terms of the eventual executable may be different depending on which bits you use, then they ought to do so in different packages. It's simple enough to do,

Re: [Haskell-cafe] Cabal && license combinations

2011-02-09 Thread Vivian McPhail
> > It seems then that a package should be the least restrictive > > combination of all the licenses in all the contained modules. > > Omit the words "least restrictive" and I think you are correct. > > To combine licences, just aggregate them. There is no lattice of > subsumption; no "more" or "l

Re: [Haskell-cafe] Cabal && license combinations

2011-02-10 Thread Duncan Coutts
On Wed, 2011-02-09 at 03:47 +1300, Vivian McPhail wrote: > > license: Foo, Bar > > > > Could this be computed automatically from the source files by Cabal? I would not want to rely on that. > Looking specifically at hmatrix, there are three kinds of modules > >i) bindings to GSL

<    1   2   3   4   5   6   7   8   9   10   >