Lambda Anysphere is a VS Code color theme optimised for Haskell with extra syntax colors for more language scopes. It's based on Lambda Black and replaced with colors from Anysphere Modern.
git clone --depth 1 git@github.com:kodeFant/lambda-anysphere.git && {
cd lambda-anysphere
nix-shell -- If you have only Nix installed
-- or nix develop - If you have flake enabled
-- direnv allow -- If you have direnv installed and want automatic shell loading
nix build
code --install-extension result/lambda-anysphere.vsix
# Alernatively Ctrl+Shift+P -> Shell Command: Install from VSIX...
}
Customisation
To change how something is highlighted, proceed as follows:
While browsing code containing highlighting you'd like to change, start the TextMate scope inspector as follows:
open the VS Code Command Palette (Ctrl+Shift+P),
start typing "Inspect Editor Tokens and Scopes" and select this item from the dropdown menu.
Click on the code whose highlighting you'd like to change; this will display the TextMate scopes associated to that piece of code. For instance, if in a Haskell source file is given the scope keyword.control.if.haskell.
Open your settings.json file:
open the VS Code Command Palette (Ctrl+Shift+P),
start typing "Open Settings (JSON)" and select this item from the dropdown menu.
Make the modifications by editing the value of editor.tokenColorCustomizations in your settings.
For instance, to highlight if and then in red and else in blue, one would write: