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