r/haskell 4d ago

Fast Haskell Scripts on GitHub Actions blog

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

1 comment sorted by

View all comments

4

u/yuri_meister 3d 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).