Closed kukimik closed 8 months ago
Unfortunately I don't know nix and I wasn't able to add a proper nix interpretation of
showHex
indhall-nix/src/Dhall/Nix.hs
. I've found something calledlib.trivial.toHexString
, but this probably can't be used directly.
I've learnt enough nix to write this function down :tada: (which turned out to be rather easy), now I just need to find a moment to hnix-ify it.
I added a nix translation of Natural/showHex
. I don't really like the elemAt
approach; I'd rather do it like this, but I didn't have the time to dig through hnix's Antiquotes. Perhaps the current solution is good enough.
Just FYI: I'm probably going to cut a release of the Haskell implementation before merging this and the corresponding dhall-lang
PR, just because I'm a bit overdue on cutting a release
Closing the PR for now; see the discussion in https://github.com/dhall-lang/dhall-lang/pull/1351.
Implementation of https://github.com/dhall-lang/dhall-lang/pull/1351.
Mostly copy-pasted from https://github.com/dhall-lang/dhall-haskell/commit/3aadd5730bc23d39f765aea99bd2ee38a38f6947.
showHex
indhall-nix/src/Dhall/Nix.hs
. I've found something calledlib.trivial.toHexString
, but this probably can't be used directly.dhall/dhall-lang
subrepo.