-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Clean up code a bit #53
Conversation
if D.isInteger d && d < (D.fromNumber 1.0e18) | ||
then D.toString d | ||
else D.toString (D.toSignificantDigits 6 d) | ||
D.toString |
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.
Did this to hoist out the common D.toString
call.
import Prelude ((/)) | ||
import Data.Units(DerivedUnit, makeNonStandard, (./)) | ||
import Data.Units.SI | ||
import Prelude |
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.
All the import changes are for more consistency.
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.
Thank you so much. I agree with all of the changes.
Yeah, a couple changes here might be a tad opinionated, but you can leave comments on changes you don't agree with and I'll try to argue my case.