-
Notifications
You must be signed in to change notification settings - Fork 219
Use an Ordered Set for Project #670
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just one nitpick about naming 🙂
dhall/src/Dhall/OSet.hs
Outdated
-- as well as a novel "difference" function. | ||
-- Any other Set-like or List-like functionality | ||
-- should be obtained through toSet and toList, respectively. | ||
module Dhall.OSet ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to call this module either Dhall.Set
or Dhall.OrderedSet
(and similarly rename the type to either Set
or OrderedSet
)? The main reason is that I try to avoid one-letter abbreviations when naming types and modules. I would slightly prefer Dhall.Set
for consistency with Dhall.Map
(the module for ordered Map
s) and also because then if you wanted the single character name you could import Dhall.Set as O
and use O.Set
or whatever prefix you prefer.
Oh, one more thing: we should probably add a formatting test to |
No problem, I'll see if I can get around to making those changes this weekend. |
Whilst attempting the rename, I'm encountering a baffling error with the mutually recursive modules |
I'm not entirely sure why |
@ocharles ah, yes it does! And that makes sense. Only one of the two needs to do the SOURCE import, to break the cycle. I'm not sure why it worked in the first place, but I did find it odd that the most innocuous, unrelated changes seemed to cause it to break. |
@DanBurton: Thank you! 🙂 |
Addresses #664