newbase60: Encodes and decodes numbers using Tantek Çelik's New Base 60 number system.

[ data, library, mpl ] [ Propose Tags ]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS]
Change log
Dependencies array (>=0.5.4 && <0.6), base (>=4.14.1 && <4.15) [details]
License MPL-2.0
Copyright Astrid Yu
Author Astrid Yu
Category Data
Home page
Bug tracker
Source repo head: git clone
Uploaded by astralbijection at 2021-04-04T18:18:11Z
Downloads 220 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-04-04 [all 1 reports]

Readme for newbase60-

[back to package description]

NewBase60, Haskell Edition

Tests Hackage

This package includes an implementation of Tantek Çelik's New Base 60 number system.


import Data.String.NewBase60 ( numToSxg, sxgToNum )

-- It converts numbers into base 60
numToSxg 60 -- "10"
numToSxg 1337 -- "NH"

-- Converting to num filters out invalid characters
sxgToNum "1#O" -- 60
sxgToNum "NH*" -- 1337