{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Comprehend.Types.LanguageCode
( LanguageCode
( ..,
LanguageCode_Ar,
LanguageCode_De,
LanguageCode_En,
LanguageCode_Es,
LanguageCode_Fr,
LanguageCode_Hi,
LanguageCode_It,
LanguageCode_Ja,
LanguageCode_Ko,
LanguageCode_Pt,
LanguageCode_Zh,
LanguageCode_Zh_TW
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype LanguageCode = LanguageCode'
{ LanguageCode -> Text
fromLanguageCode ::
Core.Text
}
deriving stock
( Int -> LanguageCode -> ShowS
[LanguageCode] -> ShowS
LanguageCode -> String
(Int -> LanguageCode -> ShowS)
-> (LanguageCode -> String)
-> ([LanguageCode] -> ShowS)
-> Show LanguageCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LanguageCode] -> ShowS
$cshowList :: [LanguageCode] -> ShowS
show :: LanguageCode -> String
$cshow :: LanguageCode -> String
showsPrec :: Int -> LanguageCode -> ShowS
$cshowsPrec :: Int -> LanguageCode -> ShowS
Prelude.Show,
ReadPrec [LanguageCode]
ReadPrec LanguageCode
Int -> ReadS LanguageCode
ReadS [LanguageCode]
(Int -> ReadS LanguageCode)
-> ReadS [LanguageCode]
-> ReadPrec LanguageCode
-> ReadPrec [LanguageCode]
-> Read LanguageCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LanguageCode]
$creadListPrec :: ReadPrec [LanguageCode]
readPrec :: ReadPrec LanguageCode
$creadPrec :: ReadPrec LanguageCode
readList :: ReadS [LanguageCode]
$creadList :: ReadS [LanguageCode]
readsPrec :: Int -> ReadS LanguageCode
$creadsPrec :: Int -> ReadS LanguageCode
Prelude.Read,
LanguageCode -> LanguageCode -> Bool
(LanguageCode -> LanguageCode -> Bool)
-> (LanguageCode -> LanguageCode -> Bool) -> Eq LanguageCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LanguageCode -> LanguageCode -> Bool
$c/= :: LanguageCode -> LanguageCode -> Bool
== :: LanguageCode -> LanguageCode -> Bool
$c== :: LanguageCode -> LanguageCode -> Bool
Prelude.Eq,
Eq LanguageCode
Eq LanguageCode
-> (LanguageCode -> LanguageCode -> Ordering)
-> (LanguageCode -> LanguageCode -> Bool)
-> (LanguageCode -> LanguageCode -> Bool)
-> (LanguageCode -> LanguageCode -> Bool)
-> (LanguageCode -> LanguageCode -> Bool)
-> (LanguageCode -> LanguageCode -> LanguageCode)
-> (LanguageCode -> LanguageCode -> LanguageCode)
-> Ord LanguageCode
LanguageCode -> LanguageCode -> Bool
LanguageCode -> LanguageCode -> Ordering
LanguageCode -> LanguageCode -> LanguageCode
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 :: LanguageCode -> LanguageCode -> LanguageCode
$cmin :: LanguageCode -> LanguageCode -> LanguageCode
max :: LanguageCode -> LanguageCode -> LanguageCode
$cmax :: LanguageCode -> LanguageCode -> LanguageCode
>= :: LanguageCode -> LanguageCode -> Bool
$c>= :: LanguageCode -> LanguageCode -> Bool
> :: LanguageCode -> LanguageCode -> Bool
$c> :: LanguageCode -> LanguageCode -> Bool
<= :: LanguageCode -> LanguageCode -> Bool
$c<= :: LanguageCode -> LanguageCode -> Bool
< :: LanguageCode -> LanguageCode -> Bool
$c< :: LanguageCode -> LanguageCode -> Bool
compare :: LanguageCode -> LanguageCode -> Ordering
$ccompare :: LanguageCode -> LanguageCode -> Ordering
$cp1Ord :: Eq LanguageCode
Prelude.Ord,
(forall x. LanguageCode -> Rep LanguageCode x)
-> (forall x. Rep LanguageCode x -> LanguageCode)
-> Generic LanguageCode
forall x. Rep LanguageCode x -> LanguageCode
forall x. LanguageCode -> Rep LanguageCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LanguageCode x -> LanguageCode
$cfrom :: forall x. LanguageCode -> Rep LanguageCode x
Prelude.Generic
)
deriving newtype
( Int -> LanguageCode -> Int
LanguageCode -> Int
(Int -> LanguageCode -> Int)
-> (LanguageCode -> Int) -> Hashable LanguageCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LanguageCode -> Int
$chash :: LanguageCode -> Int
hashWithSalt :: Int -> LanguageCode -> Int
$chashWithSalt :: Int -> LanguageCode -> Int
Prelude.Hashable,
LanguageCode -> ()
(LanguageCode -> ()) -> NFData LanguageCode
forall a. (a -> ()) -> NFData a
rnf :: LanguageCode -> ()
$crnf :: LanguageCode -> ()
Prelude.NFData,
Text -> Either String LanguageCode
(Text -> Either String LanguageCode) -> FromText LanguageCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LanguageCode
$cfromText :: Text -> Either String LanguageCode
Core.FromText,
LanguageCode -> Text
(LanguageCode -> Text) -> ToText LanguageCode
forall a. (a -> Text) -> ToText a
toText :: LanguageCode -> Text
$ctoText :: LanguageCode -> Text
Core.ToText,
LanguageCode -> ByteString
(LanguageCode -> ByteString) -> ToByteString LanguageCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: LanguageCode -> ByteString
$ctoBS :: LanguageCode -> ByteString
Core.ToByteString,
LanguageCode -> ByteStringBuilder
(LanguageCode -> ByteStringBuilder) -> ToLog LanguageCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LanguageCode -> ByteStringBuilder
$cbuild :: LanguageCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> LanguageCode -> [Header]
(HeaderName -> LanguageCode -> [Header]) -> ToHeader LanguageCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LanguageCode -> [Header]
$ctoHeader :: HeaderName -> LanguageCode -> [Header]
Core.ToHeader,
LanguageCode -> QueryString
(LanguageCode -> QueryString) -> ToQuery LanguageCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LanguageCode -> QueryString
$ctoQuery :: LanguageCode -> QueryString
Core.ToQuery,
Value -> Parser [LanguageCode]
Value -> Parser LanguageCode
(Value -> Parser LanguageCode)
-> (Value -> Parser [LanguageCode]) -> FromJSON LanguageCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LanguageCode]
$cparseJSONList :: Value -> Parser [LanguageCode]
parseJSON :: Value -> Parser LanguageCode
$cparseJSON :: Value -> Parser LanguageCode
Core.FromJSON,
FromJSONKeyFunction [LanguageCode]
FromJSONKeyFunction LanguageCode
FromJSONKeyFunction LanguageCode
-> FromJSONKeyFunction [LanguageCode] -> FromJSONKey LanguageCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LanguageCode]
$cfromJSONKeyList :: FromJSONKeyFunction [LanguageCode]
fromJSONKey :: FromJSONKeyFunction LanguageCode
$cfromJSONKey :: FromJSONKeyFunction LanguageCode
Core.FromJSONKey,
[LanguageCode] -> Encoding
[LanguageCode] -> Value
LanguageCode -> Encoding
LanguageCode -> Value
(LanguageCode -> Value)
-> (LanguageCode -> Encoding)
-> ([LanguageCode] -> Value)
-> ([LanguageCode] -> Encoding)
-> ToJSON LanguageCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LanguageCode] -> Encoding
$ctoEncodingList :: [LanguageCode] -> Encoding
toJSONList :: [LanguageCode] -> Value
$ctoJSONList :: [LanguageCode] -> Value
toEncoding :: LanguageCode -> Encoding
$ctoEncoding :: LanguageCode -> Encoding
toJSON :: LanguageCode -> Value
$ctoJSON :: LanguageCode -> Value
Core.ToJSON,
ToJSONKeyFunction [LanguageCode]
ToJSONKeyFunction LanguageCode
ToJSONKeyFunction LanguageCode
-> ToJSONKeyFunction [LanguageCode] -> ToJSONKey LanguageCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LanguageCode]
$ctoJSONKeyList :: ToJSONKeyFunction [LanguageCode]
toJSONKey :: ToJSONKeyFunction LanguageCode
$ctoJSONKey :: ToJSONKeyFunction LanguageCode
Core.ToJSONKey,
[Node] -> Either String LanguageCode
([Node] -> Either String LanguageCode) -> FromXML LanguageCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LanguageCode
$cparseXML :: [Node] -> Either String LanguageCode
Core.FromXML,
LanguageCode -> XML
(LanguageCode -> XML) -> ToXML LanguageCode
forall a. (a -> XML) -> ToXML a
toXML :: LanguageCode -> XML
$ctoXML :: LanguageCode -> XML
Core.ToXML
)
pattern LanguageCode_Ar :: LanguageCode
pattern $bLanguageCode_Ar :: LanguageCode
$mLanguageCode_Ar :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Ar = LanguageCode' "ar"
pattern LanguageCode_De :: LanguageCode
pattern $bLanguageCode_De :: LanguageCode
$mLanguageCode_De :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_De = LanguageCode' "de"
pattern LanguageCode_En :: LanguageCode
pattern $bLanguageCode_En :: LanguageCode
$mLanguageCode_En :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_En = LanguageCode' "en"
pattern LanguageCode_Es :: LanguageCode
pattern $bLanguageCode_Es :: LanguageCode
$mLanguageCode_Es :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Es = LanguageCode' "es"
pattern LanguageCode_Fr :: LanguageCode
pattern $bLanguageCode_Fr :: LanguageCode
$mLanguageCode_Fr :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Fr = LanguageCode' "fr"
pattern LanguageCode_Hi :: LanguageCode
pattern $bLanguageCode_Hi :: LanguageCode
$mLanguageCode_Hi :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Hi = LanguageCode' "hi"
pattern LanguageCode_It :: LanguageCode
pattern $bLanguageCode_It :: LanguageCode
$mLanguageCode_It :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_It = LanguageCode' "it"
pattern LanguageCode_Ja :: LanguageCode
pattern $bLanguageCode_Ja :: LanguageCode
$mLanguageCode_Ja :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Ja = LanguageCode' "ja"
pattern LanguageCode_Ko :: LanguageCode
pattern $bLanguageCode_Ko :: LanguageCode
$mLanguageCode_Ko :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Ko = LanguageCode' "ko"
pattern LanguageCode_Pt :: LanguageCode
pattern $bLanguageCode_Pt :: LanguageCode
$mLanguageCode_Pt :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Pt = LanguageCode' "pt"
pattern LanguageCode_Zh :: LanguageCode
pattern $bLanguageCode_Zh :: LanguageCode
$mLanguageCode_Zh :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Zh = LanguageCode' "zh"
pattern LanguageCode_Zh_TW :: LanguageCode
pattern $bLanguageCode_Zh_TW :: LanguageCode
$mLanguageCode_Zh_TW :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Zh_TW = LanguageCode' "zh-TW"
{-# COMPLETE
LanguageCode_Ar,
LanguageCode_De,
LanguageCode_En,
LanguageCode_Es,
LanguageCode_Fr,
LanguageCode_Hi,
LanguageCode_It,
LanguageCode_Ja,
LanguageCode_Ko,
LanguageCode_Pt,
LanguageCode_Zh,
LanguageCode_Zh_TW,
LanguageCode'
#-}