{-# 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.BlockType
-- 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.BlockType
  ( BlockType
      ( ..,
        BlockType_LINE,
        BlockType_WORD
      ),
  )
where

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

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

pattern BlockType_LINE :: BlockType
pattern $bBlockType_LINE :: BlockType
$mBlockType_LINE :: forall {r}. BlockType -> ((# #) -> r) -> ((# #) -> r) -> r
BlockType_LINE = BlockType' "LINE"

pattern BlockType_WORD :: BlockType
pattern $bBlockType_WORD :: BlockType
$mBlockType_WORD :: forall {r}. BlockType -> ((# #) -> r) -> ((# #) -> r) -> r
BlockType_WORD = BlockType' "WORD"

{-# COMPLETE
  BlockType_LINE,
  BlockType_WORD,
  BlockType'
  #-}