Re: The case for tweaking .cabal files of existing uploaded packages

2010-05-29 Thread Marc Weber
to be too lax or too tight. +1 from me. To give you an idea what I had to patch in the past: http://github.com/MarcWeber/haskell-nix-overlay/tree/master/patches/ Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

bad lines ignored and no warning?

2010-01-03 Thread Marc Weber
Today I spend quite a while figuring out why I could install base<4 while using flag base4. The reason was that I forgot to add the label build-depends: when patching. If those lines are ignored shouldn't there be a warning? Marc Weber name:QuickCheck version:1.2.0.0 license:BSD3

Repo-Types - Awesome !

2009-11-28 Thread Marc Weber
adding it! Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

Can I also specify options only once?

2008-10-08 Thread Marc Weber
On Wed, Oct 08, 2008 at 12:37:08PM +0100, allan wrote: > Hi Marc > > Yes this is possible using the 'Buildable' field. > > executable webinterface > build-depends: cgi, xhtml > Main-is: web/yyyWebInterface.hs > Extensions: PatternGuards ScopedTypeVariables > Ghc-options

enabling / disabling executables by flags?

2008-10-08 Thread Marc Weber
Hi, Can I enable/ disable executable by flags ? eg this way: = === Name:x category:web application version: 0.0.1 Cabal-Version: >=1.2 build-type: Simple LICENSE: GPL extensions: CPP cp

Re: proptotype of make style dep stuff

2008-08-24 Thread Marc Weber
> I've also wondered if the command line UI could be completely separated, > though that could make bootstrapping too hard. You could distribute a "bootstrapping" version of cabal shipping with the command line UI as hidden modules. If you build cabal later on you could just shipt without the file

Re: [Hackage] #214: Package security

2008-05-21 Thread Marc Weber
as malicious .. Of course the package might become malicious only on Monday or after 9.11.2011 etc.. but obvious packages which would hurt hundreds of people could be catched this way easily. All we would need is a build system. Of course we can't do anything about this only no Monday p

A (in)sane idea about (never) breaking Setup.(l)hs files again

2008-05-06 Thread Marc Weber
flying around. You can't forget about all trouble.. just about some incompatibilies. Any thoughts? Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

Re: cabal-install uninstall ?

2008-05-06 Thread Marc Weber
ckageInfo] ) <- fmap read $ myReadFile Creating a map sorted by names without versions and then listing/ removing old duplicates should be trivial. I've never really worked on a mac.. So maybe this all doesn't apply to you. Sincerly Marc Weber __

What about showing chosen flags by default?

2008-03-26 Thread Marc Weber
I'm using ./setup configure && ./setup build very often and hope that it just works (which it really does most of the time :) However sometimes it might be interesting to know which flags are chosen.. Do you think it would be useful to show the chosen flags by default (not only when using -v3) ? I

hackage google etc

2008-03-19 Thread Marc Weber
ckage name (version 0.3) _LATEST_ ... Other versions : 0.2 0.4 is easiest to spot ? Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

Re: takusen -> cabal -> ArgDescr (2) - my journey + suggestion

2008-03-12 Thread Marc Weber
bal. But it's good to know how it can / should be done in the future. Sincerly Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

Re: takusen -> cabal - some thoughts again

2008-03-11 Thread Marc Weber
ering about default values and how things are used internally within Cabal. (I mean wether and when defaultConfigFlags is actually used so it's safe to use .. you know this already from my privious post :) I don't want to break things.. I only want tell you about my thoughts.

Re: takusen -> cabal -> ArgDescr (2) - my journey + suggestion

2008-03-10 Thread Marc Weber
> It's used in cabal-install; http://darcs.haskell.org/cabal-install > I can agree the flag business seems confusing at first. so adding simple comments is the best choice then :) Thanks Marc ___ cabal-devel mailing list cabal-devel@haskell.org http:/

takusen -> cabal -> ArgDescr (2) - my journey + suggestion

2008-03-10 Thread Marc Weber
en if you haven't specified the arg? c) maybe do b) but keep raw args somehow to print them again instead of printing -v unless -v is given? Sincerly Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

Re: [Hackage] #207: Jumping to code every and anywhere: What about installing source files and a tag file along with haddock and lib files ?

2008-01-13 Thread Marc Weber
On Mon, Jan 14, 2008 at 01:50:15AM +0100, Marc Weber wrote: > Discussion moved to the haskell mailinglist. Sorry for this inconvinience. I think haskell-cafe is the better choice right now Marc ___ cabal-devel mailing list cabal-devel@haskell.org h

Re: [Hackage] #207: Jumping to code every and anywhere: What about installing source files and a tag file along with haddock and lib files ?

2008-01-13 Thread Marc Weber
Discussion moved to the haskell mailinglist. I'll try keeping the Trac page up to date by adding summaries Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

Why is --gen-script creating failing scripts?

2007-08-21 Thread Marc Weber
I've been using the recent cabal from ghc-6.7.20070814 register.sh [...] haddock-html: /pr/store/5wivrfz8pmc7hpwqgxgz44i4ihf1ka09-ghc67_filepath-1.0/nix-support/share/filepath-1.0/doc/html/filepath' | /pr/store/khvbwb3whj1c15pg7jrh7w4v2vndr8i7-ghc-6.7.20070814/bin/ghc-pkg update dist/installed

Re: weired exception ?

2007-08-11 Thread Marc Weber
there too) when the trouble appears again. Thanks for digging up the bug report Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

weired exception ?

2007-08-11 Thread Marc Weber
when invoking runhaskell setup.hs copy I'm getting *** Exception: waitForProcess: does not exist (No child processes) When using ghc -make setup; ./setup ... the problem doesn't appear. Any idea what might causing this. Using runhaskell is much faster then compiling setup. When I have more

Proposed download version ? 0.0 better than 0.1?

2007-07-23 Thread Marc Weber
I don't know the internals of hackage very well, but I think the most up to date version should be shown first? Example where its not the case: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/TypeCompose-0.0 Marc Weber ___ cabal-

Re: new target ./setup plain_source?

2007-07-22 Thread Marc Weber
> Sounds very cool. *However* the output will not be portable, It dasen't have to be portable. That's why you have your source distribution.tar.gz or darcs repa.. I just want a bunch of files which I can feed intto haddock or any other developement tool (tag generation etc).. If you need to ref

new target ./setup plain_source?

2007-07-20 Thread Marc Weber
ovide compiler independent completion etc? eg ./setup haddock on haddock sources itself fails on line #if defined(mingw32_HOST_OS) ... What do you think? Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/lis

CMod Cint ? Some broken packages

2007-07-10 Thread Marc Weber
; log-hackage-unix-2.0:Couldn't match expected type `CInt' against inferred type `CMode' log-hackage-vty-3.0.0:Couldn't match expected type `CInt' against inferred type `CMode' log-hackage-xmobar-0.5:Couldn't match expected t

packages assigned more than one category / intentionally?

2007-07-10 Thread Marc Weber
The following packages are listed more than once: "Crypto" "GuiTV" "TypeCompose" "Win32" "binary" "polyparse" That's not by accident, is it? ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

Haddock support / tell ./setup where to find documentation of dependencies

2007-07-10 Thread Marc Weber
I'm packaging all hackage packages for nix. I've already compiled 102 packages succesfully. Is there a simple way to do a ./setup haddock --dirs-containing-dep-docs=path1;path2;path3;path4 .. --install-to $out/haddock ? If not who is working on haddock stuff right now? Marc

Does hjs depend on regex-base ?

2007-07-08 Thread Marc Weber
if you find regex-compat, right? Is this intentionally? Mmmh This means I must iterate over the whole dependency tree to collect them all. Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

discussion: package naming convention / force only lower case by warning?

2007-07-08 Thread Marc Weber
uld we add a warning when uploading packages to hackage? or when building with cabal? Then this problem would be banned ;) I think it won't harm anyone but prevent some issues. Thus it's a good thing. Marc Weber ___ cabal-devel mailing list c

Re: Need a username for Hackage

2007-07-08 Thread Marc Weber
y versions with that name as well (Long before it has been uploaded to hackage).. But it might be the case that just I had given it this name. I've tried installing hpodder some days ago. That's why I was faced this problem more frequently ;) Marc Weber _

Need a username for Hackage

2007-07-08 Thread Marc Weber
Hi Ross. (CC cabal-devel) I'm adding all packages from hackage to the nix distribution system. However I'v noticed some small issues. (eg Renaming FilePath -> filepath) Should I fix the issues in nix only or should I fix the packages on hackage? If so I would need an account on h

Re: setting up a chroot jail

2007-06-13 Thread Marc Weber
would be overkill but would work fine.. Sorry. I have no experience with that. The t2-project.org does have somehting simlar as well (don't know which kind though) Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/ma

Re: Parsec as a Dependency?

2007-06-11 Thread Marc Weber
> works with any token type tok. Sorry. You are right. You can customize the error position depending on token type. Eg when parsing command line arguments tracking a line number doesn't make sense. Some time has passed since having done this .. ;( Marc

Re: Parsec as a Dependency?

2007-06-11 Thread Marc Weber
cause a big speed penalty? http://mawercer.de/marcweber/haskell/darcs/fparsec/ I've used this to create an experimental command line parser which works fine. Marc Weber ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailma

Re: copy / register / --gen-script and --destdir

2007-06-04 Thread Marc Weber
> The --destdir is like automake's "make install DESTDIR=$TMP/blah" > feature. But using configure --prefix should change what register > --gen-script produces, so if that's not happening then it's a bug I > think. Perhaps I should tell you what I am about to do. I want to register some cabal pack

copy / register / --gen-script and --destdir

2007-06-03 Thread Marc Weber
I can use ./setup copy --destdir to copy all hi files etc to some directory. But how do I register it then? Setting --prefix when using configure does'nt seem to adjust the register.sh using --gen-script I just can't add --destdir. What am I missing? Marc

Re: Why is there a cabal file at all?

2007-03-12 Thread Marc Weber
On Mon, Mar 12, 2007 at 05:43:00AM +, Ashish Hanwadikar wrote: > Marc Weber gmx.de> writes: > > addDependencies = case stringOption "pretty_print_lib" of > > > > This should use the correct dependency if the option has already been set by > > cmd

Re: Why is there a cabal file at all?

2007-01-13 Thread Marc Weber
> Visual Haskell, HackageDB, cabal2rpm, and dh_haskell are all tools > that read the .cabal file and perform operations based on the package > metadata. In which information are they particularely interested? Am I right that they the main goal is getting to know which are the source files and wh

Re: Why is there a cabal file at all?

2007-01-13 Thread Marc Weber
> 2) Can you get rooted getting the license out of an application. > Cabal, no, Haskell yes. I'm not sure wether I get this sentence right. What do you mean by "getting rooted" ? Marc ___ cabal-devel mailing list cabal-devel@haskell.org http://www.haskel

Re: Why is there a cabal file at all?

2007-01-12 Thread Marc Weber
> >> Remember: Cabal isn't only the build infrastructure, it's also the > >> metadata format that tools like Hackage use. If you decide to combine data > >> and code, you will no longer be able to manipulate the data with another > >> tool. > Visual Haskell, HackageDB, cabal2rpm, and dh_haskell are

Re: Why is there a cabal file at all? - DSEL

2007-01-12 Thread Marc Weber
On Fri, Jan 12, 2007 at 01:23:37PM -0800, Conal Elliott wrote: >Hi Marc. >See Paul Hudak's [1]position paper on DSELs, where you'll find >definition, motivation & examples. See also [2]Peter Landin's "Next >700" paper. If you have questions, please ask! >BTW, I hear both "EDSL

Yet another difficult project to package

2007-01-11 Thread Marc Weber
http://www.haskell.org/pipermail/glasgow-haskell-users/2007-January/011854.html This mail posted to glasgow-haskell-users by Samuel has been forwarded to [EMAIL PROTECTED] by Simon Peyton Jones as well Cheers Marc ___ cabal-devel mailing list cabal-deve

Re: Why is there a cabal file at all?

2007-01-10 Thread Marc Weber
On Wed, Jan 10, 2007 at 06:53:43AM -0800, Isaac Jones wrote: > The original design of Cabal was more like Marc suggests. There was > only the Setup file and no .cabal file, and my hope was that we'd > build an EDSL for package configurations. Original cabal code would > probably look like: > > m

Re: Why is there a cabal file at all?

2007-01-10 Thread Marc Weber
On Tue, Jan 09, 2007 at 07:41:57PM -0800, Conal Elliott wrote: >Marc points out that the expressiveness of the Cabal language is >insufficient for some packages, and a DSEL would be more expressive. Sorry, I've never heard abaut DSEL yet. I still feel like beening a total beginner.. ;) But

Re: Why is there a cabal file at all?

2007-01-10 Thread Marc Weber
On Wed, Jan 10, 2007 at 01:39:08AM +, Neil Mitchell wrote: > Hi Marc, > > [Snip] > > >Any ideas, comments? > > > >Anyone out there who wants to join and help implementing this idea? > > I'd ask why there is a Setup.hs file at all, a nice textual > declarative form seems much more sensible.

Why is there a cabal file at all?

2007-01-09 Thread Marc Weber
ld" sourceDir "src" $ mainIs "HelloWorld.hs" addDependencies = case stringOption "pretty_print_lib" of "A" : [LibVersionRange "A" "1.0 - 2.0"] "B" : [LibVersionRange "B" "1.0 - 2.0"] pac

debugging support - multidimensional package selection - excursion

2007-01-06 Thread Marc Weber
If we want to add debugging support consider a packagetree like this: a - b ( depends on b and c, c on d and e) | + - c - d | + - e its obvious if I want to have a profiling lib a I need b..e compiled with -prof, too But if I want to build it with debugging messages what about b,c,d,e

security/ experimental packages? authorization uncomon source locations, hackage db?

2007-01-06 Thread Marc Weber
I've read the discussion about who is able to upload packages.. This is nice if you want to install most common packages.. But the packaging system is intended to save time. Thus what about I want to install an experimntal synthesizer which uses an experimental haskore interface from a person who

where more info? comments on previous posts

2007-01-06 Thread Marc Weber
Isaac showed me the Wiki. But I'm missing some pages discussing how hackage and tools should look like or pages which summarize decisions having be made on this list.. I think this missing because everything is in an early developement stage, right? What about adding some pages with summaries ? t

Patch using multiple preprocessors ...

2006-12-28 Thread Marc Weber
> -- = moduleToPossiblePaths searchP s' suffs > > -- -- |Like 'moduleToFilePath', but return the location and the rest of > -- -- the path as separate results. > -- moduleToFilePath2 > -- :: [FilePath] -- ^search locations > -- ->

ghc requesting package version 1.1.7 but 0.1.7 is installed ?

2006-12-27 Thread Marc Weber
$ ghc -o setup --make -package Cabal-0.1.7 setup.hs Linking setup ... ghc-6.5.20060917: unknown package: Cabal-1.1.7 I don't understand this. I've substituted Version 1.1.7 by 0.1.7 to get a low version which won't be used unless requested. This is the only Cabal package beeing installed.

Hello. some questions and suggestions

2006-12-27 Thread Marc Weber
ponse Marc Weber <[EMAIL PROTECTED]> writes: > Hi Isaac Jones. Hi, Marc, thanks for writing. There's a cabal-devel mailing list where you can post questions so that others can take a crack at answering them, and they can get archived on the internet :) > I wanted to learn mor