a cabal/database lib experience

Simon Marlow simonmarhaskell at gmail.com
Tue Dec 12 10:48:36 EST 2006


Paul Moore wrote:
> On 12/12/06, Ketil Malde <Ketil.Malde at bccs.uib.no> wrote:
> 
>> I'm possibly using cabal in a simplistic way, but I generally do either
>>
>>    ./Setup.lhs configure -p
>>    ./Setup.lhs build
>>    ./Setup.lhs install
> 
> [...]
> 
>> This is a lot of typing, and at least once I wrote a Makefile to
>> automate it (oh, the irony of it!)
>> Anyway, it would be nice if a 'cabal' command automated the whole
>> sequence in one go, at least as an option.
> 
> 
> I come from a Python background, and Python's distutils (which feels
> very like cabal - or should that be the other way round?) tends to
> have later commands include earlier ones. So,
> 
>    setup.py install
> 
> automatically does "build" (there is no explicit configure step).

Sounds entirely reasonable to me.  Though configure takes a bunch of arguments; 
so if configure is run automatically it'll always be with the default settings. 
  Maybe that's ok.

Simon


More information about the Libraries mailing list