{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Rekognition.Types.TextTypes
( TextTypes
( ..,
TextTypes_LINE,
TextTypes_WORD
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TextTypes = TextTypes'
{ TextTypes -> Text
fromTextTypes ::
Core.Text
}
deriving stock
( Int -> TextTypes -> ShowS
[TextTypes] -> ShowS
TextTypes -> String
(Int -> TextTypes -> ShowS)
-> (TextTypes -> String)
-> ([TextTypes] -> ShowS)
-> Show TextTypes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TextTypes] -> ShowS
$cshowList :: [TextTypes] -> ShowS
show :: TextTypes -> String
$cshow :: TextTypes -> String
showsPrec :: Int -> TextTypes -> ShowS
$cshowsPrec :: Int -> TextTypes -> ShowS
Prelude.Show,
ReadPrec [TextTypes]
ReadPrec TextTypes
Int -> ReadS TextTypes
ReadS [TextTypes]
(Int -> ReadS TextTypes)
-> ReadS [TextTypes]
-> ReadPrec TextTypes
-> ReadPrec [TextTypes]
-> Read TextTypes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TextTypes]
$creadListPrec :: ReadPrec [TextTypes]
readPrec :: ReadPrec TextTypes
$creadPrec :: ReadPrec TextTypes
readList :: ReadS [TextTypes]
$creadList :: ReadS [TextTypes]
readsPrec :: Int -> ReadS TextTypes
$creadsPrec :: Int -> ReadS TextTypes
Prelude.Read,
TextTypes -> TextTypes -> Bool
(TextTypes -> TextTypes -> Bool)
-> (TextTypes -> TextTypes -> Bool) -> Eq TextTypes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TextTypes -> TextTypes -> Bool
$c/= :: TextTypes -> TextTypes -> Bool
== :: TextTypes -> TextTypes -> Bool
$c== :: TextTypes -> TextTypes -> Bool
Prelude.Eq,
Eq TextTypes
Eq TextTypes
-> (TextTypes -> TextTypes -> Ordering)
-> (TextTypes -> TextTypes -> Bool)
-> (TextTypes -> TextTypes -> Bool)
-> (TextTypes -> TextTypes -> Bool)
-> (TextTypes -> TextTypes -> Bool)
-> (TextTypes -> TextTypes -> TextTypes)
-> (TextTypes -> TextTypes -> TextTypes)
-> Ord TextTypes
TextTypes -> TextTypes -> Bool
TextTypes -> TextTypes -> Ordering
TextTypes -> TextTypes -> TextTypes
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: TextTypes -> TextTypes -> TextTypes
$cmin :: TextTypes -> TextTypes -> TextTypes
max :: TextTypes -> TextTypes -> TextTypes
$cmax :: TextTypes -> TextTypes -> TextTypes
>= :: TextTypes -> TextTypes -> Bool
$c>= :: TextTypes -> TextTypes -> Bool
> :: TextTypes -> TextTypes -> Bool
$c> :: TextTypes -> TextTypes -> Bool
<= :: TextTypes -> TextTypes -> Bool
$c<= :: TextTypes -> TextTypes -> Bool
< :: TextTypes -> TextTypes -> Bool
$c< :: TextTypes -> TextTypes -> Bool
compare :: TextTypes -> TextTypes -> Ordering
$ccompare :: TextTypes -> TextTypes -> Ordering
$cp1Ord :: Eq TextTypes
Prelude.Ord,
(forall x. TextTypes -> Rep TextTypes x)
-> (forall x. Rep TextTypes x -> TextTypes) -> Generic TextTypes
forall x. Rep TextTypes x -> TextTypes
forall x. TextTypes -> Rep TextTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TextTypes x -> TextTypes
$cfrom :: forall x. TextTypes -> Rep TextTypes x
Prelude.Generic
)
deriving newtype
( Int -> TextTypes -> Int
TextTypes -> Int
(Int -> TextTypes -> Int)
-> (TextTypes -> Int) -> Hashable TextTypes
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TextTypes -> Int
$chash :: TextTypes -> Int
hashWithSalt :: Int -> TextTypes -> Int
$chashWithSalt :: Int -> TextTypes -> Int
Prelude.Hashable,
TextTypes -> ()
(TextTypes -> ()) -> NFData TextTypes
forall a. (a -> ()) -> NFData a
rnf :: TextTypes -> ()
$crnf :: TextTypes -> ()
Prelude.NFData,
Text -> Either String TextTypes
(Text -> Either String TextTypes) -> FromText TextTypes
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TextTypes
$cfromText :: Text -> Either String TextTypes
Core.FromText,
TextTypes -> Text
(TextTypes -> Text) -> ToText TextTypes
forall a. (a -> Text) -> ToText a
toText :: TextTypes -> Text
$ctoText :: TextTypes -> Text
Core.ToText,
TextTypes -> ByteString
(TextTypes -> ByteString) -> ToByteString TextTypes
forall a. (a -> ByteString) -> ToByteString a
toBS :: TextTypes -> ByteString
$ctoBS :: TextTypes -> ByteString
Core.ToByteString,
TextTypes -> ByteStringBuilder
(TextTypes -> ByteStringBuilder) -> ToLog TextTypes
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TextTypes -> ByteStringBuilder
$cbuild :: TextTypes -> ByteStringBuilder
Core.ToLog,
HeaderName -> TextTypes -> [Header]
(HeaderName -> TextTypes -> [Header]) -> ToHeader TextTypes
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TextTypes -> [Header]
$ctoHeader :: HeaderName -> TextTypes -> [Header]
Core.ToHeader,
TextTypes -> QueryString
(TextTypes -> QueryString) -> ToQuery TextTypes
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TextTypes -> QueryString
$ctoQuery :: TextTypes -> QueryString
Core.ToQuery,
Value -> Parser [TextTypes]
Value -> Parser TextTypes
(Value -> Parser TextTypes)
-> (Value -> Parser [TextTypes]) -> FromJSON TextTypes
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TextTypes]
$cparseJSONList :: Value -> Parser [TextTypes]
parseJSON :: Value -> Parser TextTypes
$cparseJSON :: Value -> Parser TextTypes
Core.FromJSON,
FromJSONKeyFunction [TextTypes]
FromJSONKeyFunction TextTypes
FromJSONKeyFunction TextTypes
-> FromJSONKeyFunction [TextTypes] -> FromJSONKey TextTypes
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TextTypes]
$cfromJSONKeyList :: FromJSONKeyFunction [TextTypes]
fromJSONKey :: FromJSONKeyFunction TextTypes
$cfromJSONKey :: FromJSONKeyFunction TextTypes
Core.FromJSONKey,
[TextTypes] -> Encoding
[TextTypes] -> Value
TextTypes -> Encoding
TextTypes -> Value
(TextTypes -> Value)
-> (TextTypes -> Encoding)
-> ([TextTypes] -> Value)
-> ([TextTypes] -> Encoding)
-> ToJSON TextTypes
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TextTypes] -> Encoding
$ctoEncodingList :: [TextTypes] -> Encoding
toJSONList :: [TextTypes] -> Value
$ctoJSONList :: [TextTypes] -> Value
toEncoding :: TextTypes -> Encoding
$ctoEncoding :: TextTypes -> Encoding
toJSON :: TextTypes -> Value
$ctoJSON :: TextTypes -> Value
Core.ToJSON,
ToJSONKeyFunction [TextTypes]
ToJSONKeyFunction TextTypes
ToJSONKeyFunction TextTypes
-> ToJSONKeyFunction [TextTypes] -> ToJSONKey TextTypes
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TextTypes]
$ctoJSONKeyList :: ToJSONKeyFunction [TextTypes]
toJSONKey :: ToJSONKeyFunction TextTypes
$ctoJSONKey :: ToJSONKeyFunction TextTypes
Core.ToJSONKey,
[Node] -> Either String TextTypes
([Node] -> Either String TextTypes) -> FromXML TextTypes
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TextTypes
$cparseXML :: [Node] -> Either String TextTypes
Core.FromXML,
TextTypes -> XML
(TextTypes -> XML) -> ToXML TextTypes
forall a. (a -> XML) -> ToXML a
toXML :: TextTypes -> XML
$ctoXML :: TextTypes -> XML
Core.ToXML
)
pattern TextTypes_LINE :: TextTypes
pattern $bTextTypes_LINE :: TextTypes
$mTextTypes_LINE :: forall r. TextTypes -> (Void# -> r) -> (Void# -> r) -> r
TextTypes_LINE = TextTypes' "LINE"
pattern TextTypes_WORD :: TextTypes
pattern $bTextTypes_WORD :: TextTypes
$mTextTypes_WORD :: forall r. TextTypes -> (Void# -> r) -> (Void# -> r) -> r
TextTypes_WORD = TextTypes' "WORD"
{-# COMPLETE
TextTypes_LINE,
TextTypes_WORD,
TextTypes'
#-}