Skip to content

Commit

Permalink
chore: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
japiirainen committed Nov 26, 2023
1 parent 9602c3c commit 9056107
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,38 @@
# aoc-2023

[Advent of Code 2023](https://adventofcode.com/2023) solutions written in [Haskell](https://www.haskell.org/).

## usage

`aoc-2023` contains an entrypoing, which runs all solutions sequentially. In
addition to this each solutions contains `#eval` statement that shows the
results in an interactive fashion.
This project is usable either via `nix` or via `cabal`. I will provide
commands for both in the following sections.

### run all solutions

#### nix

```sh
nix run .#aoc
```

#### cabal

```sh
cabal run exe:aoc
```

### run specific solution

It is possible to run only a specific day. In this example day # `01` is ran.

#### nix

```sh
nix run .#01
```

#### cabal

```sh
lake exe aoc
cabal run exe:01
```

0 comments on commit 9056107

Please sign in to comment.