Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hapytex/slugify
Convert text to slugs in Haskell.
https://github.com/hapytex/slugify
haskell slug slugify uri web-development
Last synced: about 1 month 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 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-13T07:05:47.000Z (over 3 years ago)
- Last Synced: 2024-04-24T10:17:46.353Z (9 months ago)
- Topics: haskell, slug, slugify, uri, web-development
- Language: Haskell
- Homepage: https://slugify.django-antipatterns.com/
- Size: 7 MB
- Stars: 1
- Watchers: 2
- 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
[![Build Status of the package by GitHub actions](https://github.com/hapytex/slugify/actions/workflows/build-ci.yml/badge.svg)](https://github.com/hapytex/slugify/actions/workflows/build-ci.yml)
[![Build Status of the package by Hackage](https://matrix.hackage.haskell.org/api/v2/packages/slugify/badge)](https://matrix.hackage.haskell.org/#/package/slugify)
[![Hackage version badge](https://img.shields.io/hackage/v/slugify.svg)](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
[`[email protected]`](mailto:[email protected]).