-- 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.DocumentFilter 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.NotebookCellTextDocumentFilter
import qualified Language.LSP.Protocol.Internal.Types.TextDocumentFilter
import qualified Language.LSP.Protocol.Types.Common

{-|
A document filter describes a top level text document or
a notebook cell document.

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