graphql-engine/server/src-lib/Hasura/GraphQL/Parser/Name.hs
Samir Talwar 3d5f39702b Inline scalar type names in RQL.Common.
So that we don't need to import `RQL` from `GraphQL.Parser`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5057
GitOrigin-RevId: 17b35871b853c52a6b03afe5bff9553f56f8e3b4
2022-07-15 10:11:13 +00:00

23 lines
815 B
Haskell

-- | 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,
builtInScalars,
)
where
import Data.HashSet (HashSet)
import Data.HashSet qualified as Set
import Hasura.GraphQL.Parser.Name.Introspection
import Hasura.GraphQL.Parser.Name.TypeSystem
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]