Ticket #171 (closed enhancement: fixed)

Opened 6 years ago

Last modified 17 months ago

Add command to automagically create an initial cabal package

Reported by: guest Owned by: byorgey
Priority: normal Milestone: cabal-install-0.8
Component: cabal-install tool Version:
Severity: normal Keywords:
Cc: gwern0@… Difficulty: easy (<4 hours)
GHC Version: Platform:

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

Changed 6 years ago 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.

Changed 5 years ago by duncan

  • component changed from Cabal library to cabal-install tool

Changed 5 years ago by duncan

  • milestone set to Cabal-2.0

Changed 5 years ago by guest

  • cc gwern0@… added

Changed 4 years ago by duncan

  • difficulty changed from normal to easy (<4 hours)
  • ghcversion 6.6 deleted
  • version 1.2.2.0 deleted
  • platform Linux deleted
  • milestone changed from Cabal-2.0 to cabal-install-0.8

Just integrating mkcabal should not be too hard. It is apparently now unmaintained as well, so now is a good time to pick it up. Otherwise it's just going to confuse new users who have had it recommended to them.

Changed 4 years ago by byorgey

  • owner set to byorgey

Changed 4 years ago by byorgey

Benedikt Huber and I made some good progress on this at the Hackathon today, hopefully a preliminary version will be ready in the next few days!

Changed 3 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed
Sun Oct 11 17:56:44 BST 2009  Brent Yorgey <byorgey@cis.upenn.edu>
  * add 'init' subcommand for initializing project cabalisation

Wed Sep  2 17:03:32 BST 2009  benedikt.huber@gmail.com
  * Collecting some heuristics for creating an initial cabal file

Changed 17 months ago by elga

Note: See TracTickets for help on using tickets.