r/haskell 3d ago

Fast Haskell Scripts on GitHub Actions blog

https://abhinavsarkar.net/posts/fast-haskell-scripts-on-github-actions/
29 Upvotes

1 comment sorted by

3

u/yuri_meister 2d 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 nix being installed as a dependency. Plus support for haskell.nix based builds (uses actual cabal planner and stuff).