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