⚡️ Haskell port of the Hashids library. ⚡️
Haskell Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Web Update info Feb 9, 2018
dist/doc/html/hashids
tests
.gitattributes
.gitignore
.travis-setup.sh
.travis.yml
LICENSE
README.md
Setup.hs
Tests.hs
hashids.cabal
stack.yaml

README.md

hashids-haskell Build Status License: MIT Language Hackage Version

Haskell port of the Hashids library. http://hashids.org

Install:
cabal install hashids

or using Stack:

stack install hashids
Hello, World:
{-# LANGUAGE OverloadedStrings #-}
module Main where

import Web.Hashids

main :: IO ()
main = do
    let hashids = hashidsSimple "this is my salt"
        ids = encodeList hashids [1, 2, 3]
        numbers = decode hashids ids

    print (ids, numbers)