Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undocumented suggestion to use "ddump-splices" GHC option #217

Open
wizzardx opened this issue Aug 28, 2018 · 3 comments
Open

Undocumented suggestion to use "ddump-splices" GHC option #217

wizzardx opened this issue Aug 28, 2018 · 3 comments

Comments

@wizzardx
Copy link

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.

@wizzardx
Copy link
Author

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.

@psibi
Copy link
Member

psibi commented Aug 28, 2018

@benjamingoldstein
Copy link
Contributor

The answer to this related question I asked was helpful and relevant:

https://stackoverflow.com/questions/58343614/how-can-i-see-a-specific-files-generated-template-haskell-code-when-using-yesod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants