Skip to content

Commit

Permalink
Add package description and module documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
crabmusket committed May 30, 2015
1 parent b72dbed commit a1115da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hscuid.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
name: hscuid
version: 0.0.0
synopsis: Collision-resistant IDs
-- description:
description: CUIDs are designed for horizontal scalability and collision
resistance. Read more about them at <https://usecuid.org>.
homepage: https://github.com/eightyeight/hscuid
license: MIT
license-file: LICENSE
Expand Down
11 changes: 11 additions & 0 deletions lib/Web/Cuid.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
{-# LANGUAGE CPP, ForeignFunctionInterface #-}

{-|
Stability: stable
Portability: portable
You can generate a new CUID inside any IO-enabled monad using this module's
one exported function:
>>> cuid <- newCuid
>>> print cuid
"ciaafthr00000qhpm0jp81gry"
-}
module Web.Cuid (
Cuid, newCuid
) where
Expand Down

0 comments on commit a1115da

Please sign in to comment.