Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Path :: Encoding -> * where
- Raw :: [ByteString] -> Path 'NoEncoding
- Encoded :: [ByteString] -> Path 'Percent
- type RawPath = Path 'NoEncoding
- type EscapedPath = Path 'Percent
- class ToPath a where
- toPath :: a -> ByteString
- rawPath :: ToPath a => a -> Path 'NoEncoding
- escapePath :: Path a -> EscapedPath
- collapsePath :: Path a -> Path a
Path Types
data Path :: Encoding -> * where Source #
Raw :: [ByteString] -> Path 'NoEncoding | |
Encoded :: [ByteString] -> Path 'Percent |
Instances
Semigroup RawPath Source # | |
Monoid RawPath Source # | |
ToByteString EscapedPath Source # | |
Defined in Amazonka.Data.Path toBS :: EscapedPath -> ByteString Source # | |
ToLog EscapedPath Source # | |
Defined in Amazonka.Data.Log build :: EscapedPath -> ByteStringBuilder Source # | |
Eq (Path a) Source # | |
Show (Path a) Source # | |
type EscapedPath = Path 'Percent Source #
Constructing Paths
toPath :: a -> ByteString Source #
Instances
ToPath ByteString Source # | |
Defined in Amazonka.Data.Path toPath :: ByteString -> ByteString Source # | |
ToPath Text Source # | |
Defined in Amazonka.Data.Path toPath :: Text -> ByteString Source # |
Manipulating Paths
escapePath :: Path a -> EscapedPath Source #
collapsePath :: Path a -> Path a Source #