Copyright | (c) Frederick Pringle 2025 |
---|---|
License | BSD-3-Clause |
Maintainer | freddyjepringle@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Servant.API.Routes.Internal.Path
Description
Internal module, subject to change.
Synopsis
- newtype Path = Path {}
- renderPath :: Path -> Text
- pathSeparator :: Text
- data PathPart
Documentation
Simple representation of a URL path.
renderPath :: Path -> Text Source #
Pretty-print a path, including the leading /
.
pathSeparator :: Text Source #
Standard path separator "/"
.
A segment of an API path (between "/"
s).
Constructors
StringPart Text | Just a plain path part, e.g. |
CapturePart Text TypeRep | Capture a path part as a variable. |
CaptureAllPart Text TypeRep | Capture all path part as a list of variables. |
Instances
IsString PathPart Source # | |
Defined in Servant.API.Routes.Internal.Path Methods fromString :: String -> PathPart Source # | |
Show PathPart Source # | |
Eq PathPart Source # | |
Ord PathPart Source # | |
Defined in Servant.API.Routes.Internal.Path |