{- 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.PrepareRenameResult 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 as Row
import qualified Data.Row.Aeson as Aeson
import qualified Data.Row.Hashable as Hashable
import qualified Data.Text
import qualified Language.LSP.Protocol.Internal.Types.Range
import qualified Language.LSP.Protocol.Types.Common

{-|

-}
newtype PrepareRenameResult = PrepareRenameResult (Language.LSP.Protocol.Internal.Types.Range.Range Language.LSP.Protocol.Types.Common.|? ((Row.Rec ("range" Row..== Language.LSP.Protocol.Internal.Types.Range.Range Row..+ ("placeholder" Row..== Data.Text.Text Row..+ Row.Empty))) Language.LSP.Protocol.Types.Common.|? (Row.Rec ("defaultBehavior" Row..== Bool Row..+ Row.Empty))))
  deriving newtype ([PrepareRenameResult] -> Encoding
[PrepareRenameResult] -> Value
PrepareRenameResult -> Encoding
PrepareRenameResult -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PrepareRenameResult] -> Encoding
$ctoEncodingList :: [PrepareRenameResult] -> Encoding
toJSONList :: [PrepareRenameResult] -> Value
$ctoJSONList :: [PrepareRenameResult] -> Value
toEncoding :: PrepareRenameResult -> Encoding
$ctoEncoding :: PrepareRenameResult -> Encoding
toJSON :: PrepareRenameResult -> Value
$ctoJSON :: PrepareRenameResult -> Value
Aeson.ToJSON, Value -> Parser [PrepareRenameResult]
Value -> Parser PrepareRenameResult
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PrepareRenameResult]
$cparseJSONList :: Value -> Parser [PrepareRenameResult]
parseJSON :: Value -> Parser PrepareRenameResult
$cparseJSON :: Value -> Parser PrepareRenameResult
Aeson.FromJSON)
  deriving stock (Int -> PrepareRenameResult -> ShowS
[PrepareRenameResult] -> ShowS
PrepareRenameResult -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PrepareRenameResult] -> ShowS
$cshowList :: [PrepareRenameResult] -> ShowS
show :: PrepareRenameResult -> String
$cshow :: PrepareRenameResult -> String
showsPrec :: Int -> PrepareRenameResult -> ShowS
$cshowsPrec :: Int -> PrepareRenameResult -> ShowS
Show, PrepareRenameResult -> PrepareRenameResult -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PrepareRenameResult -> PrepareRenameResult -> Bool
$c/= :: PrepareRenameResult -> PrepareRenameResult -> Bool
== :: PrepareRenameResult -> PrepareRenameResult -> Bool
$c== :: PrepareRenameResult -> PrepareRenameResult -> Bool
Eq, Eq PrepareRenameResult
PrepareRenameResult -> PrepareRenameResult -> Bool
PrepareRenameResult -> PrepareRenameResult -> Ordering
PrepareRenameResult -> PrepareRenameResult -> PrepareRenameResult
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 :: PrepareRenameResult -> PrepareRenameResult -> PrepareRenameResult
$cmin :: PrepareRenameResult -> PrepareRenameResult -> PrepareRenameResult
max :: PrepareRenameResult -> PrepareRenameResult -> PrepareRenameResult
$cmax :: PrepareRenameResult -> PrepareRenameResult -> PrepareRenameResult
>= :: PrepareRenameResult -> PrepareRenameResult -> Bool
$c>= :: PrepareRenameResult -> PrepareRenameResult -> Bool
> :: PrepareRenameResult -> PrepareRenameResult -> Bool
$c> :: PrepareRenameResult -> PrepareRenameResult -> Bool
<= :: PrepareRenameResult -> PrepareRenameResult -> Bool
$c<= :: PrepareRenameResult -> PrepareRenameResult -> Bool
< :: PrepareRenameResult -> PrepareRenameResult -> Bool
$c< :: PrepareRenameResult -> PrepareRenameResult -> Bool
compare :: PrepareRenameResult -> PrepareRenameResult -> Ordering
$ccompare :: PrepareRenameResult -> PrepareRenameResult -> Ordering
Ord, forall x. Rep PrepareRenameResult x -> PrepareRenameResult
forall x. PrepareRenameResult -> Rep PrepareRenameResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PrepareRenameResult x -> PrepareRenameResult
$cfrom :: forall x. PrepareRenameResult -> Rep PrepareRenameResult x
Generic)
  deriving anyclass (PrepareRenameResult -> ()
forall a. (a -> ()) -> NFData a
rnf :: PrepareRenameResult -> ()
$crnf :: PrepareRenameResult -> ()
NFData, Eq PrepareRenameResult
Int -> PrepareRenameResult -> Int
PrepareRenameResult -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PrepareRenameResult -> Int
$chash :: PrepareRenameResult -> Int
hashWithSalt :: Int -> PrepareRenameResult -> Int
$chashWithSalt :: Int -> PrepareRenameResult -> Int
Hashable)
  deriving forall ann. [PrepareRenameResult] -> Doc ann
forall ann. PrepareRenameResult -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
prettyList :: forall ann. [PrepareRenameResult] -> Doc ann
$cprettyList :: forall ann. [PrepareRenameResult] -> Doc ann
pretty :: forall ann. PrepareRenameResult -> Doc ann
$cpretty :: forall ann. PrepareRenameResult -> Doc ann
Pretty via (ViaJSON PrepareRenameResult)