From ff2c86a11b39ff75329715ace8cb0d21c8d10f40 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sun, 7 Dec 2025 22:26:25 +0100 Subject: [PATCH] Missing compilation instructions --- 2025/day07/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 2025/day07/README.md diff --git a/2025/day07/README.md b/2025/day07/README.md new file mode 100644 index 0000000..9bb4088 --- /dev/null +++ b/2025/day07/README.md @@ -0,0 +1,15 @@ +# Day 07: Haskell + +This one took me the longest, mostly because I really do not know Haskell. Nevertheless, I find the +resulting solution quite elegant. The `Makefile` I made uses dynamic linkage as that's how Haskell +works on Arch Linux. If you want to do static linking, `ghc solve.hs` should work. + +```console +$ make +ghc -dynamic -O -g -o solve solve.hs +[1 of 2] Compiling Main ( solve.hs, solve.o ) +[2 of 2] Linking solve +$ ./solve sample.txt +21 +40 +```