Ticket #171 (new enhancement)

Opened 1 year ago

Last modified 3 months ago

Add command to automagically create an initial cabal package

Reported by: guest Assigned to:
Priority: normal Milestone: Cabal-2.0
Component: cabal-install tool Version: 1.2.2.0
Severity: normal Keywords:
Cc: gwern0@gmail.com Difficulty: normal
GHC Version: 6.6 Platform: Linux

Description

Don Stewart has a nice tool called mkcabal (http://www.cse.unsw.edu.au/~dons/code/mkcabal/) which creates an initial cabal package. It would be nice to have this built into the 'cabal' program itself so that "cabal create" or "cabal init" or similar would interactively create a cabal package.

Change History

11/07/07 07:02:01 changed by duncan

What would be even cooler, once we have the dependency chasing infrastructure is to look for local source files and to generate the exposed module list from that, and the package dependencies and the build-tools etc. All it should need to ask for is the name and initial version number.

The user could then go and remove modules from the exposed list if they thought there were better private.

Indeed it should be possible to tell if it's an executable or a library by checking if there's a Main module.

01/21/08 09:15:26 changed by duncan

  • owner changed.
  • component changed from Cabal library to cabal-install tool.

04/18/08 04:06:38 changed by duncan

  • milestone set to Cabal-2.0.

08/25/08 12:29:36 changed by guest

  • cc set to gwern0@gmail.com.