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