{"id":16692911,"url":"https://github.com/martinsos/aoc-2023-haskell-template","last_synced_at":"2026-03-04T21:35:06.731Z","repository":{"id":209737867,"uuid":"724829836","full_name":"Martinsos/aoc-2023-haskell-template","owner":"Martinsos","description":"Template for solving Advent of Code 2023 in Haskell","archived":false,"fork":false,"pushed_at":"2023-12-03T14:06:11.000Z","size":11,"stargazers_count":12,"open_issues_count":1,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T07:39:04.967Z","etag":null,"topics":["advent-of-code","advent-of-code-2023","haskell"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Martinsos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-28T22:00:30.000Z","updated_at":"2025-01-10T10:27:40.000Z","dependencies_parsed_at":"2023-11-28T23:24:42.318Z","dependency_job_id":"72ae304d-18ee-43f0-b885-995cf047b7ca","html_url":"https://github.com/Martinsos/aoc-2023-haskell-template","commit_stats":null,"previous_names":["martinsos/aoc-2023-haskell-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Martinsos/aoc-2023-haskell-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martinsos%2Faoc-2023-haskell-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martinsos%2Faoc-2023-haskell-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martinsos%2Faoc-2023-haskell-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martinsos%2Faoc-2023-haskell-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Martinsos","download_url":"https://codeload.github.com/Martinsos/aoc-2023-haskell-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martinsos%2Faoc-2023-haskell-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30094017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T20:42:30.420Z","status":"ssl_error","status_checked_at":"2026-03-04T20:42:30.057Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","advent-of-code-2023","haskell"],"created_at":"2024-10-12T16:28:48.755Z","updated_at":"2026-03-04T21:35:06.702Z","avatar_url":"https://github.com/Martinsos.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AOC 2023\n\nThis is a template project for solving Advent Of Code (2023) in Haskell: fork it and you can start solving!\n\n## Setup\n\nYou are expected to have `ghcup` installed on your machine.\n\nRun `./ghcup-set.sh` to set the intended version of GHC, cabal and HLS via GHCup.\n\nIf any of the versions needed are not yet installed on your machine, you can use `ghcup tui` to install them.\n\nIt might work with other combination of versions also, but this combo works for sure.\n\nIf all is good, `cabal build` should complete successfully for you.\n\n## Organization of the codebase\n\n`src/` contains all the Haskell code. `src/Day01.hs`, `src/Day02.hs`, ... each contain the solution\nfor that specific day, and they are all imported into the `src/Main.hs`, which is the executable\nthat we use to easily run the solution for the specific day.\n\n`data/` dir is where puzzle input files go for each day.\nEach day, you should save a new file there, named `dayXY-input.txt` where `XY` is day number (`01`, `25`, ...).\nYour code in `src/DayXX.hs` can then read those files as needed.\nThese data files are gitignored, since AoC authors ask not to publicly post your puzzle input files.\n\n## Running\n\nEasiest way is calling `./day \u003cnum\u003e` to run specific day, e.g. `./day 01` or `./day 25`.\n\n`day` is really just a helper script for calling `cabal run`, so you can use `cabal run` directly if you want more control. `cabal run` will build all your code (same as `cabal build`) and then run the executable which has `src/Main.hs` as its entry point.\n\n`cabal repl` is also interesting option: it will take you to ghci where all the modules are already\nloaded for you and you can easily run any function, this is great for debugging and testing, or even\nnormal running. You can just type `day01` and run it that way. Type `:r` to reload upon changes in\nthe code.\n\n## Project config\n\nThis is a cabal-based project.\n\n`aoc2023.cabal` file already contains the default configuration that should work fine for you.\n\nYou will notice it also contains some commented-out extensions and dependencies(packages). These are\nsome common extensions and dependencies that we think you are likely to need so we put them there\nfor your convenience, you just need to uncomment them in order to get going with them.\n\n## Other templates\n\n1. Nice, a bit heavier/richer AoC template (Stack based) that I took some nice ideas from: https://github.com/samcoy3/advent-of-code-template .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinsos%2Faoc-2023-haskell-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinsos%2Faoc-2023-haskell-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinsos%2Faoc-2023-haskell-template/lists"}