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