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

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

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