basvandijk / scientific

Arbitrary-precision floating-point numbers represented using scientific notation
BSD 3-Clause "New" or "Revised" License
73 stars 40 forks source link

Dependency on arithmoi is a problem #13

Closed bos closed 10 years ago

bos commented 10 years ago

As I mention in bos/aeson#202, the newly added dependency of scientific on the arithmoi package poses a difficulty for the Haskell Platform. attoparsec depends on scientific, as does aeson.

We have a reasonable shot at getting scientific into the HP by itself so that attoparsec can stay in, but this is likely to be under protest from the HP maintainers. I'm fairly sure that arithmoi makes that case more difficult, as I'd never even heard of the package before I saw it building yesterday.

Put together, the two dependencies probably make the case for getting aeson into the HP more of a challenge.

basvandijk commented 10 years ago

I copied over the code from arithmoi into scientific. I did need to add dependencies on integer-gmp and ghc-prim but since they come pre-installed with GHC and thus with the HP that shouldn't be a problem.

Together with performance improvements this is released as scientific-0.3.1.0.