graphql-engine/server/src-lib/Hasura/GraphQL/Parser/Names.hs
Samir Talwar c980af1b8f Move MkTypename and NamingCase into their own modules.
This moves `MkTypename` and `NamingCase` into their own modules, with the intent of reducing the scope of the schema parsers code, and trying to reduce imports of large modules when small ones will do.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4978
GitOrigin-RevId: 19541257fe010035390f6183a4eaa37bae0d3ca1
2022-07-12 14:01:28 +00:00

11 lines
206 B
Haskell

module Hasura.GraphQL.Parser.Names (HasName (..)) where
import Language.GraphQL.Draft.Syntax (Name)
import Prelude
class HasName a where
getName :: a -> Name
instance HasName Name where
getName = id