Copyright | (c) Frederick Pringle 2024 |
---|---|
License | BSD-3-Clause |
Maintainer | freddyjepringle@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Simple representation of URL paths.
Synopsis
- data Path
- prependPathPart :: Text -> Path -> Path
- renderPath :: Path -> Text
- rootPath :: Path
Documentation
Simple representation of a URL path. The constructor and fields are not exported since I
may change the internal implementation in the future to use Text
instead of [
.Text
]
renderPath :: Path -> Text Source #
Pretty-print a path, including the leading /
.