2022-06-23 12:14:24 +03:00
|
|
|
-- | Re-exports everything from the sub-modules.
|
|
|
|
--
|
|
|
|
-- Submodules contain names relevant to the GraphQL specification, October 2021.
|
|
|
|
-- https://spec.graphql.org/October2021/
|
|
|
|
--
|
|
|
|
-- Each name is placed in a Haddock section corresponding to its section in the specification.
|
|
|
|
module Hasura.GraphQL.Parser.Name
|
|
|
|
( module Hasura.GraphQL.Parser.Name.Introspection,
|
|
|
|
module Hasura.GraphQL.Parser.Name.TypeSystem,
|
2022-07-15 13:09:24 +03:00
|
|
|
builtInScalars,
|
2022-06-23 12:14:24 +03:00
|
|
|
)
|
|
|
|
where
|
|
|
|
|
2022-07-15 13:09:24 +03:00
|
|
|
import Data.HashSet (HashSet)
|
|
|
|
import Data.HashSet qualified as Set
|
2022-06-23 12:14:24 +03:00
|
|
|
import Hasura.GraphQL.Parser.Name.Introspection
|
|
|
|
import Hasura.GraphQL.Parser.Name.TypeSystem
|
2022-07-15 13:09:24 +03:00
|
|
|
import Language.GraphQL.Draft.Syntax qualified as G
|
|
|
|
|
|
|
|
-- | A set of the type names of GraphQL's built-in scalars.
|
|
|
|
builtInScalars :: HashSet G.Name
|
|
|
|
builtInScalars = Set.fromList [_Boolean, _Float, _ID, _Int, _String]
|