{- 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.LinkedEditingRangeOptions 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 LinkedEditingRangeOptions = LinkedEditingRangeOptions 
  { {-|

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

instance Aeson.ToJSON LinkedEditingRangeOptions where
  toJSON :: LinkedEditingRangeOptions -> Value
toJSON (LinkedEditingRangeOptions 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
"workDoneProgress" forall kv v. (KeyValue kv, ToJSON v) => String -> Maybe v -> [kv]
Language.LSP.Protocol.Types.Common..=? Maybe Bool
arg0]

instance Aeson.FromJSON LinkedEditingRangeOptions where
  parseJSON :: Value -> Parser LinkedEditingRangeOptions
parseJSON = forall a. String -> (Object -> Parser a) -> Value -> Parser a
Aeson.withObject String
"LinkedEditingRangeOptions" forall a b. (a -> b) -> a -> b
$ \Object
arg -> Maybe Bool -> LinkedEditingRangeOptions
LinkedEditingRangeOptions 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
"workDoneProgress"