https://github.com/misterio77/aoc2022
My Haskell and Rust attempt on AoC 2022
https://github.com/misterio77/aoc2022
haskell nix rust
Last synced: 9 months ago
JSON representation
My Haskell and Rust attempt on AoC 2022
- Host: GitHub
- URL: https://github.com/misterio77/aoc2022
- Owner: Misterio77
- License: unlicense
- Created: 2022-12-03T18:13:27.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-10T18:06:10.000Z (over 2 years ago)
- Last Synced: 2024-05-01T15:41:56.758Z (over 1 year ago)
- Topics: haskell, nix, rust
- Language: Rust
- Homepage:
- Size: 81.1 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://builtwithnix.org)
[](https://hydra.m7.rs/jobset/aoc2022/main#tabs-jobs)
# Advent of Code 2022
My Haskell + Rust attempt on [AoC 2022](https://adventofcode.com/2022).
## How to run
```
nix run .#day1
```
## How to hack
Use Cabal and Cargo to `build`, and `run` while developing. You'll want:
- Haskell: `cabal`, `ghc`, and (optionally) `haskell-language-server`
- Rust: `cargo`, `rustc`, and (optionally) `rust-analyzer` and `clippy`
Nix devShells are available for each and every day, for example:
```
nix develop .#day1
```
Every day has a .envrc file to easily enter the devshell. Just install direnv,
cd into a day, and run `direnv allow`.
Otherwise, just install them manually through your preferred package manager.