Copyright | 2014, Peter Harpending |
---|---|
License | BSD3 |
Maintainer | Peter Harpending <pharpend2@gmail.com> |
Stability | experimental |
Portability | Linux |
Safe Haskell | None |
Language | Haskell2010 |
These generate slugs (file names).
The slug must be alphanumeric, with the exception of "-_". It also must be between 4 and 32 chars long.
Documentation
mkSlugMaybe :: Text -> Maybe Slug Source
Maybe make a Slug
mkRandomSlug :: IO Slug Source
Generates a random slug 32 chars long
slugAcceptChars :: String Source
Acceptable characters for a slug