-
Notifications
You must be signed in to change notification settings - Fork 217
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
Fixes #1786: Moved marshalling code to own namespace #2193
Fixes #1786: Moved marshalling code to own namespace #2193
Conversation
All decoding related code was moved to Dhall.Marshal.Decode and the encoding related code to Dhall.Marshal.Encode respectively. Additionally some minor documentation issues were fixed.
Hm, Hydra fails with
but my local Haddock builds look fine. What is going on here? General question: How do I debug problems like this? The log does not give me any clue what went wrong. |
@mmhat In the case of this Hydra failure, grepping for "Incomplete haddocks" would give you a hint: Lines 123 to 134 in 48c0170
But it looks like you've already figured it out! :) What's the motivation for creating the new namespace BTW? Do you have future plans for it? |
@sjakobi The motivation behind the namespaces were the following: The Dhall module in its current form has almost 3000 lines, most of them related to marshalling. Since such a huge module is kind of hard to navigate (Well, at least I had troubles the last time I contributed.) the idea was to move the decoding/encoding code to an own namespace. The goal is (was?) to end up with a clearer separation of concerns and maybe even improved compile times during development due to smaller compilation units. Regarding the Hydra+Haddock issue: Yeah, I finally remembered what caused the issue the last time I ran into this :) Since I could not find any documentation on the Haddock checks Hydra is performing I will open a PR in order to add it to our CONTRIBUTION docs after I am done with this one. |
@mmhat: Thank you for doing this! 🙂 |
All decoding related code was moved to Dhall.Marshal.Decode and the
encoding related code to Dhall.Marshal.Encode respectively.
Additionally some minor documentation issues were fixed.
Fixes #1786