urbit-hob: Hoon-style atom manipulation and printing functions
Here you can primarily find functions for dealing with the "patp" phonetic base used by Urbit. The '@p' encoding is used for naming ships; it uniquely represents a 32-bit number in a memorable and pronounceable fashion.
The '@p' encoding is an obfuscated representation of an underlying 32-bit
number, in particular, hence the ob
in the library's name.
The library exposes two functions, patp
and fromPatp
, for converting
between representations. You can render a Patp
value via the render
function.
Here's a quick example:
import qualified Urbit.Ob as Ob let nidsut = Ob.patp 15663360 Ob.render nidsut
"~nidsut-tomdun" > Ob.fromPatp nidsut 15663360
Flags
Manual Flags
Name | Description | Default |
---|---|---|
release | Build for release | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- urbit-hob-0.1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0, 0.1.1, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3 |
---|---|
Dependencies | base (>=4.7 && <6), bytestring (>=0.10 && <1), cereal (>=0.5 && <1), containers (>=0.5 && <1), murmur3 (>=1.0 && <2), text (>=1.2 && <2) [details] |
License | MIT |
Copyright | 2019 Jared Tobin |
Author | Jared Tobin |
Maintainer | jared@jtobin.io |
Category | Urbit |
Home page | https://github.com/urbit/urbit-hob#readme |
Bug tracker | https://github.com/urbit/urbit-hob/issues |
Source repo | head: git clone https://github.com/urbit/urbit-hob |
Uploaded | by JaredTobin at 2019-09-06T18:10:23Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 2599 total (1 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2019-09-06 [all 1 reports] |