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