{-# OPTIONS_GHC -Wno-unused-imports #-}
{-# OPTIONS_GHC -Wno-unused-matches #-}
{-# OPTIONS_GHC -Wno-deprecations #-}
module Language.LSP.Protocol.Internal.Types.ChangeAnnotationIdentifier 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 Data.Text
newtype ChangeAnnotationIdentifier = ChangeAnnotationIdentifier Data.Text.Text
deriving newtype ( [ChangeAnnotationIdentifier] -> Encoding
[ChangeAnnotationIdentifier] -> Value
ChangeAnnotationIdentifier -> Encoding
ChangeAnnotationIdentifier -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ChangeAnnotationIdentifier] -> Encoding
$ctoEncodingList :: [ChangeAnnotationIdentifier] -> Encoding
toJSONList :: [ChangeAnnotationIdentifier] -> Value
$ctoJSONList :: [ChangeAnnotationIdentifier] -> Value
toEncoding :: ChangeAnnotationIdentifier -> Encoding
$ctoEncoding :: ChangeAnnotationIdentifier -> Encoding
toJSON :: ChangeAnnotationIdentifier -> Value
$ctoJSON :: ChangeAnnotationIdentifier -> Value
Aeson.ToJSON
, Value -> Parser [ChangeAnnotationIdentifier]
Value -> Parser ChangeAnnotationIdentifier
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ChangeAnnotationIdentifier]
$cparseJSONList :: Value -> Parser [ChangeAnnotationIdentifier]
parseJSON :: Value -> Parser ChangeAnnotationIdentifier
$cparseJSON :: Value -> Parser ChangeAnnotationIdentifier
Aeson.FromJSON
, ToJSONKeyFunction [ChangeAnnotationIdentifier]
ToJSONKeyFunction ChangeAnnotationIdentifier
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChangeAnnotationIdentifier]
$ctoJSONKeyList :: ToJSONKeyFunction [ChangeAnnotationIdentifier]
toJSONKey :: ToJSONKeyFunction ChangeAnnotationIdentifier
$ctoJSONKey :: ToJSONKeyFunction ChangeAnnotationIdentifier
Aeson.ToJSONKey
, FromJSONKeyFunction [ChangeAnnotationIdentifier]
FromJSONKeyFunction ChangeAnnotationIdentifier
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChangeAnnotationIdentifier]
$cfromJSONKeyList :: FromJSONKeyFunction [ChangeAnnotationIdentifier]
fromJSONKey :: FromJSONKeyFunction ChangeAnnotationIdentifier
$cfromJSONKey :: FromJSONKeyFunction ChangeAnnotationIdentifier
Aeson.FromJSONKey )
deriving stock (Int -> ChangeAnnotationIdentifier -> ShowS
[ChangeAnnotationIdentifier] -> ShowS
ChangeAnnotationIdentifier -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChangeAnnotationIdentifier] -> ShowS
$cshowList :: [ChangeAnnotationIdentifier] -> ShowS
show :: ChangeAnnotationIdentifier -> String
$cshow :: ChangeAnnotationIdentifier -> String
showsPrec :: Int -> ChangeAnnotationIdentifier -> ShowS
$cshowsPrec :: Int -> ChangeAnnotationIdentifier -> ShowS
Show, ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
$c/= :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
== :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
$c== :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
Eq, Eq ChangeAnnotationIdentifier
ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
ChangeAnnotationIdentifier
-> ChangeAnnotationIdentifier -> Ordering
ChangeAnnotationIdentifier
-> ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier
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 :: ChangeAnnotationIdentifier
-> ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier
$cmin :: ChangeAnnotationIdentifier
-> ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier
max :: ChangeAnnotationIdentifier
-> ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier
$cmax :: ChangeAnnotationIdentifier
-> ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier
>= :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
$c>= :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
> :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
$c> :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
<= :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
$c<= :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
< :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
$c< :: ChangeAnnotationIdentifier -> ChangeAnnotationIdentifier -> Bool
compare :: ChangeAnnotationIdentifier
-> ChangeAnnotationIdentifier -> Ordering
$ccompare :: ChangeAnnotationIdentifier
-> ChangeAnnotationIdentifier -> Ordering
Ord, forall x.
Rep ChangeAnnotationIdentifier x -> ChangeAnnotationIdentifier
forall x.
ChangeAnnotationIdentifier -> Rep ChangeAnnotationIdentifier x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChangeAnnotationIdentifier x -> ChangeAnnotationIdentifier
$cfrom :: forall x.
ChangeAnnotationIdentifier -> Rep ChangeAnnotationIdentifier x
Generic)
deriving anyclass (ChangeAnnotationIdentifier -> ()
forall a. (a -> ()) -> NFData a
rnf :: ChangeAnnotationIdentifier -> ()
$crnf :: ChangeAnnotationIdentifier -> ()
NFData, Eq ChangeAnnotationIdentifier
Int -> ChangeAnnotationIdentifier -> Int
ChangeAnnotationIdentifier -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ChangeAnnotationIdentifier -> Int
$chash :: ChangeAnnotationIdentifier -> Int
hashWithSalt :: Int -> ChangeAnnotationIdentifier -> Int
$chashWithSalt :: Int -> ChangeAnnotationIdentifier -> Int
Hashable)
deriving forall ann. [ChangeAnnotationIdentifier] -> Doc ann
forall ann. ChangeAnnotationIdentifier -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
prettyList :: forall ann. [ChangeAnnotationIdentifier] -> Doc ann
$cprettyList :: forall ann. [ChangeAnnotationIdentifier] -> Doc ann
pretty :: forall ann. ChangeAnnotationIdentifier -> Doc ann
$cpretty :: forall ann. ChangeAnnotationIdentifier -> Doc ann
Pretty via (ViaJSON ChangeAnnotationIdentifier)