{- 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.NotebookDocumentClientCapabilities 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.NotebookDocumentSyncClientCapabilities
import qualified Language.LSP.Protocol.Types.Common

{-|
Capabilities specific to the notebook document support.

@since 3.17.0
-}
data NotebookDocumentClientCapabilities = NotebookDocumentClientCapabilities 
  { {-|
  Capabilities specific to notebook document synchronization

  @since 3.17.0
  -}
  NotebookDocumentClientCapabilities
-> NotebookDocumentSyncClientCapabilities
_synchronization :: Language.LSP.Protocol.Internal.Types.NotebookDocumentSyncClientCapabilities.NotebookDocumentSyncClientCapabilities
  }
  deriving stock (Int -> NotebookDocumentClientCapabilities -> ShowS
[NotebookDocumentClientCapabilities] -> ShowS
NotebookDocumentClientCapabilities -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NotebookDocumentClientCapabilities] -> ShowS
$cshowList :: [NotebookDocumentClientCapabilities] -> ShowS
show :: NotebookDocumentClientCapabilities -> String
$cshow :: NotebookDocumentClientCapabilities -> String
showsPrec :: Int -> NotebookDocumentClientCapabilities -> ShowS
$cshowsPrec :: Int -> NotebookDocumentClientCapabilities -> ShowS
Show, NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
$c/= :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
== :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
$c== :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
Eq, Eq NotebookDocumentClientCapabilities
NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Ordering
NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
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 :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
$cmin :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
max :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
$cmax :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities
>= :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
$c>= :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
> :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
$c> :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
<= :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
$c<= :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
< :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
$c< :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Bool
compare :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Ordering
$ccompare :: NotebookDocumentClientCapabilities
-> NotebookDocumentClientCapabilities -> Ordering
Ord, forall x.
Rep NotebookDocumentClientCapabilities x
-> NotebookDocumentClientCapabilities
forall x.
NotebookDocumentClientCapabilities
-> Rep NotebookDocumentClientCapabilities x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NotebookDocumentClientCapabilities x
-> NotebookDocumentClientCapabilities
$cfrom :: forall x.
NotebookDocumentClientCapabilities
-> Rep NotebookDocumentClientCapabilities x
Generic)
  deriving anyclass (NotebookDocumentClientCapabilities -> ()
forall a. (a -> ()) -> NFData a
rnf :: NotebookDocumentClientCapabilities -> ()
$crnf :: NotebookDocumentClientCapabilities -> ()
NFData, Eq NotebookDocumentClientCapabilities
Int -> NotebookDocumentClientCapabilities -> Int
NotebookDocumentClientCapabilities -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: NotebookDocumentClientCapabilities -> Int
$chash :: NotebookDocumentClientCapabilities -> Int
hashWithSalt :: Int -> NotebookDocumentClientCapabilities -> Int
$chashWithSalt :: Int -> NotebookDocumentClientCapabilities -> Int
Hashable)
  deriving forall ann. [NotebookDocumentClientCapabilities] -> Doc ann
forall ann. NotebookDocumentClientCapabilities -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
prettyList :: forall ann. [NotebookDocumentClientCapabilities] -> Doc ann
$cprettyList :: forall ann. [NotebookDocumentClientCapabilities] -> Doc ann
pretty :: forall ann. NotebookDocumentClientCapabilities -> Doc ann
$cpretty :: forall ann. NotebookDocumentClientCapabilities -> Doc ann
Pretty via (ViaJSON NotebookDocumentClientCapabilities)

instance Aeson.ToJSON NotebookDocumentClientCapabilities where
  toJSON :: NotebookDocumentClientCapabilities -> Value
toJSON (NotebookDocumentClientCapabilities NotebookDocumentSyncClientCapabilities
arg0) = [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
$  [[Key
"synchronization" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Aeson..= NotebookDocumentSyncClientCapabilities
arg0]]

instance Aeson.FromJSON NotebookDocumentClientCapabilities where
  parseJSON :: Value -> Parser NotebookDocumentClientCapabilities
parseJSON = forall a. String -> (Object -> Parser a) -> Value -> Parser a
Aeson.withObject String
"NotebookDocumentClientCapabilities" forall a b. (a -> b) -> a -> b
$ \Object
arg -> NotebookDocumentSyncClientCapabilities
-> NotebookDocumentClientCapabilities
NotebookDocumentClientCapabilities forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> Object
arg forall a. FromJSON a => Object -> Key -> Parser a
Aeson..: Key
"synchronization"