{- 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.DocumentDiagnosticReport 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 Language.LSP.Protocol.Internal.Types.RelatedFullDocumentDiagnosticReport
import qualified Language.LSP.Protocol.Internal.Types.RelatedUnchangedDocumentDiagnosticReport
import qualified Language.LSP.Protocol.Types.Common

{-|
The result of a document diagnostic pull request. A report can
either be a full report containing all diagnostics for the
requested document or an unchanged report indicating that nothing
has changed in terms of diagnostics in comparison to the last
pull request.

@since 3.17.0
-}
newtype DocumentDiagnosticReport = DocumentDiagnosticReport (Language.LSP.Protocol.Internal.Types.RelatedFullDocumentDiagnosticReport.RelatedFullDocumentDiagnosticReport Language.LSP.Protocol.Types.Common.|? Language.LSP.Protocol.Internal.Types.RelatedUnchangedDocumentDiagnosticReport.RelatedUnchangedDocumentDiagnosticReport)
  deriving newtype ([DocumentDiagnosticReport] -> Value
[DocumentDiagnosticReport] -> Encoding
DocumentDiagnosticReport -> Bool
DocumentDiagnosticReport -> Value
DocumentDiagnosticReport -> Encoding
(DocumentDiagnosticReport -> Value)
-> (DocumentDiagnosticReport -> Encoding)
-> ([DocumentDiagnosticReport] -> Value)
-> ([DocumentDiagnosticReport] -> Encoding)
-> (DocumentDiagnosticReport -> Bool)
-> ToJSON DocumentDiagnosticReport
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> (a -> Bool)
-> ToJSON a
$ctoJSON :: DocumentDiagnosticReport -> Value
toJSON :: DocumentDiagnosticReport -> Value
$ctoEncoding :: DocumentDiagnosticReport -> Encoding
toEncoding :: DocumentDiagnosticReport -> Encoding
$ctoJSONList :: [DocumentDiagnosticReport] -> Value
toJSONList :: [DocumentDiagnosticReport] -> Value
$ctoEncodingList :: [DocumentDiagnosticReport] -> Encoding
toEncodingList :: [DocumentDiagnosticReport] -> Encoding
$comitField :: DocumentDiagnosticReport -> Bool
omitField :: DocumentDiagnosticReport -> Bool
Aeson.ToJSON, Maybe DocumentDiagnosticReport
Value -> Parser [DocumentDiagnosticReport]
Value -> Parser DocumentDiagnosticReport
(Value -> Parser DocumentDiagnosticReport)
-> (Value -> Parser [DocumentDiagnosticReport])
-> Maybe DocumentDiagnosticReport
-> FromJSON DocumentDiagnosticReport
forall a.
(Value -> Parser a)
-> (Value -> Parser [a]) -> Maybe a -> FromJSON a
$cparseJSON :: Value -> Parser DocumentDiagnosticReport
parseJSON :: Value -> Parser DocumentDiagnosticReport
$cparseJSONList :: Value -> Parser [DocumentDiagnosticReport]
parseJSONList :: Value -> Parser [DocumentDiagnosticReport]
$comittedField :: Maybe DocumentDiagnosticReport
omittedField :: Maybe DocumentDiagnosticReport
Aeson.FromJSON)
  deriving stock (Int -> DocumentDiagnosticReport -> ShowS
[DocumentDiagnosticReport] -> ShowS
DocumentDiagnosticReport -> String
(Int -> DocumentDiagnosticReport -> ShowS)
-> (DocumentDiagnosticReport -> String)
-> ([DocumentDiagnosticReport] -> ShowS)
-> Show DocumentDiagnosticReport
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentDiagnosticReport -> ShowS
showsPrec :: Int -> DocumentDiagnosticReport -> ShowS
$cshow :: DocumentDiagnosticReport -> String
show :: DocumentDiagnosticReport -> String
$cshowList :: [DocumentDiagnosticReport] -> ShowS
showList :: [DocumentDiagnosticReport] -> ShowS
Show, DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
(DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool)
-> (DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool)
-> Eq DocumentDiagnosticReport
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
== :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
$c/= :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
/= :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
Eq, Eq DocumentDiagnosticReport
Eq DocumentDiagnosticReport =>
(DocumentDiagnosticReport -> DocumentDiagnosticReport -> Ordering)
-> (DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool)
-> (DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool)
-> (DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool)
-> (DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool)
-> (DocumentDiagnosticReport
    -> DocumentDiagnosticReport -> DocumentDiagnosticReport)
-> (DocumentDiagnosticReport
    -> DocumentDiagnosticReport -> DocumentDiagnosticReport)
-> Ord DocumentDiagnosticReport
DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
DocumentDiagnosticReport -> DocumentDiagnosticReport -> Ordering
DocumentDiagnosticReport
-> DocumentDiagnosticReport -> DocumentDiagnosticReport
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
$ccompare :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Ordering
compare :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Ordering
$c< :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
< :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
$c<= :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
<= :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
$c> :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
> :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
$c>= :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
>= :: DocumentDiagnosticReport -> DocumentDiagnosticReport -> Bool
$cmax :: DocumentDiagnosticReport
-> DocumentDiagnosticReport -> DocumentDiagnosticReport
max :: DocumentDiagnosticReport
-> DocumentDiagnosticReport -> DocumentDiagnosticReport
$cmin :: DocumentDiagnosticReport
-> DocumentDiagnosticReport -> DocumentDiagnosticReport
min :: DocumentDiagnosticReport
-> DocumentDiagnosticReport -> DocumentDiagnosticReport
Ord, (forall x.
 DocumentDiagnosticReport -> Rep DocumentDiagnosticReport x)
-> (forall x.
    Rep DocumentDiagnosticReport x -> DocumentDiagnosticReport)
-> Generic DocumentDiagnosticReport
forall x.
Rep DocumentDiagnosticReport x -> DocumentDiagnosticReport
forall x.
DocumentDiagnosticReport -> Rep DocumentDiagnosticReport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x.
DocumentDiagnosticReport -> Rep DocumentDiagnosticReport x
from :: forall x.
DocumentDiagnosticReport -> Rep DocumentDiagnosticReport x
$cto :: forall x.
Rep DocumentDiagnosticReport x -> DocumentDiagnosticReport
to :: forall x.
Rep DocumentDiagnosticReport x -> DocumentDiagnosticReport
Generic)
  deriving anyclass (DocumentDiagnosticReport -> ()
(DocumentDiagnosticReport -> ()) -> NFData DocumentDiagnosticReport
forall a. (a -> ()) -> NFData a
$crnf :: DocumentDiagnosticReport -> ()
rnf :: DocumentDiagnosticReport -> ()
NFData, Eq DocumentDiagnosticReport
Eq DocumentDiagnosticReport =>
(Int -> DocumentDiagnosticReport -> Int)
-> (DocumentDiagnosticReport -> Int)
-> Hashable DocumentDiagnosticReport
Int -> DocumentDiagnosticReport -> Int
DocumentDiagnosticReport -> Int
forall a. Eq a => (Int -> a -> Int) -> (a -> Int) -> Hashable a
$chashWithSalt :: Int -> DocumentDiagnosticReport -> Int
hashWithSalt :: Int -> DocumentDiagnosticReport -> Int
$chash :: DocumentDiagnosticReport -> Int
hash :: DocumentDiagnosticReport -> Int
Hashable)
  deriving (forall ann. DocumentDiagnosticReport -> Doc ann)
-> (forall ann. [DocumentDiagnosticReport] -> Doc ann)
-> Pretty DocumentDiagnosticReport
forall ann. [DocumentDiagnosticReport] -> Doc ann
forall ann. DocumentDiagnosticReport -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
$cpretty :: forall ann. DocumentDiagnosticReport -> Doc ann
pretty :: forall ann. DocumentDiagnosticReport -> Doc ann
$cprettyList :: forall ann. [DocumentDiagnosticReport] -> Doc ann
prettyList :: forall ann. [DocumentDiagnosticReport] -> Doc ann
Pretty via (ViaJSON DocumentDiagnosticReport)