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