https://github.com/morucci/haskell-boiletplate
An Haskell project skeleton based on nix and cabal
https://github.com/morucci/haskell-boiletplate
Last synced: about 1 year ago
JSON representation
An Haskell project skeleton based on nix and cabal
- Host: GitHub
- URL: https://github.com/morucci/haskell-boiletplate
- Owner: morucci
- Created: 2023-01-06T12:09:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T14:22:42.000Z (over 3 years ago)
- Last Synced: 2025-02-10T05:41:51.006Z (over 1 year ago)
- Language: Nix
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-BOILERPLATE.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Haskell template
This is a Haskell project template based on Cabal and Nix.
The nix shell provides the Haskell Language Server, hlint, fourmolu and weeder.
## Usage
First,
- Change occurances to "my-project" with your project name in my-project.cabal and flake.nix.
- Rename my-project.cabal file accorning to your project name.
Then, run nix develop and start code editor. If using VSCode you might need to install the Haskell plugin to interact with HLS.
```
$ nix develop
$ code .
# you can open a terminal inside your code editor and run:
# To get a REPL : cabal repl
# To get interactive feedback : ghcid
```