Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvaldesdeleon/aoc23
https://github.com/mvaldesdeleon/aoc23
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/mvaldesdeleon/aoc23
- Owner: mvaldesdeleon
- License: other
- Created: 2023-12-01T07:09:28.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-01T11:33:24.000Z (12 months ago)
- Last Synced: 2023-12-01T13:40:50.080Z (12 months ago)
- Language: Haskell
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code 2023
Advent of Code 2023, in Haskell
http://adventofcode.com/2023
# Instructions
Before you compile the code, you'll need to create the `Session` module at **src/Session.hs** and provide your session cookie. This will download your input files automatically, and cache them.
```haskell
module Session whereimport Relude.String (ByteString)
session :: ByteString
session = ""
```You should have [stack](https://docs.haskellstack.org/en/stable/README/) installed before continuing.
```sh
git clone [email protected]:mvaldesdeleon/aoc23.git
cd aoc23
# Create the Session module
cat << EOF > src/Session.hs
module Session whereimport Relude.String (ByteString)
session :: ByteString
session = ""
EOF
stack build
stack exec aoc23 day[1-5]
# i.e., stack exec aoc23 day1
```You can also override the input file for testing:
```sh
stack exec aoc23 day1 --input alternative/input.txt
```# Live Stream
I'll be live streaming my solutions on [twitch](https://www.twitch.tv/mvaldesdeleon). No fixed schedule, but I would expect something between 18:00 and 22:00 CET.
# License
BSD-3-Clause