https://github.com/hapytex/slugify
Convert text to slugs in Haskell.
https://github.com/hapytex/slugify
haskell slug slugify uri web-development
Last synced: 3 months ago
JSON representation
Convert text to slugs in Haskell.
- Host: GitHub
- URL: https://github.com/hapytex/slugify
- Owner: hapytex
- License: bsd-3-clause
- Created: 2020-06-09T10:27:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T08:49:21.000Z (over 1 year ago)
- Last Synced: 2025-09-18T22:38:09.688Z (4 months ago)
- Topics: haskell, slug, slugify, uri, web-development
- Language: Haskell
- Homepage: https://slugify.django-antipatterns.com/
- Size: 6.95 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# slugify
[](https://github.com/hapytex/slugify/actions/workflows/build-ci.yml)
[](https://matrix.hackage.haskell.org/#/package/slugify)
[](https://hackage.haskell.org/package/slugify)
Make slugs in Haskell. This package is based on the
[**`slugify`** function of Django [Django-doc]](https://docs.djangoproject.com/en/3.1/ref/utils/#django.utils.text.slugify).
## Usage
One can make use of `slugify`, `slugifyUnicode` and `slugifyWith` from
the `Text.Slugify` module to convert a `Text` object to an equivalent
`slug`, for example:
```
*Text.Slugify Text.Slugify> slugify "Haskell 98 Language and Libraries"
"haskell-98-language-and-libraries"
```
## `slugify` is not *safe* Haskell
`slugify` depends on [**`unicode-transforms`**](https://hackage.haskell.org/package/unicode-transforms), which is not safe Haskell.
## Contribute
You can contribute by making a pull request on the [*GitHub
repository*](https://github.com/hapytex/slugify).
You can contact the package maintainer by sending a mail to
[`hapytexeu+gh@gmail.com`](mailto:hapytexeu+gh@gmail.com).