Recently I started looking for a package that works with BigDecimal numbers, both because we are currently working on a webshop-application that requires using money (and just using a fixed-point decimal like ‘cents’ everywhere is probably not good enough), and because in the near future we will be working on an application that does some stuff with cryptography, where common constants for cryptographic functions are rather large.
In my search, I found javascas/elm-decimal. However, it (and its dependency ‘elm-integer’ that implements BigInteger arithmetic) were written in the time of Elm 0.17 and have not been updated since.
So I attempted to upgrade them to 0.18, by using elm-upgrade
. However:
- Using the newest `elm-upgrade`` assumes you are updating from 0.18 to 0.19
- After installing
elm-update@0.18.7
which seems to be the latest version to go from 0.17 to 0.18 and attempting to run it, I get errors when it attempts to connect to the package repository:
(node:31342) ExperimentalWarning: The fs.promises API is experimental
{ HTTPError: Response code 404 (Not Found)
at stream.catch.then.data (/home/qqwy/.asdf/installs/nodejs/10.1.0/.npm/lib/node_modules/elm-upgrade/node_modules/got/index.js:123:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
message: 'Response code 404 (Not Found)',
host: 'package.elm-lang.org',
hostname: 'package.elm-lang.org',
method: 'GET',
path: '/new-packages',
statusCode: 404,
statusMessage: 'Not Found' }
ERROR: Unable to connect to http://package.elm-lang.org. Please try again later.
So I’d like your help: Could you explain how we can still carry over packages from 0.17 to the world of 0.18 (and then on to 0.19?)