{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Polly.Types.LanguageCode
( LanguageCode
( ..,
LanguageCode_Arb,
LanguageCode_Cmn_CN,
LanguageCode_Cy_GB,
LanguageCode_Da_DK,
LanguageCode_De_DE,
LanguageCode_En_AU,
LanguageCode_En_GB,
LanguageCode_En_GB_WLS,
LanguageCode_En_IN,
LanguageCode_En_NZ,
LanguageCode_En_US,
LanguageCode_En_ZA,
LanguageCode_Es_ES,
LanguageCode_Es_MX,
LanguageCode_Es_US,
LanguageCode_Fr_CA,
LanguageCode_Fr_FR,
LanguageCode_Hi_IN,
LanguageCode_Is_IS,
LanguageCode_It_IT,
LanguageCode_Ja_JP,
LanguageCode_Ko_KR,
LanguageCode_Nb_NO,
LanguageCode_Nl_NL,
LanguageCode_Pl_PL,
LanguageCode_Pt_BR,
LanguageCode_Pt_PT,
LanguageCode_Ro_RO,
LanguageCode_Ru_RU,
LanguageCode_Sv_SE,
LanguageCode_Tr_TR
),
)
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_Arb :: LanguageCode
pattern $bLanguageCode_Arb :: LanguageCode
$mLanguageCode_Arb :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Arb = LanguageCode' "arb"
pattern LanguageCode_Cmn_CN :: LanguageCode
pattern $bLanguageCode_Cmn_CN :: LanguageCode
$mLanguageCode_Cmn_CN :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Cmn_CN = LanguageCode' "cmn-CN"
pattern LanguageCode_Cy_GB :: LanguageCode
pattern $bLanguageCode_Cy_GB :: LanguageCode
$mLanguageCode_Cy_GB :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Cy_GB = LanguageCode' "cy-GB"
pattern LanguageCode_Da_DK :: LanguageCode
pattern $bLanguageCode_Da_DK :: LanguageCode
$mLanguageCode_Da_DK :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Da_DK = LanguageCode' "da-DK"
pattern LanguageCode_De_DE :: LanguageCode
pattern $bLanguageCode_De_DE :: LanguageCode
$mLanguageCode_De_DE :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_De_DE = LanguageCode' "de-DE"
pattern LanguageCode_En_AU :: LanguageCode
pattern $bLanguageCode_En_AU :: LanguageCode
$mLanguageCode_En_AU :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_En_AU = LanguageCode' "en-AU"
pattern LanguageCode_En_GB :: LanguageCode
pattern $bLanguageCode_En_GB :: LanguageCode
$mLanguageCode_En_GB :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_En_GB = LanguageCode' "en-GB"
pattern LanguageCode_En_GB_WLS :: LanguageCode
pattern $bLanguageCode_En_GB_WLS :: LanguageCode
$mLanguageCode_En_GB_WLS :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_En_GB_WLS = LanguageCode' "en-GB-WLS"
pattern LanguageCode_En_IN :: LanguageCode
pattern $bLanguageCode_En_IN :: LanguageCode
$mLanguageCode_En_IN :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_En_IN = LanguageCode' "en-IN"
pattern LanguageCode_En_NZ :: LanguageCode
pattern $bLanguageCode_En_NZ :: LanguageCode
$mLanguageCode_En_NZ :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_En_NZ = LanguageCode' "en-NZ"
pattern LanguageCode_En_US :: LanguageCode
pattern $bLanguageCode_En_US :: LanguageCode
$mLanguageCode_En_US :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_En_US = LanguageCode' "en-US"
pattern LanguageCode_En_ZA :: LanguageCode
pattern $bLanguageCode_En_ZA :: LanguageCode
$mLanguageCode_En_ZA :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_En_ZA = LanguageCode' "en-ZA"
pattern LanguageCode_Es_ES :: LanguageCode
pattern $bLanguageCode_Es_ES :: LanguageCode
$mLanguageCode_Es_ES :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Es_ES = LanguageCode' "es-ES"
pattern LanguageCode_Es_MX :: LanguageCode
pattern $bLanguageCode_Es_MX :: LanguageCode
$mLanguageCode_Es_MX :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Es_MX = LanguageCode' "es-MX"
pattern LanguageCode_Es_US :: LanguageCode
pattern $bLanguageCode_Es_US :: LanguageCode
$mLanguageCode_Es_US :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Es_US = LanguageCode' "es-US"
pattern LanguageCode_Fr_CA :: LanguageCode
pattern $bLanguageCode_Fr_CA :: LanguageCode
$mLanguageCode_Fr_CA :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Fr_CA = LanguageCode' "fr-CA"
pattern LanguageCode_Fr_FR :: LanguageCode
pattern $bLanguageCode_Fr_FR :: LanguageCode
$mLanguageCode_Fr_FR :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Fr_FR = LanguageCode' "fr-FR"
pattern LanguageCode_Hi_IN :: LanguageCode
pattern $bLanguageCode_Hi_IN :: LanguageCode
$mLanguageCode_Hi_IN :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Hi_IN = LanguageCode' "hi-IN"
pattern LanguageCode_Is_IS :: LanguageCode
pattern $bLanguageCode_Is_IS :: LanguageCode
$mLanguageCode_Is_IS :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Is_IS = LanguageCode' "is-IS"
pattern LanguageCode_It_IT :: LanguageCode
pattern $bLanguageCode_It_IT :: LanguageCode
$mLanguageCode_It_IT :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_It_IT = LanguageCode' "it-IT"
pattern LanguageCode_Ja_JP :: LanguageCode
pattern $bLanguageCode_Ja_JP :: LanguageCode
$mLanguageCode_Ja_JP :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Ja_JP = LanguageCode' "ja-JP"
pattern LanguageCode_Ko_KR :: LanguageCode
pattern $bLanguageCode_Ko_KR :: LanguageCode
$mLanguageCode_Ko_KR :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Ko_KR = LanguageCode' "ko-KR"
pattern LanguageCode_Nb_NO :: LanguageCode
pattern $bLanguageCode_Nb_NO :: LanguageCode
$mLanguageCode_Nb_NO :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Nb_NO = LanguageCode' "nb-NO"
pattern LanguageCode_Nl_NL :: LanguageCode
pattern $bLanguageCode_Nl_NL :: LanguageCode
$mLanguageCode_Nl_NL :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Nl_NL = LanguageCode' "nl-NL"
pattern LanguageCode_Pl_PL :: LanguageCode
pattern $bLanguageCode_Pl_PL :: LanguageCode
$mLanguageCode_Pl_PL :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Pl_PL = LanguageCode' "pl-PL"
pattern LanguageCode_Pt_BR :: LanguageCode
pattern $bLanguageCode_Pt_BR :: LanguageCode
$mLanguageCode_Pt_BR :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Pt_BR = LanguageCode' "pt-BR"
pattern LanguageCode_Pt_PT :: LanguageCode
pattern $bLanguageCode_Pt_PT :: LanguageCode
$mLanguageCode_Pt_PT :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Pt_PT = LanguageCode' "pt-PT"
pattern LanguageCode_Ro_RO :: LanguageCode
pattern $bLanguageCode_Ro_RO :: LanguageCode
$mLanguageCode_Ro_RO :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Ro_RO = LanguageCode' "ro-RO"
pattern LanguageCode_Ru_RU :: LanguageCode
pattern $bLanguageCode_Ru_RU :: LanguageCode
$mLanguageCode_Ru_RU :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Ru_RU = LanguageCode' "ru-RU"
pattern LanguageCode_Sv_SE :: LanguageCode
pattern $bLanguageCode_Sv_SE :: LanguageCode
$mLanguageCode_Sv_SE :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Sv_SE = LanguageCode' "sv-SE"
pattern LanguageCode_Tr_TR :: LanguageCode
pattern $bLanguageCode_Tr_TR :: LanguageCode
$mLanguageCode_Tr_TR :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_Tr_TR = LanguageCode' "tr-TR"
{-# COMPLETE
LanguageCode_Arb,
LanguageCode_Cmn_CN,
LanguageCode_Cy_GB,
LanguageCode_Da_DK,
LanguageCode_De_DE,
LanguageCode_En_AU,
LanguageCode_En_GB,
LanguageCode_En_GB_WLS,
LanguageCode_En_IN,
LanguageCode_En_NZ,
LanguageCode_En_US,
LanguageCode_En_ZA,
LanguageCode_Es_ES,
LanguageCode_Es_MX,
LanguageCode_Es_US,
LanguageCode_Fr_CA,
LanguageCode_Fr_FR,
LanguageCode_Hi_IN,
LanguageCode_Is_IS,
LanguageCode_It_IT,
LanguageCode_Ja_JP,
LanguageCode_Ko_KR,
LanguageCode_Nb_NO,
LanguageCode_Nl_NL,
LanguageCode_Pl_PL,
LanguageCode_Pt_BR,
LanguageCode_Pt_PT,
LanguageCode_Ro_RO,
LanguageCode_Ru_RU,
LanguageCode_Sv_SE,
LanguageCode_Tr_TR,
LanguageCode'
#-}