{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ComprehendMedical.Types.LanguageCode
( LanguageCode
( ..,
LanguageCode_En
),
)
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_En :: LanguageCode
pattern $bLanguageCode_En :: LanguageCode
$mLanguageCode_En :: forall r. LanguageCode -> (Void# -> r) -> (Void# -> r) -> r
LanguageCode_En = LanguageCode' "en"
{-# COMPLETE
LanguageCode_En,
LanguageCode'
#-}