{- 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.ProgressToken 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
import qualified Language.LSP.Protocol.Types.Common

{-|

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