Nothing :: Maybe something
- Haskell 100%
| src | ||
| .gitignore | ||
| .travis.yml | ||
| cabal.config | ||
| LICENSE | ||
| Nothing.cabal | ||
| README.md | ||
| Setup.hs | ||
Nothing :: Maybe something 
A minimal Haskell project.
This project evaluates to Nothing at the moment.
Maybe you can turn it into something that's Just spectacular
The guides How to write a Haskell program and Structure of a Haskell project provides some very good instructions for getting a basic Haskell project up and running.
This project (inspired by hnop) aims to turn the above guides into a runnable project that can be forked and used as a base for other Haskell projects.
How to use this as a base for your new project
- Fork this repository.
- Rename your new git repository and clone it.
- Customise and rename references to Nothing in your local checkout:
$ git mv Nothing.cabal my-new-project.cabal
- Modify my-new-project.cabal
- Modify README.md
- Change the LICENSE file to reflect your project license.
- Find and change any mentions of Nothing that you may have missed:
$ git grep Nothing
If I can't fork my own project and I have to clone :-/
Clone this repo, but use the name of the new project
$ git clone git@github.com:apauley/Nothing.git my-new-project
Create my-new-project in GitHub
But don't let GitHub initialise it with any files such as a README, LICENSE or .gitignore
Change the git origin to the new project
$ cd my-new-project/
$ git remote rm origin
$ git remote add origin git@github.com:apauley/my-new-project.git
Customise as above
Push and track the new upstream master
$ git commit -a -m 'Customised initial config'
$ git push -u origin master
Building
Needed only once after cloning the repo:
$ cabal sandbox init
$ cabal update
$ cabal install --dependencies-only
$ cabal configure
Build after each code change:
$ cabal build -j --ghc-options=-Werror
Running the command-line executable
$ ./dist/build/Nothing/Nothing