hscuid-1.1.0: hscuid.cabal
-- Initial hscuid.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: hscuid
version: 1.1.0
synopsis: Collision-resistant IDs
description: CUIDs are designed for horizontal scalability and collision
resistance.
Read more about them at <https://usecuid.org usecuid.org>.
Here's everything you need to know:
.
>>> import Web.Cuid (newCuid, newSlug)
>>> newCuid
"cib3c3tcu0000zwowx9ho2gh4"
>>> newSlug
"c900001wmf"
.
This module does not use crypto-strength sources of
randomness.
Use at your own peril!
.
For better or worse, this module uses semantic versioning
(see <http://semver.org/ semver.org>).
That is, if you want to depend upon, for example, version 1
of the API, you should add @hscuid ==1.*@ to your Cabal
file. No breaking changes will be (deliberately) introduced
under that version number.
homepage: https://github.com/eightyeight/hscuid
license: BSD3
license-file: LICENSE
author: Daniel Buckmaster
maintainer: dan.buckmaster@gmail.com
-- copyright:
category: Web
build-type: Simple
cabal-version: >=1.8
library
hs-source-dirs: lib
exposed-modules: Web.Cuid
other-modules: Web.Cuid.Internal
build-depends: base ==4.*,
formatting ==6.*,
time ==1.*,
random ==1.*,
transformers ==0.4.*,
hostname ==1.*,
text ==1.*
if os(windows)
build-depends: Win32 ==2.*
extra-libraries: kernel32
else
build-depends: unix ==2.*
ghc-options: -Wall
test-suite hscuid-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Test.hs
build-depends: base ==4.*,
containers ==0.5.*,
hscuid
ghc-options: -Wall -rtsopts -O2