-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Type-safe slugs for Yesod ecosystem -- -- Type-safe slugs for Yesod ecosystem. @package slug @version 0.1.0 -- | Type-safe slug implementation for Yesod ecosystem. module Web.Slug -- | Slug. Textual value inside is always guaranteed to have the following -- qualities: -- -- -- -- Slugs are good for semantic URLs and also can be used as identifier of -- a sort in some cases. data Slug -- | Create Slug from Text, all necessary transformations are -- applied. Argument of this function can be title of an article or -- something like that. -- -- Note that result is inside MonadThrow, that means you can just -- get it in Maybe, in more complex contexts it will throw -- SlugException. -- -- This function also have a useful property: -- --
--   mkSlug = mkSlug >=> mkSlug . unSlug
--   
mkSlug :: MonadThrow m => Text -> m Slug -- | Get textual representation of Slug. unSlug :: Slug -> Text -- | This exception is thrown by mkSlug when its input cannot be -- converted into proper Slug. data SlugException InvalidInput :: Text -> SlugException instance GHC.Show.Show Web.Slug.Slug instance GHC.Classes.Eq Web.Slug.Slug instance GHC.Show.Show Web.Slug.SlugException instance GHC.Exception.Exception Web.Slug.SlugException instance Data.Aeson.Types.Class.ToJSON Web.Slug.Slug instance Data.Aeson.Types.Class.FromJSON Web.Slug.Slug instance Database.Persist.Class.PersistField.PersistField Web.Slug.Slug instance Database.Persist.Sql.Class.PersistFieldSql Web.Slug.Slug instance Web.PathPieces.PathPiece Web.Slug.Slug