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

Hasura.Backends.DataConnector.IR.Scalar.Type

Synopsis

Documentation

data Type Source #

Types of scalar values

Used to specify the domain of legal values for a Column.

NOTE: This type shouldn't _need_ ser/de instances, but they're imposed by the Backend class.

XXX: Should we add a Nullable _ :: Type constructor instead of using an isNullable flag in Column?

Constructors

String 
Number 
Bool 

Instances

Instances details
Eq Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

(==) :: Type -> Type -> Bool #

(/=) :: Type -> Type -> Bool #

Data Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Type -> c Type #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Type #

toConstr :: Type -> Constr #

dataTypeOf :: Type -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Type) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Type) #

gmapT :: (forall b. Data b => b -> b) -> Type -> Type #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Type -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Type -> r #

gmapQ :: (forall d. Data d => d -> u) -> Type -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Type -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Type -> m Type #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Type -> m Type #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Type -> m Type #

Ord Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

compare :: Type -> Type -> Ordering #

(<) :: Type -> Type -> Bool #

(<=) :: Type -> Type -> Bool #

(>) :: Type -> Type -> Bool #

(>=) :: Type -> Type -> Bool #

max :: Type -> Type -> Type #

min :: Type -> Type -> Type #

Show Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

Generic Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Associated Types

type Rep Type :: Type -> Type #

Methods

from :: Type -> Rep Type x #

to :: Rep Type x -> Type #

NFData Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

rnf :: Type -> () #

ToErrorValue Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Hashable Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

hashWithSalt :: Int -> Type -> Int

hash :: Type -> Int

FromJSONKey Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

fromJSONKey :: FromJSONKeyFunction Type

fromJSONKeyList :: FromJSONKeyFunction [Type]

FromJSON Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

parseJSON :: Value -> Parser Type

parseJSONList :: Value -> Parser [Type]

ToJSONKey Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

toJSONKey :: ToJSONKeyFunction Type

toJSONKeyList :: ToJSONKeyFunction [Type]

ToJSON Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

toJSON :: Type -> Value

toEncoding :: Type -> Encoding

toJSONList :: [Type] -> Value

toEncodingList :: [Type] -> Encoding

ToTxt Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

toTxt :: Type -> Text Source #

Cacheable Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

unchanged :: Accesses -> Type -> Type -> Bool Source #

From Type Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

from :: Type0 -> Type

From Type Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

Methods

from :: Type -> Type0

type Rep Type Source # 
Instance details

Defined in Hasura.Backends.DataConnector.IR.Scalar.Type

type Rep Type = D1 ('MetaData "Type" "Hasura.Backends.DataConnector.IR.Scalar.Type" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "String" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Number" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bool" 'PrefixI 'False) (U1 :: Type -> Type)))