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

Data.Text.Slugger

Synopsis

Documentation

toSlug :: Text -> Text Source #

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

Examples:

toSlug (T.pack "Hey there,   world!")
-- "hey-there-world"

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