{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
module Data.Morpheus.Kind
( SCALAR,
OBJECT,
ENUM,
WRAPPER,
UNION,
INPUT_OBJECT,
DerivingKind (..),
GQL_KIND,
OUTPUT,
INPUT,
INTERFACE,
TYPE,
CUSTOM,
)
where
import Relude
{-# DEPRECATED GQL_KIND "use: DerivingKind" #-}
type GQL_KIND = DerivingKind
data DerivingKind
= SCALAR
| TYPE
| WRAPPER
| CUSTOM
deriving (Int -> DerivingKind -> ShowS
[DerivingKind] -> ShowS
DerivingKind -> String
(Int -> DerivingKind -> ShowS)
-> (DerivingKind -> String)
-> ([DerivingKind] -> ShowS)
-> Show DerivingKind
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DerivingKind] -> ShowS
$cshowList :: [DerivingKind] -> ShowS
show :: DerivingKind -> String
$cshow :: DerivingKind -> String
showsPrec :: Int -> DerivingKind -> ShowS
$cshowsPrec :: Int -> DerivingKind -> ShowS
Show)
type TYPE = 'TYPE
type SCALAR = 'SCALAR
type WRAPPER = 'WRAPPER
type CUSTOM = 'CUSTOM
{-# DEPRECATED INTERFACE "use: deriving(GQLType), will be automatically inferred" #-}
type INTERFACE = 'TYPE
{-# DEPRECATED ENUM "use: deriving(GQLType), will be automatically inferred" #-}
type ENUM = 'TYPE
{-# DEPRECATED OUTPUT "use: deriving(GQLType), will be automatically inferred" #-}
type OUTPUT = 'TYPE
{-# DEPRECATED INPUT "use: deriving(GQLType), will be automatically inferred" #-}
type INPUT = 'TYPE
{-# DEPRECATED INPUT_OBJECT "use: deriving(GQLType), will be automatically inferred" #-}
type INPUT_OBJECT = 'TYPE
{-# DEPRECATED UNION "use: deriving(GQLType), IMPORTANT: only types with <type constructor name><constructor name> will sustain their form, other union constructors will be wrapped inside an new object" #-}
type UNION = 'TYPE
{-# DEPRECATED OBJECT "use: deriving(GQLType), will be automatically inferred" #-}
type OBJECT = 'TYPE