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