slugger-0.1.0.2: Clean URI slugs for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.String.Slugger

Synopsis

Documentation

toSlug :: String -> String Source #

Converts to a US-ASCII, lowercase, hyphenated, URI-friendly "slug"

Examples:

toSlug "Hey there,   world!"
-- "hey-there-world"

toSlug "GARÇON - déjà , Forêt — Zoë"
-- "garcon-deja-foret-zoe"