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 |
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
fromTextError :: Text -> Parser a #
takeLowerText :: Parser Text #
ByteString
class ToByteString a where #
toBS :: a -> ByteString #