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