Description
Encodes and decodes numbers using Tantek Çelik's New Base 60 number system.
Description
Please see the README on GitHub at https://github.com/astralbijection/newbase60-hs#readme
README.md
NewBase60, Haskell Edition
This package includes an implementation of Tantek Çelik's New Base 60 number system.
Examples
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