← 输入框|github.com|刷新
Skip to content

About

Reason native compilation starter project

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

86 Commits

Folders and files

Repository files navigation

ReasonNativeProject

Installation of Reason project for native compilation development.

More info on the workflow.

Build Status

Install

Clone the repo and install the dependencies:

git clone https://github.com/reasonml/ReasonNativeProject.git
cd ReasonNativeProject
# opam will read into the `opam` file and add the other dependencies
opam pin add -y ReasonNativeProject .

Build

There are a couple of built-in commands in the Makefile.

make build    # build/rebuild your files
make clean    # clean the compiled artifacts

A single test file ./src/test.re is included. Make a simple change to it and then run the commands above to see it effect the output.

The built output is in _build. Try running it with _build/src/test.native.

Developing Your Project

ReasonNativeProject is meant to be the starting point of your own project. You'll want to make use of existing libraries in your app, so browse the growing set of opam packages in the opam repository.

Add Another Dependency

Edit your opam file so that you depend on a particular opam package and range of versions.

Creating Libraries

See the OPAM instructions.

Troubleshooting

In general, if something goes wrong, try upgrading your install of the project by running opam upgrade ReasonNativeProject, or if it failed to install and you later fixed it, opam install ReasonNativeProject.

About

Reason native compilation starter project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages