Data.Text.Slugger
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"