Copyright | (C) 2016 Awake Networks |
---|---|
License | Apache-2.0 |
Maintainer | Awake Networks <opensource@awakenetworks.com> |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
- toBase32Nix :: (MonadIO m, MonadError HockerException m) => FilePath -> Base16Digest -> m Base32Digest
Documentation
:: (MonadIO m, MonadError HockerException m) | |
=> FilePath | Path to the |
-> Base16Digest |
|
-> m Base32Digest |
Convert a Base16Digest
to a Base32Digest
using the nix-hash
utility.
NB: Nix implements its own custom base32 encoding function for
hashes that is not compatible with other more standard and native
implementations in Haskell. I opted to call out to nix-hash
instead of re-implementing their algorithm because it's
non-standard and may change, creating a maintenance headache and
surprise behavior.