graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.RQL.Types.Numeric

Description

Utility types relating to numeric values

Documentation

newtype NonNegative a Source #

Constructors

NonNegative 

Fields

Instances

Instances details
Functor NonNegative Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

fmap :: (a -> b) -> NonNegative a -> NonNegative b #

(<$) :: a -> NonNegative b -> NonNegative a #

Eq a => Eq (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Ord a => Ord (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Show a => Show (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Generic a => Generic (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Associated Types

type Rep (NonNegative a) :: Type -> Type #

Methods

from :: NonNegative a -> Rep (NonNegative a) x #

to :: Rep (NonNegative a) x -> NonNegative a #

NFData a => NFData (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

rnf :: NonNegative a -> () #

Hashable a => Hashable (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

(Fractional a, FromJSON a) => FromJSON (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

parseJSON :: Value -> Parser (NonNegative a)

parseJSONList :: Value -> Parser [NonNegative a]

ToJSON a => ToJSON (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

toJSON :: NonNegative a -> Value

toEncoding :: NonNegative a -> Encoding

toJSONList :: [NonNegative a] -> Value

toEncodingList :: [NonNegative a] -> Encoding

Cacheable a => Cacheable (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

(Num a, Ord a, FromEnv a) => FromEnv (NonNegative a) Source # 
Instance details

Defined in Hasura.Server.Init.Env

type Rep (NonNegative a) Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

type Rep (NonNegative a) = Rep a

mkNonNegative :: (Ord a, Num a) => a -> Maybe (NonNegative a) Source #

newtype NonNegativeInt Source #

Constructors

NonNegativeInt 

Instances

Instances details
Eq NonNegativeInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Show NonNegativeInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Generic NonNegativeInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Associated Types

type Rep NonNegativeInt :: Type -> Type #

NFData NonNegativeInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

rnf :: NonNegativeInt -> () #

Hashable NonNegativeInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

FromJSON NonNegativeInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

parseJSON :: Value -> Parser NonNegativeInt

parseJSONList :: Value -> Parser [NonNegativeInt]

ToJSON NonNegativeInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

toJSON :: NonNegativeInt -> Value

toEncoding :: NonNegativeInt -> Encoding

toJSONList :: [NonNegativeInt] -> Value

toEncodingList :: [NonNegativeInt] -> Encoding

Cacheable NonNegativeInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

FromEnv NonNegativeInt Source # 
Instance details

Defined in Hasura.Server.Init.Env

type Rep NonNegativeInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

type Rep NonNegativeInt = D1 ('MetaData "NonNegativeInt" "Hasura.RQL.Types.Numeric" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "NonNegativeInt" 'PrefixI 'True) (S1 ('MetaSel ('Just "getNonNegativeInt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

newtype PositiveInt Source #

Constructors

PositiveInt 

Fields

Instances

Instances details
Eq PositiveInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Show PositiveInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Generic PositiveInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Associated Types

type Rep PositiveInt :: Type -> Type #

NFData PositiveInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

rnf :: PositiveInt -> () #

Hashable PositiveInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

FromJSON PositiveInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

parseJSON :: Value -> Parser PositiveInt

parseJSONList :: Value -> Parser [PositiveInt]

ToJSON PositiveInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

toJSON :: PositiveInt -> Value

toEncoding :: PositiveInt -> Encoding

toJSONList :: [PositiveInt] -> Value

toEncodingList :: [PositiveInt] -> Encoding

Cacheable PositiveInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

FromEnv PositiveInt Source # 
Instance details

Defined in Hasura.Server.Init.Env

type Rep PositiveInt Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

type Rep PositiveInt = D1 ('MetaData "PositiveInt" "Hasura.RQL.Types.Numeric" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "PositiveInt" 'PrefixI 'True) (S1 ('MetaSel ('Just "getPositiveInt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

newtype NonNegativeDiffTime Source #

Instances

Instances details
Eq NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Num NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Show NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Generic NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Associated Types

type Rep NonNegativeDiffTime :: Type -> Type #

NFData NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

rnf :: NonNegativeDiffTime -> () #

FromJSON NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Methods

parseJSON :: Value -> Parser NonNegativeDiffTime

parseJSONList :: Value -> Parser [NonNegativeDiffTime]

ToJSON NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

Cacheable NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

FromEnv NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.Server.Init.Env

type Rep NonNegativeDiffTime Source # 
Instance details

Defined in Hasura.RQL.Types.Numeric

type Rep NonNegativeDiffTime = D1 ('MetaData "NonNegativeDiffTime" "Hasura.RQL.Types.Numeric" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "NonNegativeDiffTime" 'PrefixI 'True) (S1 ('MetaSel ('Just "unNonNegativeDiffTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffTime)))