{- ORMOLU_DISABLE -}
{- HLINT ignore -}
-- THIS IS A GENERATED FILE, DO NOT EDIT

{-# OPTIONS_GHC -Wno-unused-imports #-}
{-# OPTIONS_GHC -Wno-unused-matches #-}
{-# OPTIONS_GHC -Wno-deprecations #-}
module Language.LSP.Protocol.Internal.Types.DocumentDiagnosticReportKind where

import Control.DeepSeq
import Data.Hashable
import GHC.Generics
import Language.LSP.Protocol.Utils.Misc
import Prettyprinter
import qualified Data.Aeson as Aeson
import qualified Data.Row.Aeson as Aeson
import qualified Data.Row.Hashable as Hashable
import qualified Data.Set
import qualified Data.String
import qualified Data.Text
import qualified Language.LSP.Protocol.Types.LspEnum

{-|
The document diagnostic report kinds.

@since 3.17.0
-}
data DocumentDiagnosticReportKind = 
    {-|
  A diagnostic report with a full
  set of problems.
  -}
  DocumentDiagnosticReportKind_Full
  | {-|
  A report indicating that the last
  returned report is still accurate.
  -}
  DocumentDiagnosticReportKind_Unchanged
  deriving stock (Int -> DocumentDiagnosticReportKind -> ShowS
[DocumentDiagnosticReportKind] -> ShowS
DocumentDiagnosticReportKind -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DocumentDiagnosticReportKind] -> ShowS
$cshowList :: [DocumentDiagnosticReportKind] -> ShowS
show :: DocumentDiagnosticReportKind -> String
$cshow :: DocumentDiagnosticReportKind -> String
showsPrec :: Int -> DocumentDiagnosticReportKind -> ShowS
$cshowsPrec :: Int -> DocumentDiagnosticReportKind -> ShowS
Show, DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
$c/= :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
== :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
$c== :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
Eq, Eq DocumentDiagnosticReportKind
DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Ordering
DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> DocumentDiagnosticReportKind
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 :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> DocumentDiagnosticReportKind
$cmin :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> DocumentDiagnosticReportKind
max :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> DocumentDiagnosticReportKind
$cmax :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> DocumentDiagnosticReportKind
>= :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
$c>= :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
> :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
$c> :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
<= :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
$c<= :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
< :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
$c< :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Bool
compare :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Ordering
$ccompare :: DocumentDiagnosticReportKind
-> DocumentDiagnosticReportKind -> Ordering
Ord, forall x.
Rep DocumentDiagnosticReportKind x -> DocumentDiagnosticReportKind
forall x.
DocumentDiagnosticReportKind -> Rep DocumentDiagnosticReportKind x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DocumentDiagnosticReportKind x -> DocumentDiagnosticReportKind
$cfrom :: forall x.
DocumentDiagnosticReportKind -> Rep DocumentDiagnosticReportKind x
Generic)
  deriving anyclass (DocumentDiagnosticReportKind -> ()
forall a. (a -> ()) -> NFData a
rnf :: DocumentDiagnosticReportKind -> ()
$crnf :: DocumentDiagnosticReportKind -> ()
NFData, Eq DocumentDiagnosticReportKind
Int -> DocumentDiagnosticReportKind -> Int
DocumentDiagnosticReportKind -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DocumentDiagnosticReportKind -> Int
$chash :: DocumentDiagnosticReportKind -> Int
hashWithSalt :: Int -> DocumentDiagnosticReportKind -> Int
$chashWithSalt :: Int -> DocumentDiagnosticReportKind -> Int
Hashable)
  deriving ( [DocumentDiagnosticReportKind] -> Encoding
[DocumentDiagnosticReportKind] -> Value
DocumentDiagnosticReportKind -> Encoding
DocumentDiagnosticReportKind -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DocumentDiagnosticReportKind] -> Encoding
$ctoEncodingList :: [DocumentDiagnosticReportKind] -> Encoding
toJSONList :: [DocumentDiagnosticReportKind] -> Value
$ctoJSONList :: [DocumentDiagnosticReportKind] -> Value
toEncoding :: DocumentDiagnosticReportKind -> Encoding
$ctoEncoding :: DocumentDiagnosticReportKind -> Encoding
toJSON :: DocumentDiagnosticReportKind -> Value
$ctoJSON :: DocumentDiagnosticReportKind -> Value
Aeson.ToJSON
  , Value -> Parser [DocumentDiagnosticReportKind]
Value -> Parser DocumentDiagnosticReportKind
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DocumentDiagnosticReportKind]
$cparseJSONList :: Value -> Parser [DocumentDiagnosticReportKind]
parseJSON :: Value -> Parser DocumentDiagnosticReportKind
$cparseJSON :: Value -> Parser DocumentDiagnosticReportKind
Aeson.FromJSON ) via (Language.LSP.Protocol.Types.LspEnum.AsLspEnum DocumentDiagnosticReportKind Data.Text.Text)
  deriving forall ann. [DocumentDiagnosticReportKind] -> Doc ann
forall ann. DocumentDiagnosticReportKind -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
prettyList :: forall ann. [DocumentDiagnosticReportKind] -> Doc ann
$cprettyList :: forall ann. [DocumentDiagnosticReportKind] -> Doc ann
pretty :: forall ann. DocumentDiagnosticReportKind -> Doc ann
$cpretty :: forall ann. DocumentDiagnosticReportKind -> Doc ann
Pretty via (ViaJSON DocumentDiagnosticReportKind)

instance Language.LSP.Protocol.Types.LspEnum.LspEnum DocumentDiagnosticReportKind where
  knownValues :: Set DocumentDiagnosticReportKind
knownValues = forall a. Ord a => [a] -> Set a
Data.Set.fromList [DocumentDiagnosticReportKind
DocumentDiagnosticReportKind_Full
    ,DocumentDiagnosticReportKind
DocumentDiagnosticReportKind_Unchanged]
  type EnumBaseType DocumentDiagnosticReportKind = Data.Text.Text
  toEnumBaseType :: DocumentDiagnosticReportKind
-> EnumBaseType DocumentDiagnosticReportKind
toEnumBaseType DocumentDiagnosticReportKind
DocumentDiagnosticReportKind_Full = Text
"full"
  toEnumBaseType DocumentDiagnosticReportKind
DocumentDiagnosticReportKind_Unchanged = Text
"unchanged"
  fromEnumBaseType :: EnumBaseType DocumentDiagnosticReportKind
-> Maybe DocumentDiagnosticReportKind
fromEnumBaseType EnumBaseType DocumentDiagnosticReportKind
"full" = forall (f :: * -> *) a. Applicative f => a -> f a
pure DocumentDiagnosticReportKind
DocumentDiagnosticReportKind_Full
  fromEnumBaseType EnumBaseType DocumentDiagnosticReportKind
"unchanged" = forall (f :: * -> *) a. Applicative f => a -> f a
pure DocumentDiagnosticReportKind
DocumentDiagnosticReportKind_Unchanged
  fromEnumBaseType EnumBaseType DocumentDiagnosticReportKind
_ = forall a. Maybe a
Nothing