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