{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Comprehend.Types.Split
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Comprehend.Types.Split
  ( Split
      ( ..,
        Split_TEST,
        Split_TRAIN
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype Split = Split' {Split -> Text
fromSplit :: Data.Text}
  deriving stock
    ( Int -> Split -> ShowS
[Split] -> ShowS
Split -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq Split
Int -> Split -> Int
Split -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: Split -> ()
$crnf :: Split -> ()
Prelude.NFData,
      Text -> Either String Split
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Split
$cfromText :: Text -> Either String Split
Data.FromText,
      Split -> Text
forall a. (a -> Text) -> ToText a
toText :: Split -> Text
$ctoText :: Split -> Text
Data.ToText,
      Split -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Split -> ByteString
$ctoBS :: Split -> ByteString
Data.ToByteString,
      Split -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Split -> ByteStringBuilder
$cbuild :: Split -> ByteStringBuilder
Data.ToLog,
      HeaderName -> Split -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Split -> [Header]
$ctoHeader :: HeaderName -> Split -> [Header]
Data.ToHeader,
      Split -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Split -> QueryString
$ctoQuery :: Split -> QueryString
Data.ToQuery,
      Value -> Parser [Split]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [Split]
FromJSONKeyFunction Split
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Split]
$cfromJSONKeyList :: FromJSONKeyFunction [Split]
fromJSONKey :: FromJSONKeyFunction Split
$cfromJSONKey :: FromJSONKeyFunction Split
Data.FromJSONKey,
      [Split] -> Encoding
[Split] -> Value
Split -> Encoding
Split -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [Split]
ToJSONKeyFunction Split
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Split]
$ctoJSONKeyList :: ToJSONKeyFunction [Split]
toJSONKey :: ToJSONKeyFunction Split
$ctoJSONKey :: ToJSONKeyFunction Split
Data.ToJSONKey,
      [Node] -> Either String Split
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Split
$cparseXML :: [Node] -> Either String Split
Data.FromXML,
      Split -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Split -> XML
$ctoXML :: Split -> XML
Data.ToXML
    )

pattern Split_TEST :: Split
pattern $bSplit_TEST :: Split
$mSplit_TEST :: forall {r}. Split -> ((# #) -> r) -> ((# #) -> r) -> r
Split_TEST = Split' "TEST"

pattern Split_TRAIN :: Split
pattern $bSplit_TRAIN :: Split
$mSplit_TRAIN :: forall {r}. Split -> ((# #) -> r) -> ((# #) -> r) -> r
Split_TRAIN = Split' "TRAIN"

{-# COMPLETE
  Split_TEST,
  Split_TRAIN,
  Split'
  #-}