{-# OPTIONS_GHC -Wno-unused-imports #-}
{-# OPTIONS_GHC -Wno-unused-matches #-}
{-# OPTIONS_GHC -Wno-deprecations #-}
module Language.LSP.Protocol.Internal.Types.UniquenessLevel 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.Set
import qualified Data.String
import qualified Data.Text
import qualified Language.LSP.Protocol.Types.LspEnum
data UniquenessLevel =
UniquenessLevel_Document
|
UniquenessLevel_Project
|
UniquenessLevel_Group
|
UniquenessLevel_Scheme
|
UniquenessLevel_Global
deriving stock (Int -> UniquenessLevel -> ShowS
[UniquenessLevel] -> ShowS
UniquenessLevel -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UniquenessLevel] -> ShowS
$cshowList :: [UniquenessLevel] -> ShowS
show :: UniquenessLevel -> String
$cshow :: UniquenessLevel -> String
showsPrec :: Int -> UniquenessLevel -> ShowS
$cshowsPrec :: Int -> UniquenessLevel -> ShowS
Show, UniquenessLevel -> UniquenessLevel -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UniquenessLevel -> UniquenessLevel -> Bool
$c/= :: UniquenessLevel -> UniquenessLevel -> Bool
== :: UniquenessLevel -> UniquenessLevel -> Bool
$c== :: UniquenessLevel -> UniquenessLevel -> Bool
Eq, Eq UniquenessLevel
UniquenessLevel -> UniquenessLevel -> Bool
UniquenessLevel -> UniquenessLevel -> Ordering
UniquenessLevel -> UniquenessLevel -> UniquenessLevel
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 :: UniquenessLevel -> UniquenessLevel -> UniquenessLevel
$cmin :: UniquenessLevel -> UniquenessLevel -> UniquenessLevel
max :: UniquenessLevel -> UniquenessLevel -> UniquenessLevel
$cmax :: UniquenessLevel -> UniquenessLevel -> UniquenessLevel
>= :: UniquenessLevel -> UniquenessLevel -> Bool
$c>= :: UniquenessLevel -> UniquenessLevel -> Bool
> :: UniquenessLevel -> UniquenessLevel -> Bool
$c> :: UniquenessLevel -> UniquenessLevel -> Bool
<= :: UniquenessLevel -> UniquenessLevel -> Bool
$c<= :: UniquenessLevel -> UniquenessLevel -> Bool
< :: UniquenessLevel -> UniquenessLevel -> Bool
$c< :: UniquenessLevel -> UniquenessLevel -> Bool
compare :: UniquenessLevel -> UniquenessLevel -> Ordering
$ccompare :: UniquenessLevel -> UniquenessLevel -> Ordering
Ord, forall x. Rep UniquenessLevel x -> UniquenessLevel
forall x. UniquenessLevel -> Rep UniquenessLevel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UniquenessLevel x -> UniquenessLevel
$cfrom :: forall x. UniquenessLevel -> Rep UniquenessLevel x
Generic)
deriving anyclass (UniquenessLevel -> ()
forall a. (a -> ()) -> NFData a
rnf :: UniquenessLevel -> ()
$crnf :: UniquenessLevel -> ()
NFData, Eq UniquenessLevel
Int -> UniquenessLevel -> Int
UniquenessLevel -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: UniquenessLevel -> Int
$chash :: UniquenessLevel -> Int
hashWithSalt :: Int -> UniquenessLevel -> Int
$chashWithSalt :: Int -> UniquenessLevel -> Int
Hashable)
deriving ( [UniquenessLevel] -> Encoding
[UniquenessLevel] -> Value
UniquenessLevel -> Encoding
UniquenessLevel -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [UniquenessLevel] -> Encoding
$ctoEncodingList :: [UniquenessLevel] -> Encoding
toJSONList :: [UniquenessLevel] -> Value
$ctoJSONList :: [UniquenessLevel] -> Value
toEncoding :: UniquenessLevel -> Encoding
$ctoEncoding :: UniquenessLevel -> Encoding
toJSON :: UniquenessLevel -> Value
$ctoJSON :: UniquenessLevel -> Value
Aeson.ToJSON
, Value -> Parser [UniquenessLevel]
Value -> Parser UniquenessLevel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [UniquenessLevel]
$cparseJSONList :: Value -> Parser [UniquenessLevel]
parseJSON :: Value -> Parser UniquenessLevel
$cparseJSON :: Value -> Parser UniquenessLevel
Aeson.FromJSON ) via (Language.LSP.Protocol.Types.LspEnum.AsLspEnum UniquenessLevel Data.Text.Text)
deriving forall ann. [UniquenessLevel] -> Doc ann
forall ann. UniquenessLevel -> Doc ann
forall a.
(forall ann. a -> Doc ann)
-> (forall ann. [a] -> Doc ann) -> Pretty a
prettyList :: forall ann. [UniquenessLevel] -> Doc ann
$cprettyList :: forall ann. [UniquenessLevel] -> Doc ann
pretty :: forall ann. UniquenessLevel -> Doc ann
$cpretty :: forall ann. UniquenessLevel -> Doc ann
Pretty via (ViaJSON UniquenessLevel)
instance Language.LSP.Protocol.Types.LspEnum.LspEnum UniquenessLevel where
knownValues :: Set UniquenessLevel
knownValues = forall a. Ord a => [a] -> Set a
Data.Set.fromList [UniquenessLevel
UniquenessLevel_Document
,UniquenessLevel
UniquenessLevel_Project
,UniquenessLevel
UniquenessLevel_Group
,UniquenessLevel
UniquenessLevel_Scheme
,UniquenessLevel
UniquenessLevel_Global]
type EnumBaseType UniquenessLevel = Data.Text.Text
toEnumBaseType :: UniquenessLevel -> EnumBaseType UniquenessLevel
toEnumBaseType UniquenessLevel
UniquenessLevel_Document = Text
"document"
toEnumBaseType UniquenessLevel
UniquenessLevel_Project = Text
"project"
toEnumBaseType UniquenessLevel
UniquenessLevel_Group = Text
"group"
toEnumBaseType UniquenessLevel
UniquenessLevel_Scheme = Text
"scheme"
toEnumBaseType UniquenessLevel
UniquenessLevel_Global = Text
"global"
fromEnumBaseType :: EnumBaseType UniquenessLevel -> Maybe UniquenessLevel
fromEnumBaseType EnumBaseType UniquenessLevel
"document" = forall (f :: * -> *) a. Applicative f => a -> f a
pure UniquenessLevel
UniquenessLevel_Document
fromEnumBaseType EnumBaseType UniquenessLevel
"project" = forall (f :: * -> *) a. Applicative f => a -> f a
pure UniquenessLevel
UniquenessLevel_Project
fromEnumBaseType EnumBaseType UniquenessLevel
"group" = forall (f :: * -> *) a. Applicative f => a -> f a
pure UniquenessLevel
UniquenessLevel_Group
fromEnumBaseType EnumBaseType UniquenessLevel
"scheme" = forall (f :: * -> *) a. Applicative f => a -> f a
pure UniquenessLevel
UniquenessLevel_Scheme
fromEnumBaseType EnumBaseType UniquenessLevel
"global" = forall (f :: * -> *) a. Applicative f => a -> f a
pure UniquenessLevel
UniquenessLevel_Global
fromEnumBaseType EnumBaseType UniquenessLevel
_ = forall a. Maybe a
Nothing