{-# OPTIONS_GHC -Wno-unused-imports #-}
{-# OPTIONS_GHC -Wno-unused-matches #-}
{-# OPTIONS_GHC -Wno-deprecations #-}
module Language.LSP.Protocol.Internal.Types.UnchangedDocumentDiagnosticReport 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.Text
import qualified Language.LSP.Protocol.Types.Common
import qualified Language.LSP.Protocol.Types.Singletons
data UnchangedDocumentDiagnosticReport = UnchangedDocumentDiagnosticReport
{
UnchangedDocumentDiagnosticReport -> AString "unchanged"
_kind :: (Language.LSP.Protocol.Types.Singletons.AString "unchanged")
,
UnchangedDocumentDiagnosticReport -> Text
_resultId :: Data.Text.Text
}
deriving stock (Int -> UnchangedDocumentDiagnosticReport -> ShowS
[UnchangedDocumentDiagnosticReport] -> ShowS
UnchangedDocumentDiagnosticReport -> String
(Int -> UnchangedDocumentDiagnosticReport -> ShowS)
-> (UnchangedDocumentDiagnosticReport -> String)
-> ([UnchangedDocumentDiagnosticReport] -> ShowS)
-> Show UnchangedDocumentDiagnosticReport
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UnchangedDocumentDiagnosticReport -> ShowS
showsPrec :: Int -> UnchangedDocumentDiagnosticReport -> ShowS
$cshow :: UnchangedDocumentDiagnosticReport -> String
show :: UnchangedDocumentDiagnosticReport -> String
$cshowList :: [UnchangedDocumentDiagnosticReport] -> ShowS
showList :: [UnchangedDocumentDiagnosticReport] -> ShowS
Show, UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
(UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool)
-> (UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool)
-> Eq UnchangedDocumentDiagnosticReport
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
== :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
$c/= :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
/= :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
Eq, Eq UnchangedDocumentDiagnosticReport
Eq UnchangedDocumentDiagnosticReport =>
(UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Ordering)
-> (UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool)
-> (UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool)
-> (UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool)
-> (UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool)
-> (UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport)
-> (UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport)
-> Ord UnchangedDocumentDiagnosticReport
UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Ordering
UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
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 :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Ordering
compare :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Ordering
$c< :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
< :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
$c<= :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
<= :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
$c> :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
> :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
$c>= :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
>= :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport -> Bool
$cmax :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
max :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
$cmin :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
min :: UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
-> UnchangedDocumentDiagnosticReport
Ord, (forall x.
UnchangedDocumentDiagnosticReport
-> Rep UnchangedDocumentDiagnosticReport x)
-> (forall x.
Rep UnchangedDocumentDiagnosticReport x
-> UnchangedDocumentDiagnosticReport)
-> Generic UnchangedDocumentDiagnosticReport
forall x.
Rep UnchangedDocumentDiagnosticReport x
-> UnchangedDocumentDiagnosticReport
forall x.
UnchangedDocumentDiagnosticReport
-> Rep UnchangedDocumentDiagnosticReport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x.
UnchangedDocumentDiagnosticReport
-> Rep UnchangedDocumentDiagnosticReport x
from :: forall x.
UnchangedDocumentDiagnosticReport
-> Rep UnchangedDocumentDiagnosticReport x
$cto :: forall x.
Rep UnchangedDocumentDiagnosticReport x
-> UnchangedDocumentDiagnosticReport
to :: forall x.
Rep UnchangedDocumentDiagnosticReport x
-> UnchangedDocumentDiagnosticReport
Generic)
deriving anyclass (UnchangedDocumentDiagnosticReport -> ()
(UnchangedDocumentDiagnosticReport -> ())
-> NFData UnchangedDocumentDiagnosticReport
forall a. (a -> ()) -> NFData a
$crnf :: UnchangedDocumentDiagnosticReport -> ()
rnf :: UnchangedDocumentDiagnosticReport -> ()
NFData, Eq UnchangedDocumentDiagnosticReport
Eq UnchangedDocumentDiagnosticReport =>
(Int -> UnchangedDocumentDiagnosticReport -> Int)
-> (UnchangedDocumentDiagnosticReport -> Int)
-> Hashable UnchangedDocumentDiagnosticReport
Int -> UnchangedDocumentDiagnosticReport -> Int
UnchangedDocumentDiagnosticReport -> Int
forall a. Eq a => (Int -> a -> Int) -> (a -> Int) -> Hashable a
$chashWithSalt :: Int -> UnchangedDocumentDiagnosticReport -> Int
hashWithSalt :: Int -> UnchangedDocumentDiagnosticReport -> Int
$chash :: UnchangedDocumentDiagnosticReport -> Int
hash :: UnchangedDocumentDiagnosticReport -> Int
Hashable)
deriving (forall ann. UnchangedDocumentDiagnosticReport -> Doc ann)
-> (forall ann. [UnchangedDocumentDiagnosticReport] -> Doc ann)
-> Pretty UnchangedDocumentDiagnosticReport
forall ann. [UnchangedDocumentDiagnosticReport] -> Doc ann
forall ann. UnchangedDocumentDiagnosticReport -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
$cpretty :: forall ann. UnchangedDocumentDiagnosticReport -> Doc ann
pretty :: forall ann. UnchangedDocumentDiagnosticReport -> Doc ann
$cprettyList :: forall ann. [UnchangedDocumentDiagnosticReport] -> Doc ann
prettyList :: forall ann. [UnchangedDocumentDiagnosticReport] -> Doc ann
Pretty via (ViaJSON UnchangedDocumentDiagnosticReport)
instance Aeson.ToJSON UnchangedDocumentDiagnosticReport where
toJSON :: UnchangedDocumentDiagnosticReport -> Value
toJSON (UnchangedDocumentDiagnosticReport AString "unchanged"
arg0 Text
arg1) = [Pair] -> Value
Aeson.object ([Pair] -> Value) -> [Pair] -> Value
forall a b. (a -> b) -> a -> b
$ [[Pair]] -> [Pair]
forall (t :: * -> *) a. Foldable t => t [a] -> [a]
concat ([[Pair]] -> [Pair]) -> [[Pair]] -> [Pair]
forall a b. (a -> b) -> a -> b
$ [[Key
"kind" Key -> AString "unchanged" -> Pair
forall v. ToJSON v => Key -> v -> Pair
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
Aeson..= AString "unchanged"
arg0]
,[Key
"resultId" Key -> Text -> Pair
forall v. ToJSON v => Key -> v -> Pair
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
Aeson..= Text
arg1]]
instance Aeson.FromJSON UnchangedDocumentDiagnosticReport where
parseJSON :: Value -> Parser UnchangedDocumentDiagnosticReport
parseJSON = String
-> (Object -> Parser UnchangedDocumentDiagnosticReport)
-> Value
-> Parser UnchangedDocumentDiagnosticReport
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Aeson.withObject String
"UnchangedDocumentDiagnosticReport" ((Object -> Parser UnchangedDocumentDiagnosticReport)
-> Value -> Parser UnchangedDocumentDiagnosticReport)
-> (Object -> Parser UnchangedDocumentDiagnosticReport)
-> Value
-> Parser UnchangedDocumentDiagnosticReport
forall a b. (a -> b) -> a -> b
$ \Object
arg -> AString "unchanged" -> Text -> UnchangedDocumentDiagnosticReport
UnchangedDocumentDiagnosticReport (AString "unchanged" -> Text -> UnchangedDocumentDiagnosticReport)
-> Parser (AString "unchanged")
-> Parser (Text -> UnchangedDocumentDiagnosticReport)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> Object
arg Object -> Key -> Parser (AString "unchanged")
forall a. FromJSON a => Object -> Key -> Parser a
Aeson..: Key
"kind" Parser (Text -> UnchangedDocumentDiagnosticReport)
-> Parser Text -> Parser UnchangedDocumentDiagnosticReport
forall a b. Parser (a -> b) -> Parser a -> Parser b
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
arg Object -> Key -> Parser Text
forall a. FromJSON a => Object -> Key -> Parser a
Aeson..: Key
"resultId"