{- 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.DefinitionLink 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.Internal.Types.LocationLink

{-|
Information about where a symbol is defined.

Provides additional metadata over normal `Location` definitions, including the range of
the defining symbol
-}
newtype DefinitionLink = DefinitionLink Language.LSP.Protocol.Internal.Types.LocationLink.LocationLink
  deriving newtype ([DefinitionLink] -> Encoding
[DefinitionLink] -> Value
DefinitionLink -> Encoding
DefinitionLink -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DefinitionLink] -> Encoding
$ctoEncodingList :: [DefinitionLink] -> Encoding
toJSONList :: [DefinitionLink] -> Value
$ctoJSONList :: [DefinitionLink] -> Value
toEncoding :: DefinitionLink -> Encoding
$ctoEncoding :: DefinitionLink -> Encoding
toJSON :: DefinitionLink -> Value
$ctoJSON :: DefinitionLink -> Value
Aeson.ToJSON, Value -> Parser [DefinitionLink]
Value -> Parser DefinitionLink
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DefinitionLink]
$cparseJSONList :: Value -> Parser [DefinitionLink]
parseJSON :: Value -> Parser DefinitionLink
$cparseJSON :: Value -> Parser DefinitionLink
Aeson.FromJSON)
  deriving stock (Int -> DefinitionLink -> ShowS
[DefinitionLink] -> ShowS
DefinitionLink -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DefinitionLink] -> ShowS
$cshowList :: [DefinitionLink] -> ShowS
show :: DefinitionLink -> String
$cshow :: DefinitionLink -> String
showsPrec :: Int -> DefinitionLink -> ShowS
$cshowsPrec :: Int -> DefinitionLink -> ShowS
Show, DefinitionLink -> DefinitionLink -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DefinitionLink -> DefinitionLink -> Bool
$c/= :: DefinitionLink -> DefinitionLink -> Bool
== :: DefinitionLink -> DefinitionLink -> Bool
$c== :: DefinitionLink -> DefinitionLink -> Bool
Eq, Eq DefinitionLink
DefinitionLink -> DefinitionLink -> Bool
DefinitionLink -> DefinitionLink -> Ordering
DefinitionLink -> DefinitionLink -> DefinitionLink
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 :: DefinitionLink -> DefinitionLink -> DefinitionLink
$cmin :: DefinitionLink -> DefinitionLink -> DefinitionLink
max :: DefinitionLink -> DefinitionLink -> DefinitionLink
$cmax :: DefinitionLink -> DefinitionLink -> DefinitionLink
>= :: DefinitionLink -> DefinitionLink -> Bool
$c>= :: DefinitionLink -> DefinitionLink -> Bool
> :: DefinitionLink -> DefinitionLink -> Bool
$c> :: DefinitionLink -> DefinitionLink -> Bool
<= :: DefinitionLink -> DefinitionLink -> Bool
$c<= :: DefinitionLink -> DefinitionLink -> Bool
< :: DefinitionLink -> DefinitionLink -> Bool
$c< :: DefinitionLink -> DefinitionLink -> Bool
compare :: DefinitionLink -> DefinitionLink -> Ordering
$ccompare :: DefinitionLink -> DefinitionLink -> Ordering
Ord, forall x. Rep DefinitionLink x -> DefinitionLink
forall x. DefinitionLink -> Rep DefinitionLink x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DefinitionLink x -> DefinitionLink
$cfrom :: forall x. DefinitionLink -> Rep DefinitionLink x
Generic)
  deriving anyclass (DefinitionLink -> ()
forall a. (a -> ()) -> NFData a
rnf :: DefinitionLink -> ()
$crnf :: DefinitionLink -> ()
NFData, Eq DefinitionLink
Int -> DefinitionLink -> Int
DefinitionLink -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DefinitionLink -> Int
$chash :: DefinitionLink -> Int
hashWithSalt :: Int -> DefinitionLink -> Int
$chashWithSalt :: Int -> DefinitionLink -> Int
Hashable)
  deriving forall ann. [DefinitionLink] -> Doc ann
forall ann. DefinitionLink -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
prettyList :: forall ann. [DefinitionLink] -> Doc ann
$cprettyList :: forall ann. [DefinitionLink] -> Doc ann
pretty :: forall ann. DefinitionLink -> Doc ann
$cpretty :: forall ann. DefinitionLink -> Doc ann
Pretty via (ViaJSON DefinitionLink)