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