slug alternatives and similar packages
Based on the "Web" category.
Alternatively, view slug alternatives based on common mentions on social networks and blogs.
-
swagger-petstore
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition. -
haskell-bitmex-rest
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition. -
servant
Main repository for the servant libraries — DSL for describing, serving, querying, mocking, documenting web applications and more! -
scotty
Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository) -
neuron
Future-proof note-taking and publishing based on Zettelkasten (superseded by Emanote: https://github.com/srid/emanote) -
airship
Helium + Webmachine = Airship. A toolkit for building declarative, RESTful web apps. -
apecs-gloss
a fast, extensible, type driven Haskell ECS framework for games -
haskell-kubernetes
Haskell bindings to the Kubernetes API (via swagger-codegen) -
digestive-functors
A general way to consume input using applicative functors -
servant-elm
Automatically derive Elm functions to query servant webservices -
tagsoup
Haskell library for parsing and extracting information from (possibly malformed) HTML/XML documents -
backprop
Heterogeneous automatic differentiation ("backpropagation") in Haskell -
kubernetes-client-core
Haskell client for the kubernetes API. A work in progress. -
engine-io
A Haskell server implementation of the Engine.IO and Socket.IO (1.0) protocols -
keera-hails-reactive-htmldom
Keera Hails: Haskell on Rails - Reactive Programming Framework for Interactive Haskell applications -
ghcjs-base
base library for GHCJS for JavaScript interaction and marshalling, used by higher level libraries like JSC
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of slug or a related project?
README
Slug
This is a slug implementation that plays nicely with the Yesod ecosystem. Although it's fairly easy to write this thing, slugs are useful and general enough to be coded once and be used again and again. So this little package eliminates some boilerplate you might find yourself writing.
Quick start
The package provides the data type Slug
that is an instance of various
type classes, so it can be used with Persistent or as a part of a route. It
also works with the aeson
package.
The slugs are completely type-safe. When you have a Slug
, you can be sure
that there is a valid slug inside. Valid slug has the following qualities:
it's not empty;
it consists only of alpha-numeric groups of characters (words) separated by
'-'
dashes in such a way that entire slug cannot start or end in a dash and also two dashes in a row cannot be found;every character with defined notion of case is lower-cased.
To use the package with persistent models, just import Web.Slug
and add it
to model file:
MyEntity
slug Slug
…
Use it in route file like this:
/post/#Slug PostR GET
In Haskell code, create slugs from Text
with mkSlug
and extract their
textual representation with unSlug
. The following property holds:
mkSlug = mkSlug >=> mkSlug . unSlug
License
Copyright © 2015–2018 Mark Karpov
Distributed under BSD 3 clause license.
*Note that all licence references and agreements mentioned in the slug README section above
are relevant to that project's source code only.