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

{-|
@since 3.16.0
-}
data SemanticTokensPartialResult = SemanticTokensPartialResult 
  { {-|

  -}
  SemanticTokensPartialResult -> [UInt]
_data_ :: [Language.LSP.Protocol.Types.Common.UInt]
  }
  deriving stock (Int -> SemanticTokensPartialResult -> ShowS
[SemanticTokensPartialResult] -> ShowS
SemanticTokensPartialResult -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SemanticTokensPartialResult] -> ShowS
$cshowList :: [SemanticTokensPartialResult] -> ShowS
show :: SemanticTokensPartialResult -> String
$cshow :: SemanticTokensPartialResult -> String
showsPrec :: Int -> SemanticTokensPartialResult -> ShowS
$cshowsPrec :: Int -> SemanticTokensPartialResult -> ShowS
Show, SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
$c/= :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
== :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
$c== :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
Eq, Eq SemanticTokensPartialResult
SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
SemanticTokensPartialResult
-> SemanticTokensPartialResult -> Ordering
SemanticTokensPartialResult
-> SemanticTokensPartialResult -> SemanticTokensPartialResult
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 :: SemanticTokensPartialResult
-> SemanticTokensPartialResult -> SemanticTokensPartialResult
$cmin :: SemanticTokensPartialResult
-> SemanticTokensPartialResult -> SemanticTokensPartialResult
max :: SemanticTokensPartialResult
-> SemanticTokensPartialResult -> SemanticTokensPartialResult
$cmax :: SemanticTokensPartialResult
-> SemanticTokensPartialResult -> SemanticTokensPartialResult
>= :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
$c>= :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
> :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
$c> :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
<= :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
$c<= :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
< :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
$c< :: SemanticTokensPartialResult -> SemanticTokensPartialResult -> Bool
compare :: SemanticTokensPartialResult
-> SemanticTokensPartialResult -> Ordering
$ccompare :: SemanticTokensPartialResult
-> SemanticTokensPartialResult -> Ordering
Ord, forall x.
Rep SemanticTokensPartialResult x -> SemanticTokensPartialResult
forall x.
SemanticTokensPartialResult -> Rep SemanticTokensPartialResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SemanticTokensPartialResult x -> SemanticTokensPartialResult
$cfrom :: forall x.
SemanticTokensPartialResult -> Rep SemanticTokensPartialResult x
Generic)
  deriving anyclass (SemanticTokensPartialResult -> ()
forall a. (a -> ()) -> NFData a
rnf :: SemanticTokensPartialResult -> ()
$crnf :: SemanticTokensPartialResult -> ()
NFData, Eq SemanticTokensPartialResult
Int -> SemanticTokensPartialResult -> Int
SemanticTokensPartialResult -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SemanticTokensPartialResult -> Int
$chash :: SemanticTokensPartialResult -> Int
hashWithSalt :: Int -> SemanticTokensPartialResult -> Int
$chashWithSalt :: Int -> SemanticTokensPartialResult -> Int
Hashable)
  deriving forall ann. [SemanticTokensPartialResult] -> Doc ann
forall ann. SemanticTokensPartialResult -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
prettyList :: forall ann. [SemanticTokensPartialResult] -> Doc ann
$cprettyList :: forall ann. [SemanticTokensPartialResult] -> Doc ann
pretty :: forall ann. SemanticTokensPartialResult -> Doc ann
$cpretty :: forall ann. SemanticTokensPartialResult -> Doc ann
Pretty via (ViaJSON SemanticTokensPartialResult)

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

instance Aeson.FromJSON SemanticTokensPartialResult where
  parseJSON :: Value -> Parser SemanticTokensPartialResult
parseJSON = forall a. String -> (Object -> Parser a) -> Value -> Parser a
Aeson.withObject String
"SemanticTokensPartialResult" forall a b. (a -> b) -> a -> b
$ \Object
arg -> [UInt] -> SemanticTokensPartialResult
SemanticTokensPartialResult forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> Object
arg forall a. FromJSON a => Object -> Key -> Parser a
Aeson..: Key
"data"