https://github.com/laserpants/hashids-haskell
:zap: Haskell port of the Hashids library. :zap:
https://github.com/laserpants/hashids-haskell
hashids haskell
Last synced: 10 months ago
JSON representation
:zap: Haskell port of the Hashids library. :zap:
- Host: GitHub
- URL: https://github.com/laserpants/hashids-haskell
- Owner: laserpants
- License: mit
- Created: 2015-05-16T18:51:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-30T17:33:45.000Z (about 2 years ago)
- Last Synced: 2024-10-13T00:47:32.564Z (over 1 year ago)
- Topics: hashids, haskell
- Language: Haskell
- Homepage: http://hashids.org/
- Size: 215 KB
- Stars: 24
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 
[](https://opensource.org/licenses/MIT) [](https://www.haskell.org/) [](http://hackage.haskell.org/package/hashids) [](http://hashids.org/)
[](https://github.com/laserpants/hashids-haskell/actions/workflows/haskell.yml)
Haskell port of the Hashids library. http://hashids.org
* Hackage: http://hackage.haskell.org/package/hashids
* Stackage: https://www.stackage.org/package/hashids
* Docs: http://hackage.haskell.org/package/hashids/docs/Web-Hashids.html
##### Install:
```
cabal install hashids
```
or using [Stack](https://www.haskellstack.org/):
```
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)
```