{- 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.WorkspaceDocumentDiagnosticReport 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.WorkspaceFullDocumentDiagnosticReport
import qualified Language.LSP.Protocol.Internal.Types.WorkspaceUnchangedDocumentDiagnosticReport
import qualified Language.LSP.Protocol.Types.Common

{-|
A workspace diagnostic document report.

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