mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-24 07:52:14 +03:00
c980af1b8f
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
11 lines
206 B
Haskell
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
|