A unified interface for shorten-ellipsis'ing string-like types
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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..."