Closed trilogysci closed 9 years ago
Thanks for the patch!
I will try to review it this evening.
In the mean time, could you also adjust the scientificBuilder
in both Data.Text.Lazy.Builder.Scientific
and Data.ByteString.Builder.Scientific
so that they take the display-mode into account?
Hi @trilogysci, did you get around implementing your changes in Data.Text.Lazy.Builder.Scientific
and Data.ByteString.Builder.Scientific
?
Yes it was in my last commit. https://github.com/trilogysci/scientific/commit/8b8a76fa29326c9807ab7588574890b053804322
On 03/17/2015 10:10 AM, Bas van Dijk wrote:
Hi @trilogysci https://github.com/trilogysci, did you get around implementing your changes in |Data.Text.Lazy.Builder.Scientific| and |Data.ByteString.Builder.Scientific|?
— Reply to this email directly or view it on GitHub https://github.com/basvandijk/scientific/pull/26#issuecomment-82372646.
Oops I completely missed that. I will look at it this evening. Thanks!
I finally merged it. I will probably release it in the coming days.
Allow changing of Show method. in support of: https://github.com/bos/aeson/issues/227#issuecomment-63042291 Supports 4 modes in increasing order
Binary operations with two Scientific values will promote the displayMode to the "highest" of the two.
New Scientific values will be created with ScDisplayGeneric, if not otherwise specified. scientific works the same using ScDisplayGeneric. scientificDisp allows specifying displayMode as well as other scientific values.