https://github.com/hcarty/ocaml-project-templates
Basic templates for new OCaml projects
https://github.com/hcarty/ocaml-project-templates
Last synced: 11 months ago
JSON representation
Basic templates for new OCaml projects
- Host: GitHub
- URL: https://github.com/hcarty/ocaml-project-templates
- Owner: hcarty
- Created: 2017-10-19T17:45:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-19T17:45:51.000Z (over 8 years ago)
- Last Synced: 2025-04-09T17:47:23.251Z (about 1 year ago)
- Language: OCaml
- Size: 5.86 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Templates for starting a new OCaml project
A handful of templates for starting a new OCaml project
## Requirements
* `opam`
* macOS: `brew install opam`
* Ubuntu 16.04 (and likely others): `sudo apt install opam`
* See http://opam.ocaml.org/doc/Install.html otherwise and/or ask for help
* `m4` if you don't have it
* macOS: `brew install m4`
* Ubuntu 16.04 (and likely others): `sudo apt install m4`
## Getting setup
### macOS
```
# Install basic deps
brew install opam m4
```
### Ubuntu
```
# Install basic deps
sudo apt install opam m4
```
### Everybody
```
# Initialize opam with the latest version of OCaml, answering "yes" to the
# prompts if you want opam to modify your shell environment.
opam init --compiler=4.05.0
# Setup your environment variables
eval $(opam config env)
# Install the libraries and tools we need
opam install merlin ocp-indent odoc utop jbuilder \
alcotest qcheck benchmark logs cmdliner
# Get hacking
```