Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-07-04 Thread Andrew Coppin
Antoine Latter wrote: Personally, I've never used runhaskell Setup sdist and I've only ever used cabal sdist. But I'm not sure where I learned that. I think cabal-install is a pretty standard util for people to have, and it ships with the Haskell platform now. So the big hurdle is

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Andrew Coppin
Derek Elkins wrote: On Sun, Jun 28, 2009 at 4:11 PM, Antoine Latteraslat...@gmail.com wrote: On Sun, Jun 28, 2009 at 3:42 PM, Andrew Coppinandrewcop...@btinternet.com wrote: Ah. Apparently it's fixed: http://hackage.haskell.org/trac/hackage/ticket/40 Except that it isn't fixed.

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Antoine Latter
On Mon, Jun 29, 2009 at 1:03 PM, Andrew Coppinandrewcop...@btinternet.com wrote: This was not at all clear to me from reading the ticker. OK, so I need to find another seperate tool in order to do this. I guess not every single Haskell user tries to release stuff to Hackage, while presumably

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Andrew Coppin
Antoine Latter wrote: Personally, I've never used runhaskell Setup sdist and I've only ever used cabal sdist. But I'm not sure where I learned that. I think cabal-install is a pretty standard util for people to have, and it ships with the Haskell platform now. So the big hurdle is

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Andrew Coppin
Andrew Coppin wrote: Indeed. I've heard a few people claim that cabal-install is the best thing since sliced bread, but I've never touched it. I don't even know where to get it. (Presumably this will become fairly obvious once I go look for it...) Fortunately, it turns out that a trivial

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Jason Dagit
On Mon, Jun 29, 2009 at 11:57 AM, Andrew Coppin andrewcop...@btinternet.com wrote: Andrew Coppin wrote: Indeed. I've heard a few people claim that cabal-install is the best thing since sliced bread, but I've never touched it. I don't even know where to get it. (Presumably this will become

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Antoine Latter
On Mon, Jun 29, 2009 at 2:12 PM, Jason Dagitda...@codersbase.com wrote: I can't say for certain, but just reading the output it looks like it created a tarball in a temporary folder (that worked) and then when it tried to clean it up it failed.  Sounds like a bug report is in order. You may

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Andrew Coppin
Jason Dagit wrote: On Mon, Jun 29, 2009 at 11:57 AM, Andrew Coppin andrewcop...@btinternet.com mailto:andrewcop...@btinternet.com wrote: Rather less fortunately, it still doesn't actually fix my problem: E:\Haskell\AOC-HalfIntegercabal configure Resolving dependencies...

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Ross Mellgren
I presume that many of the developers do not have windows machines (presumably because windows sucks). Maybe you could help them by trying to track down where the error in the code is, and even better yet submitting a patch? This is all free by the virtue of people giving what time they

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Andrew Coppin
Ross Mellgren wrote: I presume that many of the developers do not have windows machines (presumably because windows sucks). Maybe you could help them by trying to track down where the error in the code is, and even better yet submitting a patch? This is all free by the virtue of people

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-29 Thread Jason Dagit
On Mon, Jun 29, 2009 at 12:55 PM, Andrew Coppin andrewcop...@btinternet.com wrote: This is an exercise in pure frustration! Sometimes it seems as if *everything* is broken on Windows. In my opinion you're right, Windows, and things built on it, tend to be very broken. Maybe that's why so

[Haskell-cafe] Cabal fun [Half-integer]

2009-06-28 Thread Andrew Coppin
Max Rabkin wrote: On Sun, Jun 28, 2009 at 9:29 PM, Andrew Coppinandrewcop...@btinternet.com wrote: Which versions of base have you tested it with? :-) Whichever one GHC 6.10.3 ships with... ghc-pkg list base will tell you which version you have installed. Which tells me

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-28 Thread Andrew Coppin
Andrew Coppin wrote: Alrighty then, so how I just do Setup configure, and now Setup sdist, and then I can upload the result to Ha-- oh, don't be silly. That would simply be too easy. ;-) E:\Haskell\AOC-HalfIntegerrunhaskell Setup sdist Building source dist for AOC-HalfInteger-1.0...

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-28 Thread Antoine Latter
On Sun, Jun 28, 2009 at 3:42 PM, Andrew Coppinandrewcop...@btinternet.com wrote: Andrew Coppin wrote: Alrighty then, so how I just do Setup configure, and now Setup sdist, and then I can upload the result to Ha-- oh, don't be silly. That would simply be too easy. ;-)

Re: [Haskell-cafe] Cabal fun [Half-integer]

2009-06-28 Thread Derek Elkins
On Sun, Jun 28, 2009 at 4:11 PM, Antoine Latteraslat...@gmail.com wrote: On Sun, Jun 28, 2009 at 3:42 PM, Andrew Coppinandrewcop...@btinternet.com wrote: Andrew Coppin wrote: Alrighty then, so how I just do Setup configure, and now Setup sdist, and then I can upload the result to Ha-- oh,

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 magicloud.magiclo...@gmail.com [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,

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 magicloud.magiclo...@gmail.com [2009-06-15 10:01:03+0800] # ghc-pkg list gtk

[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

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

2009-06-14 Thread Roman Cheplyaka
* Magicloud Magiclouds magicloud.magiclo...@gmail.com [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,

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

2009-06-14 Thread Roman Cheplyaka
* Magicloud Magiclouds magicloud.magiclo...@gmail.com [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

Re: [Haskell-cafe] Cabal addressibility problem

2009-06-08 Thread Malcolm Wallace
Vasili I. Galchin vigalc...@gmail.com wrote: Executable GraphPartitionTest Main-Is:Swish.HaskellRDF.GraphPartitionTest.hs Other-modules: Swish.HaskellRDF.GraphPartition Swish.HaskellRDF.GraphClass Swish.HaskellUtils.ListHelpers

[Haskell-cafe] Cabal addressibility problem

2009-06-05 Thread Vasili I. Galchin
Hello, The following is a fragment in my cabal file: Executable GraphPartitionTest Main-Is:Swish.HaskellRDF.GraphPartitionTest.hs Other-modules: Swish.HaskellRDF.GraphPartition Swish.HaskellRDF.GraphClass

Re: [Haskell-cafe] Cabal addressibility problem

2009-06-05 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Fri, Jun 5, 2009 at 3:33 PM, Vasili I. Galchin wrote: Hello, The following is a fragment in my cabal file: Executable GraphPartitionTest Main-Is:Swish.HaskellRDF.GraphPartitionTest.hs Other-modules:

Re: [Haskell-cafe] Cabal addressibility problem

2009-06-05 Thread Vasili I. Galchin
for directory structure I Swish-0.2.1/Swish/HaskellRDF and Swish-0.2.1/Swish/HaskellUtils ... there are deeper directories but that distract from the discussion ... to make things concete: 1) swish.cabal is directly under Swish-0.2.1 2) GraphPartitionTest.hs is under

Re: [Haskell-cafe] Cabal addressibility problem

2009-06-05 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Fri, Jun 5, 2009 at 4:10 PM, Vasili I. Galchin wrote: for directory structure I Swish-0.2.1/Swish/HaskellRDF and Swish-0.2.1/Swish/HaskellUtils ... there are deeper directories but that distract from the discussion ... to make things concete:

Re: [Haskell-cafe] Cabal addressibility problem

2009-06-05 Thread Vasili I. Galchin
At work I am using Windose ... so I use runhaskell .. I don't have build Vasili On Fri, Jun 5, 2009 at 3:28 PM, Gwern Branwen gwe...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Fri, Jun 5, 2009 at 4:10 PM, Vasili I. Galchin wrote: for directory structure I

Re: [Haskell-cafe] Cabal addressibility problem

2009-06-05 Thread Vasili I. Galchin
getting farther . Executable GraphPartitionTest Hs-source-dirs: Swish/ added this Main-Is:HaskellRDF/GraphPartitionTest.hschanged to a real filesystem path Other-modules: HaskellRDF.GraphPartition

Re: [Haskell-cafe] Cabal addressibility problem

2009-06-05 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Fri, Jun 5, 2009 at 4:49 PM, Vasili I. Galchin wrote: getting farther . Executable GraphPartitionTest Hs-source-dirs: Swish/ Main-Is: HaskellRDF/GraphPartitionTest.hsfilesystem path

Re: [Haskell-cafe] Cabal addressibility problem

2009-06-05 Thread Ross Mellgren
If your module statements say Swish in them, e.g. module Swish.HaskellUtils.TestHelpers where then you should probably have no hs-source-dirs (or hs-source-dirs: .) and then use Swish.HaskellUtils.TestHelpers. But leave Main-Is: as you have it. -Ross On Jun 5, 2009, at 4:49 PM,

Re: [Haskell-cafe] Cabal/primes

2009-06-04 Thread Ryan Ingram
On this note, shouldn't there be cabal uninstall? -- ryan On Wed, Jun 3, 2009 at 3:40 PM, Don Stewart d...@galois.com wrote: nowgate: Got it working. I downloaded two packages, primes and Numbers. Since Numbers has the three functions I want to use, primes, isPrime and isProbablyPrime,

Re: [Haskell-cafe] Cabal/primes

2009-06-04 Thread Thomas DuBuisson
On Thu, Jun 4, 2009 at 9:52 AM, Ryan Ingram ryani.s...@gmail.com wrote: On this note, shouldn't there be cabal uninstall? You mean ticket 234? http://hackage.haskell.org/trac/hackage/ticket/234 Yes, its been open for a year and has been quietly waiting for developer time... are you the lucky

Re: [Haskell-cafe] Cabal/primes

2009-06-03 Thread michael rice
OK, I downloaded Numbers. Still missing the three functions I wanted, which are primes, isPrime, and isProbablyPrime. How do I get these? Michael ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Cabal/primes

2009-06-03 Thread brian
Prelude :m + Data.Numbers.Primes Prelude Data.Numbers.Primes :browse isPrime :: Integer - Bool isProbablyPrime :: (System.Random.RandomGen g) = Integer - g - (Bool, g) primes :: [Integer] Prelude Data.Numbers.Primes isPrime 3525266 Loading package syb ... linking ... done. Loading package

Re: [Haskell-cafe] Cabal/primes

2009-06-03 Thread michael rice
...@localhost hackage.haskell.org]$ pwd /home/michael/.cabal/packages/hackage.haskell.org [mich...@localhost hackage.haskell.org]$ = --- On Wed, 6/3/09, brian bri...@aracnet.com wrote: From: brian bri...@aracnet.com Subject: Re: [Haskell-cafe] Cabal/primes To: michael rice nowg

Re: [Haskell-cafe] Cabal/primes

2009-06-03 Thread michael rice
, michael rice nowg...@yahoo.com wrote: From: michael rice nowg...@yahoo.com Subject: Re: [Haskell-cafe] Cabal/primes To: brian bri...@aracnet.com Cc: haskell-cafe@haskell.org Date: Wednesday, June 3, 2009, 3:46 PM This is working differently than it did last night, when at least import was working

Re: [Haskell-cafe] Cabal/primes

2009-06-03 Thread Don Stewart
nowgate: Got it working. I downloaded two packages, primes and Numbers. Since Numbers has the three functions I want to use, primes, isPrime and isProbablyPrime, how do I uninstall the primes package so there won't be a conflict? Easy! $ ghc-pkg unregister primes -- Don

Re: [Haskell-cafe] Cabal/primes

2009-06-03 Thread michael rice
Excellent! Thanks. Michael --- On Wed, 6/3/09, Don Stewart d...@galois.com wrote: From: Don Stewart d...@galois.com Subject: Re: [Haskell-cafe] Cabal/primes To: michael rice nowg...@yahoo.com Cc: brian bri...@aracnet.com, haskell-cafe@haskell.org Date: Wednesday, June 3, 2009, 6:40 PM nowgate

[Haskell-cafe] Cabal/primes

2009-06-02 Thread michael rice
Finally got adventurous enough to get Cabal working, downloaded the primes package, and got the following error message when trying isPrime. Am I missing something here? Michael == [mich...@localhost ~]$ ghci GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help

Re: [Haskell-cafe] Cabal/primes

2009-06-02 Thread Bertram Felgenhauer
michael rice wrote: Finally got adventurous enough to get Cabal working, downloaded the primes package, and got the following error message when trying isPrime. Am I missing something here? The Data.Numbers.Primes module of the primes package does not implement 'isPrime'. The Numbers package

[Haskell-cafe] cabal option to specify the ghc version?

2009-05-27 Thread Johannes Waldmann
Hi. How can I tell cabal (= the executable from cabal-install) to use a specific ghc version (and not the one that's currently linked to ghc)? - Thanks, J.W. signature.asc Description: OpenPGP digital signature ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] cabal option to specify the ghc version?

2009-05-27 Thread David Menendez
On Wed, May 27, 2009 at 5:25 PM, Johannes Waldmann waldm...@imn.htwk-leipzig.de wrote: Hi. How can I tell cabal (= the executable from cabal-install) to use a specific ghc version (and not the one that's currently linked to ghc)? - Thanks, J.W. According to

Re: [Haskell-cafe] cabal option to specify the ghc version?

2009-05-27 Thread Henning Thielemann
On Wed, 27 May 2009, Johannes Waldmann wrote: Hi. How can I tell cabal (= the executable from cabal-install) to use a specific ghc version (and not the one that's currently linked to ghc)? - Thanks, J.W. cabal install --with-compiler=/usr/local/lib/ghc-6.4.2/whatknowi

Re: [Haskell-cafe] Cabal, Time GHC 6.10.2

2009-05-24 Thread Dominic Steinitz
Duncan Coutts wrote: On Sun, 2009-05-17 at 09:17 +0100, Dominic Steinitz wrote: I get d...@linux-6ofq:~/asn1 runghc Setup.hs configure Configuring PER-0.0.20... Setup.hs: At least the following dependencies are missing: time -any -any but I have time d...@linux-6ofq:~/asn1 ghc-pkg list

Re: [Haskell-cafe] Cabal, Time GHC 6.10.2

2009-05-24 Thread Duncan Coutts
On Sun, 2009-05-24 at 12:04 +0100, Dominic Steinitz wrote: I'll add this issue to the FAQ, it come up enough. If anyone else reading would like to eliminate this FAQ, then implementing this ticket is the answer: suggest use of --user if configure fails with missing deps that

[Haskell-cafe] Cabal, Time GHC 6.10.2

2009-05-17 Thread Dominic Steinitz
I get d...@linux-6ofq:~/asn1 runghc Setup.hs configure Configuring PER-0.0.20... Setup.hs: At least the following dependencies are missing: time -any -any but I have time d...@linux-6ofq:~/asn1 ghc-pkg list | grep time old-locale-1.0.0.1, old-time-1.0.0.2, packedstring-0.1.0.1,

Re: [Haskell-cafe] Cabal, Time GHC 6.10.2

2009-05-17 Thread Duncan Coutts
On Sun, 2009-05-17 at 09:17 +0100, Dominic Steinitz wrote: I get d...@linux-6ofq:~/asn1 runghc Setup.hs configure Configuring PER-0.0.20... Setup.hs: At least the following dependencies are missing: time -any -any but I have time d...@linux-6ofq:~/asn1 ghc-pkg list | grep time

Re: [Haskell-cafe] cabal parse problems

2009-05-09 Thread Duncan Coutts
On Wed, 2009-05-06 at 19:37 -0500, Vasili I. Galchin wrote: are them some CLI switches I can enable in order to better determine what parse error is?? The problem is that we're using a parser that has no support for producing parse errors (Text.ParserCombinators.ReadP). The only reason we're

Re: [Haskell-cafe] cabal parse problems

2009-05-09 Thread Vasili I. Galchin
Thanks .. very interesting on the cabal parsers. I somehow got around my problem ... forgot how though. Vasili On Sat, May 9, 2009 at 10:48 AM, Duncan Coutts duncan.cou...@worc.ox.ac.ukwrote: On Wed, 2009-05-06 at 19:37 -0500, Vasili I. Galchin wrote: are them some CLI switches I can enable

[Haskell-cafe] cabal parse problems

2009-05-06 Thread Vasili I. Galchin
Hello, I am trying to cabalize a package (swish .. semantic web) but am running into parse error: vigalc...@ubuntu:~/FTP/Haskell/Swish-0.2.1$ runhaskell Setup.hs configure Setup.hs: swish.cabal:24: Parse of field 'exposed-modules' failed. vigalc...@ubuntu:~/FTP/Haskell/Swish-0.2.1$ Below:

Re: [Haskell-cafe] cabal parse problems

2009-05-06 Thread Vasili I. Galchin
sorrily nope, Brian ... Vasili On Wed, May 6, 2009 at 6:06 PM, br...@lorf.org wrote: On Wednesday, 06.05.09 at 18:05, Vasili I. Galchin wrote: Exposed-modules: Swish.HaskellRDF.BuiltInDatatypes, ... Swish.HaskellRDF.GraphMatch, Think it probably doesn't like

Re: [Haskell-cafe] cabal parse problems

2009-05-06 Thread Daniel Fischer
Am Donnerstag 07 Mai 2009 01:05:40 schrieb Vasili I. Galchin: Hello, I am trying to cabalize a package (swish .. semantic web) but am running into parse error: vigalc...@ubuntu:~/FTP/Haskell/Swish-0.2.1$ runhaskell Setup.hs configure Setup.hs: swish.cabal:24: Parse of field

Re: [Haskell-cafe] cabal parse problems

2009-05-06 Thread Vasili I. Galchin
are them some CLI switches I can enable in order to better determine what parse error is?? Kind regards, Vasili On Wed, May 6, 2009 at 6:12 PM, Vasili I. Galchin vigalc...@gmail.comwrote: sorrily nope, Brian ... Vasili On Wed, May 6, 2009 at 6:06 PM, br...@lorf.org wrote: On Wednesday,

Re: [Haskell-cafe] cabal parse problems

2009-05-06 Thread Vasili I. Galchin
I figured out myself ... even though the parse was allegedly was on line #24 .. it was below because I used as a separator '/' instead of '.'! Kind regards, Vasili On Wed, May 6, 2009 at 7:37 PM, Vasili I. Galchin vigalc...@gmail.comwrote: are them some CLI switches I can enable in order to

Re: [Haskell-cafe] Cabal and WinHugs

2009-04-16 Thread Duncan Coutts
On Sun, 2009-04-12 at 20:02 -0700, Iavor Diatchki wrote: Hello, What is the preferred way to install a cabal package so that it works with winhugs? When I tried cabal install --user --hugs I got an error that it could not find hugsffi. I managed to get things working by manually downloading

[Haskell-cafe] cabal install vs. profiling

2009-04-15 Thread David F. Place
Hi, Suppose I have installed a number of libraries and have written a program using them. Now, I want to profile my program. What is the best way to get the profiling versions of the libraries installed? Thanks, David ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] cabal install vs. profiling

2009-04-15 Thread Gwern Branwen
On Wed, Apr 15, 2009 at 11:21 AM, David F. Place d...@vidplace.com wrote: Hi, Suppose I have installed a number of libraries and have written a program using them.  Now, I want to profile my program.  What is the best way to get the profiling versions of the libraries installed? Thanks, David

[Haskell-cafe] cabal haddock and Paths_Xxx

2009-04-06 Thread Martijn van Steenbergen
Hello, cabal generates a Paths_Xxx file for me which I import and use, but cabal haddock doesn't seem to like it much. If I don't specify the generated module at all in my cabal file, cabal haddock generates visible documentation for the module, which is not what I want: the module should

[Haskell-cafe] cabal build on mac os 10.5.6 , can't find gmp

2009-04-05 Thread brian
Hi, Cabal won't build zlib because it can't find libgmp. It's there, in /sw/lib (fink installation). I've modified the bootstrap script and added -L/sw/lib to the ghc options. This is a mystery in itself because ghc is itself a fink package and should know where gmp is, so that's already

[Haskell-cafe] Cabal properties with conditionals

2009-03-21 Thread Manlio Perillo
Hi. Assuming this configuration fragment: library xxx cc-options: -Wall if flag(HAVE_URANDOM) cc-options:-DHAVE_URANDOM In case the HAVE_URANDOM flag is defined, what will be the value of the used cc-options? 1) -DHAHE_URANDOM 2) -Wall -DHAHE_URANDOM Thanks

Re: [Haskell-cafe] Cabal properties with conditionals

2009-03-21 Thread Duncan Coutts
On Sat, 2009-03-21 at 14:26 +0100, Manlio Perillo wrote: Hi. Assuming this configuration fragment: library xxx cc-options: -Wall if flag(HAVE_URANDOM) cc-options:-DHAVE_URANDOM In case the HAVE_URANDOM flag is defined, what will be the value of the

Re: [Haskell-cafe] Cabal properties with conditionals

2009-03-21 Thread Manlio Perillo
Duncan Coutts ha scritto: On Sat, 2009-03-21 at 14:26 +0100, Manlio Perillo wrote: Hi. Assuming this configuration fragment: library xxx cc-options: -Wall if flag(HAVE_URANDOM) cc-options:-DHAVE_URANDOM In case the HAVE_URANDOM flag is defined, what will be

Re: [Haskell-cafe] Cabal properties with conditionals

2009-03-21 Thread Duncan Coutts
On Sat, 2009-03-21 at 23:05 +0100, Manlio Perillo wrote: P.S: I tried to send an email to cabal-devel some days ago, with a feature I would like to see in Cabal. But the mail was never posted to the mailing list. Is that list moderated? It's subscriber only, like all the haskell.org mailing

Re: [Haskell-cafe] Cabal properties with conditionals

2009-03-21 Thread Manlio Perillo
Duncan Coutts ha scritto: On Sat, 2009-03-21 at 23:05 +0100, Manlio Perillo wrote: P.S: I tried to send an email to cabal-devel some days ago, with a feature I would like to see in Cabal. But the mail was never posted to the mailing list. Is that list moderated? It's subscriber only, like

Re: [Haskell-cafe] Cabal properties with conditionals

2009-03-21 Thread Duncan Coutts
On Sun, 2009-03-22 at 01:03 +0100, Manlio Perillo wrote: Duncan Coutts ha scritto: On Sat, 2009-03-21 at 23:05 +0100, Manlio Perillo wrote: P.S: I tried to send an email to cabal-devel some days ago, with a feature I would like to see in Cabal. But the mail was never posted to the

[Haskell-cafe] Cabal and package changelog

2009-03-08 Thread Manlio Perillo
Hi. The Cabal package description includes a property `license-file`. This property may be used by Hackage to provide a link to the license file. However I would like to have a `changelog-file`, too. So that from Hackage I can quickly check what's changed with the new version of a package.

Re: [Haskell-cafe] cabal-install 0.6.2 does not bootstrap with ghc-6.10.1 debian distribution

2009-03-08 Thread Duncan Coutts
On Sat, 2009-03-07 at 17:51 -0800, Ahn, Ki Yung wrote: Dear Haskellers and especially who are working on cabal-install and debian packaging, I sometimes clean up .ghc and .cabal in my home directory to start from scratch because of dependency loopholes (cabal-install does not have remove

Re: [Haskell-cafe] cabal-install 0.6.2 does not bootstrap with ghc-6.10.1 debian distribution

2009-03-08 Thread Jochem Berndsen
Ahn, Ki Yung wrote: If anyone who are not using debian distribution ghc-6.10.1 (e.g., general linux binary ghc-6.10.1 or source compiled one) can try bootstrapping cabal-install 0.6.2 from scratch also finds the same problem, I think someone should make a ticket for cabal-install. I remember

Re: [Haskell-cafe] Cabal and package changelog

2009-03-08 Thread Gwern Branwen
On Sun, Mar 8, 2009 at 7:13 AM, Manlio Perillo manlio_peri...@libero.it wrote: Hi. The Cabal package description includes a property `license-file`. This property may be used by Hackage to provide a link to the license file. However I would like to have a `changelog-file`, too. So that from

Re: [Haskell-cafe] Cabal and package changelog

2009-03-08 Thread Duncan Coutts
On Sun, 2009-03-08 at 10:00 -0400, Gwern Branwen wrote: On Sun, Mar 8, 2009 at 7:13 AM, Manlio Perillo manlio_peri...@libero.it wrote: Hi. The Cabal package description includes a property `license-file`. This property may be used by Hackage to provide a link to the license file.

Re: [Haskell-cafe] Cabal and package changelog

2009-03-08 Thread Manlio Perillo
Duncan Coutts ha scritto: On Sun, 2009-03-08 at 10:00 -0400, Gwern Branwen wrote: On Sun, Mar 8, 2009 at 7:13 AM, Manlio Perillo manlio_peri...@libero.it wrote: Hi. The Cabal package description includes a property `license-file`. This property may be used by Hackage to provide a link to the

Re: [Haskell-cafe] cabal-install 0.6.2 does not bootstrap with ghc-6.10.1 debian distribution

2009-03-08 Thread Ahn, Ki Yung
Duncan Coutts 쓴 글: On Sat, 2009-03-07 at 17:51 -0800, Ahn, Ki Yung wrote: Dear Haskellers and especially who are working on cabal-install and debian packaging, I sometimes clean up .ghc and .cabal in my home directory to start from scratch because of dependency loopholes (cabal-install does

Re: [Haskell-cafe] cabal-install 0.6.2 does not bootstrap with ghc-6.10.1 debian distribution

2009-03-08 Thread Duncan Coutts
On Sun, 2009-03-08 at 15:33 -0700, Ahn, Ki Yung wrote: I am using Debian unstable. The version of GHC debian package is 6.10.1+dfsg1-13, and installed Haskell libraries (debian packages) are: kya...@kyavaio:~$ ghc-pkg list /usr/lib/ghc-6.10.1/./package.conf: packedstring-0.1.0.1,

Re: [Haskell-cafe] Cabal and package changelog

2009-03-08 Thread wren ng thornton
Manlio Perillo wrote: Duncan Coutts ha scritto: On Sun, 2009-03-08 at 10:00 -0400, Gwern Branwen wrote: http://hackage.haskell.org/trac/hackage/ticket/244 http://hackage.haskell.org/trac/hackage/ticket/299 Thanks Gwern. Yes, we're looking for a volunteer to work on implementing this.

[Haskell-cafe] cabal-install 0.6.2 does not bootstrap with ghc-6.10.1 debian distribution

2009-03-07 Thread Ahn, Ki Yung
Dear Haskellers and especially who are working on cabal-install and debian packaging, I sometimes clean up .ghc and .cabal in my home directory to start from scratch because of dependency loopholes (cabal-install does not have remove option yet, so it's hard to fix when such loophole happens).

Re: [Haskell-cafe] Cabal and `main-is` field

2009-03-02 Thread Denis Bueno
On Sun, Mar 1, 2009 at 11:56, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: That's because it's a bug, not a feature. :-) Be careful of using this feature as we might fix it. I've wished for this feature, and have Cabal files right now that would be cleaner with it. Is there something

Re: [Haskell-cafe] Cabal and `main-is` field

2009-03-02 Thread Duncan Coutts
On Mon, 2009-03-02 at 07:15 -0700, Denis Bueno wrote: On Sun, Mar 1, 2009 at 11:56, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: That's because it's a bug, not a feature. :-) Be careful of using this feature as we might fix it. I've wished for this feature, and have Cabal files

[Haskell-cafe] Cabal and `main-is` field

2009-03-01 Thread Manlio Perillo
Hi. I have started to use Cabal for a small project where I have to build several executables. The project layout is something like this: / bin/ a.hs b.hs src/ X.hs Y.hs The Cabal configuration file is something like: executable a build-depends: haskell98, base,

Re: [Haskell-cafe] Cabal and `main-is` field

2009-03-01 Thread Gwern Branwen
On Sun, Mar 1, 2009 at 10:45 AM, Manlio Perillo manlio_peri...@libero.it wrote: Hi. ... One last thing: is it possible to define macros in Cabal? In my package, I have n executables, that have many dependencies in common. I would like to avoid having to repeat the same dependencies for each

Re: [Haskell-cafe] Cabal and `main-is` field

2009-03-01 Thread Manlio Perillo
Gwern Branwen ha scritto: [...] You can hoist the common build-depends out of the executable stanzas. ie. from xmonad-utils.cabal: build-depends: base4, X11=1.3, ghc=6.8, unix, random=1.0 ... executable: hxsel main-is:Hxsel.hs hs-source-dirs: src ghc-options:

Re: [Haskell-cafe] Cabal and `main-is` field

2009-03-01 Thread Gwern Branwen
On Sun, Mar 1, 2009 at 12:10 PM, Manlio Perillo manlio_peri...@libero.it wrote: Gwern Branwen ha scritto: [...] You can hoist the common build-depends out of the executable stanzas. ie. from xmonad-utils.cabal: build-depends:      base4, X11=1.3, ghc=6.8, unix, random=1.0 ... executable:    

Re: [Haskell-cafe] Cabal and `main-is` field

2009-03-01 Thread Duncan Coutts
On Sun, 2009-03-01 at 18:10 +0100, Manlio Perillo wrote: Gwern Branwen ha scritto: [...] You can hoist the common build-depends out of the executable stanzas. ie. from xmonad-utils.cabal: build-depends: base4, X11=1.3, ghc=6.8, unix, random=1.0 ... executable:

Re: [Haskell-cafe] Cabal and `main-is` field

2009-03-01 Thread Manlio Perillo
Duncan Coutts ha scritto: [...] Notice that though hxput and hxsel need the packages in the top-level build-depends, they don't need to declare it. Thanks. From documentation it was not clear this feature. That's because it's a bug, not a feature. :-) Be careful of using this feature

[Haskell-cafe] Cabal package bug?

2009-02-26 Thread jpaulo
hello all, I've used cabal to install package haskell-src-1.0.1.3 under ghc 6.10.1; Apparently, it worked fine! However, function parseModule has been given the type: parseModule :: String - ParseResult haskell-src-1.0.1.3:Language.Haskell.Syntax.HsModule instead of simply parseModule

[Haskell-cafe] Cabal haskell-src-1.0.1.3 package bug?

2009-02-26 Thread jpaulo
[now with the name of the package on subject; appologies for multiple emails] hello all, I've used cabal to install package haskell-src-1.0.1.3 under ghc 6.10.1; Apparently, it worked fine! However, function parseModule has been given the type: parseModule :: String - ParseResult

Re: [Haskell-cafe] Cabal package bug?

2009-02-26 Thread Duncan Coutts
On Thu, 2009-02-26 at 08:00 +, jpa...@di.uminho.pt wrote: hello all, I've used cabal to install package haskell-src-1.0.1.3 under ghc 6.10.1; Apparently, it worked fine! However, function parseModule has been given the type: parseModule :: String - ParseResult

Re: [Haskell-cafe] Cabal: local documentation

2009-02-25 Thread Martijn van Steenbergen
Duncan Coutts wrote: On Tue, 2009-02-24 at 17:42 +0100, Svein Ove Aas wrote: 2009/2/24 Felipe Lessa felipe.le...@gmail.com: Just pass '--enable-documentation' to 'cabal install'. On *nix they're generated at ~/.cabal/share/doc. Or edit ~/.cabal/config and set the documentation key to True

[Haskell-cafe] cabal install profiling and documentation

2009-02-25 Thread Ben
i've gone and cabal installed a lot of packages, but now i want to go back and install their profiling libraries and documentation. is there an easy way of doing this, short of reinstalling all of them (in the proper dependency order)? ben ___

[Haskell-cafe] Cabal: local documentation

2009-02-24 Thread Martijn van Steenbergen
Hello, Can cabal automatically generate local documentation for packages I install? It'd be awesome if it generated a page like [1] for locally installed packages. Thanks, Martijn. [1] http://www.haskell.org/ghc/dist/current/docs/libraries/ ___

Re: [Haskell-cafe] Cabal: local documentation

2009-02-24 Thread Felipe Lessa
Just pass '--enable-documentation' to 'cabal install'. On *nix they're generated at ~/.cabal/share/doc. HTH, -- Felipe. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Cabal: local documentation

2009-02-24 Thread Svein Ove Aas
2009/2/24 Felipe Lessa felipe.le...@gmail.com: Just pass '--enable-documentation' to 'cabal install'. On *nix they're generated at ~/.cabal/share/doc. Or edit ~/.cabal/config and set the documentation key to True ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Cabal: local documentation

2009-02-24 Thread Duncan Coutts
On Tue, 2009-02-24 at 17:42 +0100, Svein Ove Aas wrote: 2009/2/24 Felipe Lessa felipe.le...@gmail.com: Just pass '--enable-documentation' to 'cabal install'. On *nix they're generated at ~/.cabal/share/doc. Or edit ~/.cabal/config and set the documentation key to True However this does

Re: [Haskell-cafe] Cabal and more than one version

2009-02-03 Thread Sean Leather
Presumably the template-haskell-2.3 package does not build with ghc-6.8 but fails to correctly specify the version of base or ghc that it requires. If it did then we would have a better chance to get this right. Yes, this is certainly an issue in general with template-haskell-2.3. How do we

Re: [Haskell-cafe] Cabal and more than one version

2009-02-03 Thread Duncan Coutts
On Tue, 2009-02-03 at 10:38 +0100, Sean Leather wrote: Presumably the template-haskell-2.3 package does not build with ghc-6.8 but fails to correctly specify the version of base or ghc that it requires. If it did then we would have a better chance to

Re: [Haskell-cafe] Cabal and more than one version

2009-02-02 Thread Sean Leather
Hi, I'm bringing up an old thread, because it's very relevant to my problem. On Tue, Nov 18, 2008 at 22:30, Duncan Coutts wrote: On Tue, 2008-11-18 at 01:48 -0800, Jason Dusek wrote: I'd like to be able to do something like: if (template-haskell 2.3) cpp-options: -D

Re: [Haskell-cafe] cabal list can't find Glob.cabal file?

2009-02-02 Thread Dougal Stanton
On Mon, Feb 2, 2009 at 12:01 AM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: The solution is to upgrade: $ cabal install cabal-install $ cabal --version cabal-install version 0.6.0 using version 1.6.0.1 of the Cabal library Yes, this was the problem, despite me upgrading

Re: [Haskell-cafe] Cabal and more than one version

2009-02-02 Thread Duncan Coutts
On Mon, 2009-02-02 at 13:18 +0100, Sean Leather wrote: Either I'm doing something wrong or this doesn't work for cabal-install and GHC 6.8.3. I used the flag newer-th approach in EMGM: https://svn.cs.uu.nl:12443/viewvc/dgp-haskell/EMGM/tags/emgm-0.2/emgm.cabal?view=markup [...] flag

[Haskell-cafe] cabal list can't find Glob.cabal file?

2009-02-01 Thread Dougal Stanton
I get a curious message when trying to run 'cabal list': $ cabal list omit some lines... .. Latest version available: 0.3 Category: Network Synopsis: Pure bindings for the MaxMind IP database. License: OtherLicense cabal: Couldn't

Re: [Haskell-cafe] cabal list can't find Glob.cabal file?

2009-02-01 Thread Duncan Coutts
On Sun, 2009-02-01 at 23:04 +, Dougal Stanton wrote: I get a curious message when trying to run 'cabal list': $ cabal list omit some lines... .. Latest version available: 0.3 Category: Network Synopsis: Pure bindings for the

Re: [Haskell-cafe] Cabal dependencies

2009-01-20 Thread Duncan Coutts
On Thu, 2009-01-15 at 18:38 -0500, Stephen Hicks wrote: Hi, I'm having some difficulty specifying dependencies in my .cabal file for a package I'm looking to upload to hackage soon. The difficulty is as follows. I basically want to specify parsec (= 2.1 3.0.0) || ( 3.0.0 4) When we

[Haskell-cafe] Cabal dependencies

2009-01-15 Thread Stephen Hicks
Hi, I'm having some difficulty specifying dependencies in my .cabal file for a package I'm looking to upload to hackage soon. The difficulty is as follows. I basically want to specify parsec (= 2.1 3.0.0) || ( 3.0.0 4) The problem is that 3.0.0 as it exists on hackage is missing a

<    2   3   4   5   6   7   8   9   10   >