Open doyougnu opened 2 years ago
also this guidance for emitting stg for packages:
Maybe if I copy a cabal.project.freeze file from the node into the ouroboros-network repository at that commit, then compile there I should get the same results as the node does, but it seems quite fragile to rely on this
...
One way to make this easier is to locally make it a local package.
Just cabal unpack the-pkg-name which should fetch the tarball from CHAP and adjust your cabal.project to point to the local directory.
explanation of let-no-escape: https://jstolarek.github.io/posts/2013-10-06-let-no-escape.html
also this nice summary from the GRIN project: https://github.com/dmjio/ext-stg-interpreter-talk?tab=readme-ov-file
Should have:
for this and #13 make sure it connects to the user's vision of their code.