Open wizzardx opened 6 years ago
Similarly, there's a suggestion to (similar to the ddump-slices option) build Haddock documentation to understand the generated code better.
An example of that for helloworld.hs would be great, too.
This may help you regarding ddump-splices: https://stackoverflow.com/questions/47702242/passing-ddump-splices-to-stack-script-interpreter
The answer to this related question I asked was helpful and relevant:
Recommendations to start using the ddump-splices GHC option start showing up around here:
https://www.yesodweb.com/book/basics#basics_routing
But by this point, the learner only really knows how to run this command:
stack runghc helloworld.hs
A quick example of running GHC (via stack) with the "ddump-splices" against helloworld.hs would be great.