servant-routes
Copyright(c) Frederick Pringle 2025
LicenseBSD-3-Clause
Maintainerfrederick.pringle@fpringle.com
Safe HaskellNone
LanguageHaskell2010

Servant.API.Routes.Internal.Path

Description

Internal module, subject to change.

Synopsis

Documentation

newtype Path Source #

Simple representation of a URL path.

Constructors

Path 

Fields

Instances

Instances details
ToJSON Path Source # 
Instance details

Defined in Servant.API.Routes.Internal.Path

Show Path Source # 
Instance details

Defined in Servant.API.Routes.Internal.Path

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

Eq Path Source # 
Instance details

Defined in Servant.API.Routes.Internal.Path

Methods

(==) :: Path -> Path -> Bool #

(/=) :: Path -> Path -> Bool #

Ord Path Source # 
Instance details

Defined in Servant.API.Routes.Internal.Path

Methods

compare :: Path -> Path -> Ordering #

(<) :: Path -> Path -> Bool #

(<=) :: Path -> Path -> Bool #

(>) :: Path -> Path -> Bool #

(>=) :: Path -> Path -> Bool #

max :: Path -> Path -> Path #

min :: Path -> Path -> Path #

renderPath :: Path -> Text Source #

Pretty-print a path, including the leading /.

pathSeparator :: Text Source #

Standard path separator "/".

data PathPart Source #

A segment of an API path (between "/"s).

Constructors

StringPart Text

Just a plain path part, e.g. "api/".

CapturePart Text TypeRep

Capture a path part as a variable.

CaptureAllPart Text TypeRep

Capture all path part as a list of variables.