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