{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.WorkDocs.Types.LocaleType
( LocaleType
( ..,
LocaleType_De,
LocaleType_Default,
LocaleType_En,
LocaleType_Es,
LocaleType_Fr,
LocaleType_Ja,
LocaleType_Ko,
LocaleType_Pt_BR,
LocaleType_Ru,
LocaleType_Zh_CN,
LocaleType_Zh_TW
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype LocaleType = LocaleType'
{ LocaleType -> Text
fromLocaleType ::
Core.Text
}
deriving stock
( Int -> LocaleType -> ShowS
[LocaleType] -> ShowS
LocaleType -> String
(Int -> LocaleType -> ShowS)
-> (LocaleType -> String)
-> ([LocaleType] -> ShowS)
-> Show LocaleType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LocaleType] -> ShowS
$cshowList :: [LocaleType] -> ShowS
show :: LocaleType -> String
$cshow :: LocaleType -> String
showsPrec :: Int -> LocaleType -> ShowS
$cshowsPrec :: Int -> LocaleType -> ShowS
Prelude.Show,
ReadPrec [LocaleType]
ReadPrec LocaleType
Int -> ReadS LocaleType
ReadS [LocaleType]
(Int -> ReadS LocaleType)
-> ReadS [LocaleType]
-> ReadPrec LocaleType
-> ReadPrec [LocaleType]
-> Read LocaleType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LocaleType]
$creadListPrec :: ReadPrec [LocaleType]
readPrec :: ReadPrec LocaleType
$creadPrec :: ReadPrec LocaleType
readList :: ReadS [LocaleType]
$creadList :: ReadS [LocaleType]
readsPrec :: Int -> ReadS LocaleType
$creadsPrec :: Int -> ReadS LocaleType
Prelude.Read,
LocaleType -> LocaleType -> Bool
(LocaleType -> LocaleType -> Bool)
-> (LocaleType -> LocaleType -> Bool) -> Eq LocaleType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LocaleType -> LocaleType -> Bool
$c/= :: LocaleType -> LocaleType -> Bool
== :: LocaleType -> LocaleType -> Bool
$c== :: LocaleType -> LocaleType -> Bool
Prelude.Eq,
Eq LocaleType
Eq LocaleType
-> (LocaleType -> LocaleType -> Ordering)
-> (LocaleType -> LocaleType -> Bool)
-> (LocaleType -> LocaleType -> Bool)
-> (LocaleType -> LocaleType -> Bool)
-> (LocaleType -> LocaleType -> Bool)
-> (LocaleType -> LocaleType -> LocaleType)
-> (LocaleType -> LocaleType -> LocaleType)
-> Ord LocaleType
LocaleType -> LocaleType -> Bool
LocaleType -> LocaleType -> Ordering
LocaleType -> LocaleType -> LocaleType
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 :: LocaleType -> LocaleType -> LocaleType
$cmin :: LocaleType -> LocaleType -> LocaleType
max :: LocaleType -> LocaleType -> LocaleType
$cmax :: LocaleType -> LocaleType -> LocaleType
>= :: LocaleType -> LocaleType -> Bool
$c>= :: LocaleType -> LocaleType -> Bool
> :: LocaleType -> LocaleType -> Bool
$c> :: LocaleType -> LocaleType -> Bool
<= :: LocaleType -> LocaleType -> Bool
$c<= :: LocaleType -> LocaleType -> Bool
< :: LocaleType -> LocaleType -> Bool
$c< :: LocaleType -> LocaleType -> Bool
compare :: LocaleType -> LocaleType -> Ordering
$ccompare :: LocaleType -> LocaleType -> Ordering
$cp1Ord :: Eq LocaleType
Prelude.Ord,
(forall x. LocaleType -> Rep LocaleType x)
-> (forall x. Rep LocaleType x -> LocaleType) -> Generic LocaleType
forall x. Rep LocaleType x -> LocaleType
forall x. LocaleType -> Rep LocaleType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LocaleType x -> LocaleType
$cfrom :: forall x. LocaleType -> Rep LocaleType x
Prelude.Generic
)
deriving newtype
( Int -> LocaleType -> Int
LocaleType -> Int
(Int -> LocaleType -> Int)
-> (LocaleType -> Int) -> Hashable LocaleType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LocaleType -> Int
$chash :: LocaleType -> Int
hashWithSalt :: Int -> LocaleType -> Int
$chashWithSalt :: Int -> LocaleType -> Int
Prelude.Hashable,
LocaleType -> ()
(LocaleType -> ()) -> NFData LocaleType
forall a. (a -> ()) -> NFData a
rnf :: LocaleType -> ()
$crnf :: LocaleType -> ()
Prelude.NFData,
Text -> Either String LocaleType
(Text -> Either String LocaleType) -> FromText LocaleType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LocaleType
$cfromText :: Text -> Either String LocaleType
Core.FromText,
LocaleType -> Text
(LocaleType -> Text) -> ToText LocaleType
forall a. (a -> Text) -> ToText a
toText :: LocaleType -> Text
$ctoText :: LocaleType -> Text
Core.ToText,
LocaleType -> ByteString
(LocaleType -> ByteString) -> ToByteString LocaleType
forall a. (a -> ByteString) -> ToByteString a
toBS :: LocaleType -> ByteString
$ctoBS :: LocaleType -> ByteString
Core.ToByteString,
LocaleType -> ByteStringBuilder
(LocaleType -> ByteStringBuilder) -> ToLog LocaleType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LocaleType -> ByteStringBuilder
$cbuild :: LocaleType -> ByteStringBuilder
Core.ToLog,
HeaderName -> LocaleType -> [Header]
(HeaderName -> LocaleType -> [Header]) -> ToHeader LocaleType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LocaleType -> [Header]
$ctoHeader :: HeaderName -> LocaleType -> [Header]
Core.ToHeader,
LocaleType -> QueryString
(LocaleType -> QueryString) -> ToQuery LocaleType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LocaleType -> QueryString
$ctoQuery :: LocaleType -> QueryString
Core.ToQuery,
Value -> Parser [LocaleType]
Value -> Parser LocaleType
(Value -> Parser LocaleType)
-> (Value -> Parser [LocaleType]) -> FromJSON LocaleType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LocaleType]
$cparseJSONList :: Value -> Parser [LocaleType]
parseJSON :: Value -> Parser LocaleType
$cparseJSON :: Value -> Parser LocaleType
Core.FromJSON,
FromJSONKeyFunction [LocaleType]
FromJSONKeyFunction LocaleType
FromJSONKeyFunction LocaleType
-> FromJSONKeyFunction [LocaleType] -> FromJSONKey LocaleType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LocaleType]
$cfromJSONKeyList :: FromJSONKeyFunction [LocaleType]
fromJSONKey :: FromJSONKeyFunction LocaleType
$cfromJSONKey :: FromJSONKeyFunction LocaleType
Core.FromJSONKey,
[LocaleType] -> Encoding
[LocaleType] -> Value
LocaleType -> Encoding
LocaleType -> Value
(LocaleType -> Value)
-> (LocaleType -> Encoding)
-> ([LocaleType] -> Value)
-> ([LocaleType] -> Encoding)
-> ToJSON LocaleType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LocaleType] -> Encoding
$ctoEncodingList :: [LocaleType] -> Encoding
toJSONList :: [LocaleType] -> Value
$ctoJSONList :: [LocaleType] -> Value
toEncoding :: LocaleType -> Encoding
$ctoEncoding :: LocaleType -> Encoding
toJSON :: LocaleType -> Value
$ctoJSON :: LocaleType -> Value
Core.ToJSON,
ToJSONKeyFunction [LocaleType]
ToJSONKeyFunction LocaleType
ToJSONKeyFunction LocaleType
-> ToJSONKeyFunction [LocaleType] -> ToJSONKey LocaleType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LocaleType]
$ctoJSONKeyList :: ToJSONKeyFunction [LocaleType]
toJSONKey :: ToJSONKeyFunction LocaleType
$ctoJSONKey :: ToJSONKeyFunction LocaleType
Core.ToJSONKey,
[Node] -> Either String LocaleType
([Node] -> Either String LocaleType) -> FromXML LocaleType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LocaleType
$cparseXML :: [Node] -> Either String LocaleType
Core.FromXML,
LocaleType -> XML
(LocaleType -> XML) -> ToXML LocaleType
forall a. (a -> XML) -> ToXML a
toXML :: LocaleType -> XML
$ctoXML :: LocaleType -> XML
Core.ToXML
)
pattern LocaleType_De :: LocaleType
pattern $bLocaleType_De :: LocaleType
$mLocaleType_De :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_De = LocaleType' "de"
pattern LocaleType_Default :: LocaleType
pattern $bLocaleType_Default :: LocaleType
$mLocaleType_Default :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_Default = LocaleType' "default"
pattern LocaleType_En :: LocaleType
pattern $bLocaleType_En :: LocaleType
$mLocaleType_En :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_En = LocaleType' "en"
pattern LocaleType_Es :: LocaleType
pattern $bLocaleType_Es :: LocaleType
$mLocaleType_Es :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_Es = LocaleType' "es"
pattern LocaleType_Fr :: LocaleType
pattern $bLocaleType_Fr :: LocaleType
$mLocaleType_Fr :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_Fr = LocaleType' "fr"
pattern LocaleType_Ja :: LocaleType
pattern $bLocaleType_Ja :: LocaleType
$mLocaleType_Ja :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_Ja = LocaleType' "ja"
pattern LocaleType_Ko :: LocaleType
pattern $bLocaleType_Ko :: LocaleType
$mLocaleType_Ko :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_Ko = LocaleType' "ko"
pattern LocaleType_Pt_BR :: LocaleType
pattern $bLocaleType_Pt_BR :: LocaleType
$mLocaleType_Pt_BR :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_Pt_BR = LocaleType' "pt_BR"
pattern LocaleType_Ru :: LocaleType
pattern $bLocaleType_Ru :: LocaleType
$mLocaleType_Ru :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_Ru = LocaleType' "ru"
pattern LocaleType_Zh_CN :: LocaleType
pattern $bLocaleType_Zh_CN :: LocaleType
$mLocaleType_Zh_CN :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_Zh_CN = LocaleType' "zh_CN"
pattern LocaleType_Zh_TW :: LocaleType
pattern $bLocaleType_Zh_TW :: LocaleType
$mLocaleType_Zh_TW :: forall r. LocaleType -> (Void# -> r) -> (Void# -> r) -> r
LocaleType_Zh_TW = LocaleType' "zh_TW"
{-# COMPLETE
LocaleType_De,
LocaleType_Default,
LocaleType_En,
LocaleType_Es,
LocaleType_Fr,
LocaleType_Ja,
LocaleType_Ko,
LocaleType_Pt_BR,
LocaleType_Ru,
LocaleType_Zh_CN,
LocaleType_Zh_TW,
LocaleType'
#-}