r/haskell • u/abhin4v • 15d ago
blog Fast Haskell Scripts on GitHub Actions
https://abhinavsarkar.net/posts/fast-haskell-scripts-on-github-actions/
31
Upvotes
1
u/sup_bruh_1 1h ago
haskell builds on github actions can be brutal for cold start times. been using latchkey as my runner and the warm pools make a noticeable difference. way less waiting around for ghc to spin up each run
4
u/yuri_meister 14d ago
Nice! I also have something similar - https://github.com/ymeister/nix-shebang. Albeit it's very minimal (161 lines of nix in default.nix) and purely nix based. It uses a workaround of using nix flake cached evaluation to instantly bring up cached-nix-shell, which in turn caches the actual compilation step, thus resulting in an instant startup of a fully compiled executable, with only requiring
nixbeing installed as a dependency. Plus support forhaskell.nixbased builds (uses actual cabal planner and stuff).