https://github.com/active-group/siemens-ad-haskell-training-2022
Playground setup for the Haskell part of a training held for Siemens employees
https://github.com/active-group/siemens-ad-haskell-training-2022
Last synced: about 1 month ago
JSON representation
Playground setup for the Haskell part of a training held for Siemens employees
- Host: GitHub
- URL: https://github.com/active-group/siemens-ad-haskell-training-2022
- Owner: active-group
- License: mit
- Created: 2022-10-10T08:23:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-27T16:41:47.000Z (over 2 years ago)
- Last Synced: 2023-09-11T07:39:38.838Z (over 1 year ago)
- Language: Haskell
- Size: 102 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup notes
## Nix
You need an installation of the [Nix package
manager](https://nixos.org/download.html#download-nix), with `flakes`
enabled (see [the NixOS wiki](https://nixos.wiki/wiki/Flakes) for
instructions).## VSCode
There are (at least) three alternative possibilities to get LSP
integration for Haskell working seamlessly. Install the following
extensions first:- `haskell.haskell`
- `bbenoist.nix`Then choose one of the following methods, with the first being the
simplest:### Starting `code` from within a Nix environment
- Enter the Nix development environment via `nix develop`
- Then execute `code .`
- Open the `MyLib.hs` file and change something; after a while, you
should see some LSP feedback### `direnv`
- Install [direnv](https://direnv.net/)
- Install the `mkhl.direnv` plugin in VSCode
- When opening the repository, the plugin will ask you to `Allow`
usage of the `.envrc` file that already exists -> accept this
- Now you should see a prompt asking you to restart the extension ->
also accept this
- Open the `MyLib.hs` file and change something; after a while, you
should see some LSP feedback
### Nix environment selector- Install the plugin `arrterian.nix-env-selector`
- After opening the repository, choose `Nix-Env: Select environment`
from the command palette
- You should be prompted for a `Reload` -> accept this
- Open the `MyLib.hs` file and change something; after a while, you
should see some LSP feedback