Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laserpants/hashids-haskell
:zap: Haskell port of the Hashids library. :zap:
https://github.com/laserpants/hashids-haskell
hashids haskell
Last synced: 9 days 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 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-30T17:33:45.000Z (10 months ago)
- Last Synced: 2024-10-13T00:47:32.564Z (24 days 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
# ![hashids-haskell](http://hashids.org/public/img/hashids-logo-normal.png "Hashids")
[![License: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Language](https://img.shields.io/badge/language-Haskell-orange.svg)](https://www.haskell.org/) [![Hackage](https://img.shields.io/hackage/v/hashids.svg)](http://hackage.haskell.org/package/hashids) [![Version](https://img.shields.io/badge/hashids--version-1.0-blue.svg?colorB=ff69b4)](http://hashids.org/)
[![Haskell CI](https://github.com/laserpants/hashids-haskell/actions/workflows/haskell.yml/badge.svg)](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 whereimport Web.Hashids
main :: IO ()
main = do
let hashids = hashidsSimple "this is my salt"
ids = encodeList hashids [1, 2, 3]
numbers = decode hashids idsprint (ids, numbers)
```