| Copyright | (c) 2013-2017 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 |
| Language | Haskell2010 |
Network.AWS.Data
Contents
Description
Re-exports some of the underlying textual and byte serialisation mechanisms for convenience.
Many of the AWS identifiers like S3's ObjectVersionId or ETag,
as well as any nullary sum types such as Region have ToText
and ToByteString instances, making it convenient to use the type classes
to convert a value to its textual representation.
- class FromText a where
- fromText :: FromText a => Text -> Either String a
- fromTextError :: Text -> Parser a
- takeLowerText :: Parser Text
- class ToText a where
- class ToByteString a where
- class ToLog a where
Text
Minimal complete definition
Instances
fromTextError :: Text -> Parser a #
takeLowerText :: Parser Text #
Minimal complete definition
Instances
ByteString
class ToByteString a where #
Methods
toBS :: a -> ByteString #
Instances
Log Messages
Minimal complete definition
Instances