Skip to content
A unified interface for shorten-ellipsis'ing string-like types https://github.com/pbrisbin/yesod-goodies/tree/master/shorten-strings
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Data
.gitignore
LICENSE
README.md
Setup.hs
shorten-strings.cabal

README.md

Shorten strings

A unified interface for shorten-ellipsis'ing string-like types.

String, Text, and yesod-markdown provides a Markdown instance.

shorten 12 "some really really really long string"
-- ==> "some real..."
Something went wrong with that request. Please try again.