Haskell utilities for Hoon-style atom printing and conversion

License: MIT

Language: Haskell


Build Status Hackage Version License: MIT

Utilities for phonetic base wrangling.


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
> Ob.fromPatp nidsut

See also

Project Statistics

Sourcerank 3
Repository Size 6.84 KB
Stars 0
Forks 0
Watchers 17
Open issues 0
Dependencies 8
Contributors 1
Tags 1
Last updated
Last pushed

Top Contributors See all

Jared Tobin

Packages Referencing this Repo

Haskell utilities for Hoon-style atom printing and conversion
Latest release v0.1.0 - Published

Recent Tags See all

v0.1.0 September 06, 2019

Something wrong with this page? Make a suggestion

Last synced: 2019-09-06 18:10:51 UTC

Login to resync this repository