Home

Awesome

new-hs

Build status

Deprecated. Please use Summoner.

<details> <summary>See old description</summary>

This is a script for creating a Haskell project and setting up everything that one usually wants to set up (well, not everything, but I'll add some features -that others use- later). To use it, download new-hs.hs and then put it somewhere in your PATH (for instance, /usr/local/bin):

$ wget https://github.com/aelve/new-hs/blob/master/new-hs.hs
$ chmod +x new-hs.hs
$ sudo mv new-hs.hs /usr/local/bin/new-hs

After that, call new-hs, answer the questions, and a new project would be created in a subfolder.

To change the defaults (repository owner, default license, etc), edit the beginning of the script (the “Settings” section).

Features

Note that the following features are currently missing:

Repository

It creates a new folder with Git repository in it, and then creates a corresponding repository on Github.

Project

It generates a .cabal file using cabal init, and optionally creates a Cabal sandbox. It also fills in some additional fields: tested-with, bug-reports, and the source-repository section.

Travis-CI

It enables Travis-CI for the repository and generate a .travis.yml file using hvr's multi-ghc-travis script.

Requirements

On Arch Linux, you can install all of those things by doing

$ yaourt -S ghc git cabal-install hub ruby-travis
</details>