{-# 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.SyntaxLanguageCode
( SyntaxLanguageCode
( ..,
SyntaxLanguageCode_De,
SyntaxLanguageCode_En,
SyntaxLanguageCode_Es,
SyntaxLanguageCode_Fr,
SyntaxLanguageCode_It,
SyntaxLanguageCode_Pt
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SyntaxLanguageCode = SyntaxLanguageCode'
{ SyntaxLanguageCode -> Text
fromSyntaxLanguageCode ::
Core.Text
}
deriving stock
( Int -> SyntaxLanguageCode -> ShowS
[SyntaxLanguageCode] -> ShowS
SyntaxLanguageCode -> String
(Int -> SyntaxLanguageCode -> ShowS)
-> (SyntaxLanguageCode -> String)
-> ([SyntaxLanguageCode] -> ShowS)
-> Show SyntaxLanguageCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SyntaxLanguageCode] -> ShowS
$cshowList :: [SyntaxLanguageCode] -> ShowS
show :: SyntaxLanguageCode -> String
$cshow :: SyntaxLanguageCode -> String
showsPrec :: Int -> SyntaxLanguageCode -> ShowS
$cshowsPrec :: Int -> SyntaxLanguageCode -> ShowS
Prelude.Show,
ReadPrec [SyntaxLanguageCode]
ReadPrec SyntaxLanguageCode
Int -> ReadS SyntaxLanguageCode
ReadS [SyntaxLanguageCode]
(Int -> ReadS SyntaxLanguageCode)
-> ReadS [SyntaxLanguageCode]
-> ReadPrec SyntaxLanguageCode
-> ReadPrec [SyntaxLanguageCode]
-> Read SyntaxLanguageCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SyntaxLanguageCode]
$creadListPrec :: ReadPrec [SyntaxLanguageCode]
readPrec :: ReadPrec SyntaxLanguageCode
$creadPrec :: ReadPrec SyntaxLanguageCode
readList :: ReadS [SyntaxLanguageCode]
$creadList :: ReadS [SyntaxLanguageCode]
readsPrec :: Int -> ReadS SyntaxLanguageCode
$creadsPrec :: Int -> ReadS SyntaxLanguageCode
Prelude.Read,
SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
(SyntaxLanguageCode -> SyntaxLanguageCode -> Bool)
-> (SyntaxLanguageCode -> SyntaxLanguageCode -> Bool)
-> Eq SyntaxLanguageCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
$c/= :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
== :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
$c== :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
Prelude.Eq,
Eq SyntaxLanguageCode
Eq SyntaxLanguageCode
-> (SyntaxLanguageCode -> SyntaxLanguageCode -> Ordering)
-> (SyntaxLanguageCode -> SyntaxLanguageCode -> Bool)
-> (SyntaxLanguageCode -> SyntaxLanguageCode -> Bool)
-> (SyntaxLanguageCode -> SyntaxLanguageCode -> Bool)
-> (SyntaxLanguageCode -> SyntaxLanguageCode -> Bool)
-> (SyntaxLanguageCode -> SyntaxLanguageCode -> SyntaxLanguageCode)
-> (SyntaxLanguageCode -> SyntaxLanguageCode -> SyntaxLanguageCode)
-> Ord SyntaxLanguageCode
SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
SyntaxLanguageCode -> SyntaxLanguageCode -> Ordering
SyntaxLanguageCode -> SyntaxLanguageCode -> SyntaxLanguageCode
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 :: SyntaxLanguageCode -> SyntaxLanguageCode -> SyntaxLanguageCode
$cmin :: SyntaxLanguageCode -> SyntaxLanguageCode -> SyntaxLanguageCode
max :: SyntaxLanguageCode -> SyntaxLanguageCode -> SyntaxLanguageCode
$cmax :: SyntaxLanguageCode -> SyntaxLanguageCode -> SyntaxLanguageCode
>= :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
$c>= :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
> :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
$c> :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
<= :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
$c<= :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
< :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
$c< :: SyntaxLanguageCode -> SyntaxLanguageCode -> Bool
compare :: SyntaxLanguageCode -> SyntaxLanguageCode -> Ordering
$ccompare :: SyntaxLanguageCode -> SyntaxLanguageCode -> Ordering
$cp1Ord :: Eq SyntaxLanguageCode
Prelude.Ord,
(forall x. SyntaxLanguageCode -> Rep SyntaxLanguageCode x)
-> (forall x. Rep SyntaxLanguageCode x -> SyntaxLanguageCode)
-> Generic SyntaxLanguageCode
forall x. Rep SyntaxLanguageCode x -> SyntaxLanguageCode
forall x. SyntaxLanguageCode -> Rep SyntaxLanguageCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SyntaxLanguageCode x -> SyntaxLanguageCode
$cfrom :: forall x. SyntaxLanguageCode -> Rep SyntaxLanguageCode x
Prelude.Generic
)
deriving newtype
( Int -> SyntaxLanguageCode -> Int
SyntaxLanguageCode -> Int
(Int -> SyntaxLanguageCode -> Int)
-> (SyntaxLanguageCode -> Int) -> Hashable SyntaxLanguageCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SyntaxLanguageCode -> Int
$chash :: SyntaxLanguageCode -> Int
hashWithSalt :: Int -> SyntaxLanguageCode -> Int
$chashWithSalt :: Int -> SyntaxLanguageCode -> Int
Prelude.Hashable,
SyntaxLanguageCode -> ()
(SyntaxLanguageCode -> ()) -> NFData SyntaxLanguageCode
forall a. (a -> ()) -> NFData a
rnf :: SyntaxLanguageCode -> ()
$crnf :: SyntaxLanguageCode -> ()
Prelude.NFData,
Text -> Either String SyntaxLanguageCode
(Text -> Either String SyntaxLanguageCode)
-> FromText SyntaxLanguageCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SyntaxLanguageCode
$cfromText :: Text -> Either String SyntaxLanguageCode
Core.FromText,
SyntaxLanguageCode -> Text
(SyntaxLanguageCode -> Text) -> ToText SyntaxLanguageCode
forall a. (a -> Text) -> ToText a
toText :: SyntaxLanguageCode -> Text
$ctoText :: SyntaxLanguageCode -> Text
Core.ToText,
SyntaxLanguageCode -> ByteString
(SyntaxLanguageCode -> ByteString)
-> ToByteString SyntaxLanguageCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: SyntaxLanguageCode -> ByteString
$ctoBS :: SyntaxLanguageCode -> ByteString
Core.ToByteString,
SyntaxLanguageCode -> ByteStringBuilder
(SyntaxLanguageCode -> ByteStringBuilder)
-> ToLog SyntaxLanguageCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SyntaxLanguageCode -> ByteStringBuilder
$cbuild :: SyntaxLanguageCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> SyntaxLanguageCode -> [Header]
(HeaderName -> SyntaxLanguageCode -> [Header])
-> ToHeader SyntaxLanguageCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SyntaxLanguageCode -> [Header]
$ctoHeader :: HeaderName -> SyntaxLanguageCode -> [Header]
Core.ToHeader,
SyntaxLanguageCode -> QueryString
(SyntaxLanguageCode -> QueryString) -> ToQuery SyntaxLanguageCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SyntaxLanguageCode -> QueryString
$ctoQuery :: SyntaxLanguageCode -> QueryString
Core.ToQuery,
Value -> Parser [SyntaxLanguageCode]
Value -> Parser SyntaxLanguageCode
(Value -> Parser SyntaxLanguageCode)
-> (Value -> Parser [SyntaxLanguageCode])
-> FromJSON SyntaxLanguageCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SyntaxLanguageCode]
$cparseJSONList :: Value -> Parser [SyntaxLanguageCode]
parseJSON :: Value -> Parser SyntaxLanguageCode
$cparseJSON :: Value -> Parser SyntaxLanguageCode
Core.FromJSON,
FromJSONKeyFunction [SyntaxLanguageCode]
FromJSONKeyFunction SyntaxLanguageCode
FromJSONKeyFunction SyntaxLanguageCode
-> FromJSONKeyFunction [SyntaxLanguageCode]
-> FromJSONKey SyntaxLanguageCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SyntaxLanguageCode]
$cfromJSONKeyList :: FromJSONKeyFunction [SyntaxLanguageCode]
fromJSONKey :: FromJSONKeyFunction SyntaxLanguageCode
$cfromJSONKey :: FromJSONKeyFunction SyntaxLanguageCode
Core.FromJSONKey,
[SyntaxLanguageCode] -> Encoding
[SyntaxLanguageCode] -> Value
SyntaxLanguageCode -> Encoding
SyntaxLanguageCode -> Value
(SyntaxLanguageCode -> Value)
-> (SyntaxLanguageCode -> Encoding)
-> ([SyntaxLanguageCode] -> Value)
-> ([SyntaxLanguageCode] -> Encoding)
-> ToJSON SyntaxLanguageCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SyntaxLanguageCode] -> Encoding
$ctoEncodingList :: [SyntaxLanguageCode] -> Encoding
toJSONList :: [SyntaxLanguageCode] -> Value
$ctoJSONList :: [SyntaxLanguageCode] -> Value
toEncoding :: SyntaxLanguageCode -> Encoding
$ctoEncoding :: SyntaxLanguageCode -> Encoding
toJSON :: SyntaxLanguageCode -> Value
$ctoJSON :: SyntaxLanguageCode -> Value
Core.ToJSON,
ToJSONKeyFunction [SyntaxLanguageCode]
ToJSONKeyFunction SyntaxLanguageCode
ToJSONKeyFunction SyntaxLanguageCode
-> ToJSONKeyFunction [SyntaxLanguageCode]
-> ToJSONKey SyntaxLanguageCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SyntaxLanguageCode]
$ctoJSONKeyList :: ToJSONKeyFunction [SyntaxLanguageCode]
toJSONKey :: ToJSONKeyFunction SyntaxLanguageCode
$ctoJSONKey :: ToJSONKeyFunction SyntaxLanguageCode
Core.ToJSONKey,
[Node] -> Either String SyntaxLanguageCode
([Node] -> Either String SyntaxLanguageCode)
-> FromXML SyntaxLanguageCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SyntaxLanguageCode
$cparseXML :: [Node] -> Either String SyntaxLanguageCode
Core.FromXML,
SyntaxLanguageCode -> XML
(SyntaxLanguageCode -> XML) -> ToXML SyntaxLanguageCode
forall a. (a -> XML) -> ToXML a
toXML :: SyntaxLanguageCode -> XML
$ctoXML :: SyntaxLanguageCode -> XML
Core.ToXML
)
pattern SyntaxLanguageCode_De :: SyntaxLanguageCode
pattern $bSyntaxLanguageCode_De :: SyntaxLanguageCode
$mSyntaxLanguageCode_De :: forall r. SyntaxLanguageCode -> (Void# -> r) -> (Void# -> r) -> r
SyntaxLanguageCode_De = SyntaxLanguageCode' "de"
pattern SyntaxLanguageCode_En :: SyntaxLanguageCode
pattern $bSyntaxLanguageCode_En :: SyntaxLanguageCode
$mSyntaxLanguageCode_En :: forall r. SyntaxLanguageCode -> (Void# -> r) -> (Void# -> r) -> r
SyntaxLanguageCode_En = SyntaxLanguageCode' "en"
pattern SyntaxLanguageCode_Es :: SyntaxLanguageCode
pattern $bSyntaxLanguageCode_Es :: SyntaxLanguageCode
$mSyntaxLanguageCode_Es :: forall r. SyntaxLanguageCode -> (Void# -> r) -> (Void# -> r) -> r
SyntaxLanguageCode_Es = SyntaxLanguageCode' "es"
pattern SyntaxLanguageCode_Fr :: SyntaxLanguageCode
pattern $bSyntaxLanguageCode_Fr :: SyntaxLanguageCode
$mSyntaxLanguageCode_Fr :: forall r. SyntaxLanguageCode -> (Void# -> r) -> (Void# -> r) -> r
SyntaxLanguageCode_Fr = SyntaxLanguageCode' "fr"
pattern SyntaxLanguageCode_It :: SyntaxLanguageCode
pattern $bSyntaxLanguageCode_It :: SyntaxLanguageCode
$mSyntaxLanguageCode_It :: forall r. SyntaxLanguageCode -> (Void# -> r) -> (Void# -> r) -> r
SyntaxLanguageCode_It = SyntaxLanguageCode' "it"
pattern SyntaxLanguageCode_Pt :: SyntaxLanguageCode
pattern $bSyntaxLanguageCode_Pt :: SyntaxLanguageCode
$mSyntaxLanguageCode_Pt :: forall r. SyntaxLanguageCode -> (Void# -> r) -> (Void# -> r) -> r
SyntaxLanguageCode_Pt = SyntaxLanguageCode' "pt"
{-# COMPLETE
SyntaxLanguageCode_De,
SyntaxLanguageCode_En,
SyntaxLanguageCode_Es,
SyntaxLanguageCode_Fr,
SyntaxLanguageCode_It,
SyntaxLanguageCode_Pt,
SyntaxLanguageCode'
#-}