| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Hasura.Backends.DataConnector.IR.Scalar.Value
Synopsis
- data Value
- data Literal
- parseValue :: Type -> Value -> Parser Value
Documentation
Literal scalar values that can appear as leaf nodes in expressions
NOTE: This type shouldn't _need_ ser/de instances, but they're imposed by
the Backend class.
Instances
| Eq Value Source # | |
| Data Value Source # | |
Defined in Hasura.Backends.DataConnector.IR.Scalar.Value Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Value -> c Value # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Value # dataTypeOf :: Value -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Value) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Value) # gmapT :: (forall b. Data b => b -> b) -> Value -> Value # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Value -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Value -> r # gmapQ :: (forall d. Data d => d -> u) -> Value -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Value -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Value -> m Value # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Value -> m Value # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Value -> m Value # | |
| Ord Value Source # | |
| Show Value Source # | |
| Generic Value Source # | |
| NFData Value Source # | |
| Hashable Value Source # | |
| FromJSON Value Source # | |
| ToJSON Value Source # | |
Defined in Hasura.Backends.DataConnector.IR.Scalar.Value Methods toEncoding :: Value -> Encoding toJSONList :: [Value] -> Value0 toEncodingList :: [Value] -> Encoding | |
| Cacheable Value Source # | |
| From Value Value Source # | |
| From Value Value Source # | |
| type Rep Value Source # | |
Defined in Hasura.Backends.DataConnector.IR.Scalar.Value type Rep Value = D1 ('MetaData "Value" "Hasura.Backends.DataConnector.IR.Scalar.Value" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "String" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "Number" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Scientific))) :+: (C1 ('MetaCons "Boolean" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :+: C1 ('MetaCons "Null" 'PrefixI 'False) (U1 :: Type -> Type))) | |
Constructors
| ValueLiteral Value | |
| ArrayLiteral [Value] |
Instances
| Eq Literal Source # | |
| Ord Literal Source # | |
| Show Literal Source # | |
| Generic Literal Source # | |
| NFData Literal Source # | |
| Hashable Literal Source # | |
| ToJSON Literal Source # | |
Defined in Hasura.Backends.DataConnector.IR.Scalar.Value Methods toEncoding :: Literal -> Encoding toJSONList :: [Literal] -> Value toEncodingList :: [Literal] -> Encoding | |
| Cacheable Literal Source # | |
| type Rep Literal Source # | |
Defined in Hasura.Backends.DataConnector.IR.Scalar.Value type Rep Literal = D1 ('MetaData "Literal" "Hasura.Backends.DataConnector.IR.Scalar.Value" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ValueLiteral" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Value)) :+: C1 ('MetaCons "ArrayLiteral" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Value]))) | |
parseValue :: Type -> Value -> Parser Value Source #