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