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

{-|
An event describing a change to a text document. If only a text is provided
it is considered to be the full content of the document.
-}
newtype TextDocumentContentChangeEvent = TextDocumentContentChangeEvent ((Row.Rec ("range" Row..== Language.LSP.Protocol.Internal.Types.Range.Range Row..+ ("rangeLength" Row..== (Maybe Language.LSP.Protocol.Types.Common.UInt) Row..+ ("text" Row..== Data.Text.Text Row..+ Row.Empty)))) Language.LSP.Protocol.Types.Common.|? (Row.Rec ("text" Row..== Data.Text.Text Row..+ Row.Empty)))
  deriving newtype ([TextDocumentContentChangeEvent] -> Encoding
[TextDocumentContentChangeEvent] -> Value
TextDocumentContentChangeEvent -> Encoding
TextDocumentContentChangeEvent -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TextDocumentContentChangeEvent] -> Encoding
$ctoEncodingList :: [TextDocumentContentChangeEvent] -> Encoding
toJSONList :: [TextDocumentContentChangeEvent] -> Value
$ctoJSONList :: [TextDocumentContentChangeEvent] -> Value
toEncoding :: TextDocumentContentChangeEvent -> Encoding
$ctoEncoding :: TextDocumentContentChangeEvent -> Encoding
toJSON :: TextDocumentContentChangeEvent -> Value
$ctoJSON :: TextDocumentContentChangeEvent -> Value
Aeson.ToJSON, Value -> Parser [TextDocumentContentChangeEvent]
Value -> Parser TextDocumentContentChangeEvent
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TextDocumentContentChangeEvent]
$cparseJSONList :: Value -> Parser [TextDocumentContentChangeEvent]
parseJSON :: Value -> Parser TextDocumentContentChangeEvent
$cparseJSON :: Value -> Parser TextDocumentContentChangeEvent
Aeson.FromJSON)
  deriving stock (Int -> TextDocumentContentChangeEvent -> ShowS
[TextDocumentContentChangeEvent] -> ShowS
TextDocumentContentChangeEvent -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TextDocumentContentChangeEvent] -> ShowS
$cshowList :: [TextDocumentContentChangeEvent] -> ShowS
show :: TextDocumentContentChangeEvent -> String
$cshow :: TextDocumentContentChangeEvent -> String
showsPrec :: Int -> TextDocumentContentChangeEvent -> ShowS
$cshowsPrec :: Int -> TextDocumentContentChangeEvent -> ShowS
Show, TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
$c/= :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
== :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
$c== :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
Eq, Eq TextDocumentContentChangeEvent
TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Ordering
TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> TextDocumentContentChangeEvent
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 :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> TextDocumentContentChangeEvent
$cmin :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> TextDocumentContentChangeEvent
max :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> TextDocumentContentChangeEvent
$cmax :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> TextDocumentContentChangeEvent
>= :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
$c>= :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
> :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
$c> :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
<= :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
$c<= :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
< :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
$c< :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Bool
compare :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Ordering
$ccompare :: TextDocumentContentChangeEvent
-> TextDocumentContentChangeEvent -> Ordering
Ord, forall x.
Rep TextDocumentContentChangeEvent x
-> TextDocumentContentChangeEvent
forall x.
TextDocumentContentChangeEvent
-> Rep TextDocumentContentChangeEvent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TextDocumentContentChangeEvent x
-> TextDocumentContentChangeEvent
$cfrom :: forall x.
TextDocumentContentChangeEvent
-> Rep TextDocumentContentChangeEvent x
Generic)
  deriving anyclass (TextDocumentContentChangeEvent -> ()
forall a. (a -> ()) -> NFData a
rnf :: TextDocumentContentChangeEvent -> ()
$crnf :: TextDocumentContentChangeEvent -> ()
NFData, Eq TextDocumentContentChangeEvent
Int -> TextDocumentContentChangeEvent -> Int
TextDocumentContentChangeEvent -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TextDocumentContentChangeEvent -> Int
$chash :: TextDocumentContentChangeEvent -> Int
hashWithSalt :: Int -> TextDocumentContentChangeEvent -> Int
$chashWithSalt :: Int -> TextDocumentContentChangeEvent -> Int
Hashable)
  deriving forall ann. [TextDocumentContentChangeEvent] -> Doc ann
forall ann. TextDocumentContentChangeEvent -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
prettyList :: forall ann. [TextDocumentContentChangeEvent] -> Doc ann
$cprettyList :: forall ann. [TextDocumentContentChangeEvent] -> Doc ann
pretty :: forall ann. TextDocumentContentChangeEvent -> Doc ann
$cpretty :: forall ann. TextDocumentContentChangeEvent -> Doc ann
Pretty via (ViaJSON TextDocumentContentChangeEvent)