Development using VS Code
Most of us use VS Code as a code editor. This page is about some handy configuration tips.
Last updated
Most of us use VS Code as a code editor. This page is about some handy configuration tips.
Last updated
All changes that are made to the code is done in feature branches. Such a branch should have a specific goal. Normally, this is documented in a single github issue. While the work can take some time, eventually a pull request is made in order to merge it into main. There are several requirements that must be met before a pull request can be merged.
Every feature must be briefly documented in the releasenotes. A github action is in place that will notify if the releasenotes are not changed.
All code must be formatted in a consistent way. We use , a standard code formatting tool for Haskell. We only accept Haskell files that are properly formatted. This is enforced by a new .
In order to use ormolu, you have to make sure it is available. Hopefully, some time in future, this will be installed automatically. Until then, you have to install it yourself:
We provide a standard developer container to the developers of Ampersand. Documentation about this awsome VScode feature can be found .
Setting up a Haskell environment with awsome tooling has never been as easy as today.
Make sure you have vscode installed.
Install the `Remote - Containers` extention.
Make sure Docker is running.
Go to the directory where your Ampersand stuff resides, and type `code .`
In the lower right corner, you will see a message:
Push the button `Reopen in Container` and watch the show.
The first time, opening the development container will take quite some time. It will build some docker images and finally spin up the container. Fortunatly, this is one time only.
While you are waiting, you can watch the progress by inspecting the log. There will be a message containing a link to the log file.
After everything is set up, open Main.hs
. This will trigger the Haskell extention of vscode. Also here, the first time will take a while, because the project is being build. That includes all dependencies of Ampersand. If you want to see what is going on, go to the Output tab and open the dropdown called `tasks`. You will find the task building Ampersand: