{-# 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.HoneyCode.Types.Format
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.HoneyCode.Types.Format
  ( Format
      ( ..,
        Format_ACCOUNTING,
        Format_AUTO,
        Format_CONTACT,
        Format_CURRENCY,
        Format_DATE,
        Format_DATE_TIME,
        Format_NUMBER,
        Format_PERCENTAGE,
        Format_ROWLINK,
        Format_TEXT,
        Format_TIME
      ),
  )
where

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

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

pattern Format_ACCOUNTING :: Format
pattern $bFormat_ACCOUNTING :: Format
$mFormat_ACCOUNTING :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_ACCOUNTING = Format' "ACCOUNTING"

pattern Format_AUTO :: Format
pattern $bFormat_AUTO :: Format
$mFormat_AUTO :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_AUTO = Format' "AUTO"

pattern Format_CONTACT :: Format
pattern $bFormat_CONTACT :: Format
$mFormat_CONTACT :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_CONTACT = Format' "CONTACT"

pattern Format_CURRENCY :: Format
pattern $bFormat_CURRENCY :: Format
$mFormat_CURRENCY :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_CURRENCY = Format' "CURRENCY"

pattern Format_DATE :: Format
pattern $bFormat_DATE :: Format
$mFormat_DATE :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_DATE = Format' "DATE"

pattern Format_DATE_TIME :: Format
pattern $bFormat_DATE_TIME :: Format
$mFormat_DATE_TIME :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_DATE_TIME = Format' "DATE_TIME"

pattern Format_NUMBER :: Format
pattern $bFormat_NUMBER :: Format
$mFormat_NUMBER :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_NUMBER = Format' "NUMBER"

pattern Format_PERCENTAGE :: Format
pattern $bFormat_PERCENTAGE :: Format
$mFormat_PERCENTAGE :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_PERCENTAGE = Format' "PERCENTAGE"

pattern Format_ROWLINK :: Format
pattern $bFormat_ROWLINK :: Format
$mFormat_ROWLINK :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_ROWLINK = Format' "ROWLINK"

pattern Format_TEXT :: Format
pattern $bFormat_TEXT :: Format
$mFormat_TEXT :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_TEXT = Format' "TEXT"

pattern Format_TIME :: Format
pattern $bFormat_TIME :: Format
$mFormat_TIME :: forall r. Format -> (Void# -> r) -> (Void# -> r) -> r
Format_TIME = Format' "TIME"

{-# COMPLETE
  Format_ACCOUNTING,
  Format_AUTO,
  Format_CONTACT,
  Format_CURRENCY,
  Format_DATE,
  Format_DATE_TIME,
  Format_NUMBER,
  Format_PERCENTAGE,
  Format_ROWLINK,
  Format_TEXT,
  Format_TIME,
  Format'
  #-}