{- 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.ShowDocumentClientCapabilities 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

{-|
Client capabilities for the showDocument request.

@since 3.16.0
-}
data ShowDocumentClientCapabilities = ShowDocumentClientCapabilities 
  { {-|
  The client has support for the showDocument
  request.
  -}
  ShowDocumentClientCapabilities -> Bool
_support :: Bool
  }
  deriving stock (Int -> ShowDocumentClientCapabilities -> ShowS
[ShowDocumentClientCapabilities] -> ShowS
ShowDocumentClientCapabilities -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ShowDocumentClientCapabilities] -> ShowS
$cshowList :: [ShowDocumentClientCapabilities] -> ShowS
show :: ShowDocumentClientCapabilities -> String
$cshow :: ShowDocumentClientCapabilities -> String
showsPrec :: Int -> ShowDocumentClientCapabilities -> ShowS
$cshowsPrec :: Int -> ShowDocumentClientCapabilities -> ShowS
Show, ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
$c/= :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
== :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
$c== :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
Eq, Eq ShowDocumentClientCapabilities
ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Ordering
ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> ShowDocumentClientCapabilities
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 :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> ShowDocumentClientCapabilities
$cmin :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> ShowDocumentClientCapabilities
max :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> ShowDocumentClientCapabilities
$cmax :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> ShowDocumentClientCapabilities
>= :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
$c>= :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
> :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
$c> :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
<= :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
$c<= :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
< :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
$c< :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Bool
compare :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Ordering
$ccompare :: ShowDocumentClientCapabilities
-> ShowDocumentClientCapabilities -> Ordering
Ord, forall x.
Rep ShowDocumentClientCapabilities x
-> ShowDocumentClientCapabilities
forall x.
ShowDocumentClientCapabilities
-> Rep ShowDocumentClientCapabilities x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ShowDocumentClientCapabilities x
-> ShowDocumentClientCapabilities
$cfrom :: forall x.
ShowDocumentClientCapabilities
-> Rep ShowDocumentClientCapabilities x
Generic)
  deriving anyclass (ShowDocumentClientCapabilities -> ()
forall a. (a -> ()) -> NFData a
rnf :: ShowDocumentClientCapabilities -> ()
$crnf :: ShowDocumentClientCapabilities -> ()
NFData, Eq ShowDocumentClientCapabilities
Int -> ShowDocumentClientCapabilities -> Int
ShowDocumentClientCapabilities -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ShowDocumentClientCapabilities -> Int
$chash :: ShowDocumentClientCapabilities -> Int
hashWithSalt :: Int -> ShowDocumentClientCapabilities -> Int
$chashWithSalt :: Int -> ShowDocumentClientCapabilities -> Int
Hashable)
  deriving forall ann. [ShowDocumentClientCapabilities] -> Doc ann
forall ann. ShowDocumentClientCapabilities -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
prettyList :: forall ann. [ShowDocumentClientCapabilities] -> Doc ann
$cprettyList :: forall ann. [ShowDocumentClientCapabilities] -> Doc ann
pretty :: forall ann. ShowDocumentClientCapabilities -> Doc ann
$cpretty :: forall ann. ShowDocumentClientCapabilities -> Doc ann
Pretty via (ViaJSON ShowDocumentClientCapabilities)

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

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