haskellfoundation / hs-opt-handbook.github.io

The Haskell Optimization Handbook
https://haskell.foundation/hs-opt-handbook.github.io/
Creative Commons Attribution 4.0 International
169 stars 12 forks source link

CI: Sphinx exec Haskell directive checks output against golden file or cache #66

Open doyougnu opened 1 year ago

doyougnu commented 1 year ago

The sphinx extension we use to run haskell code should check the output of that code against a golden file to ensure that the book's code snippets build in the way we expect and to ensure output does not change across GHC/Cabal/Stack versions.

The code is in root/extensions/sphinx_exec_directive.py. We should have: