graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.GraphQL.Schema.Typename

Synopsis

Documentation

newtype MkTypename Source #

Type name customization

Constructors

MkTypename 

Fields

withTypenameCustomization :: forall m r a. (MonadReader r m, Has MkTypename r) => MkTypename -> m a -> m a Source #

Inject a new MkTypename customization function into the environment. This can be used by schema-building code (with MonadBuildSchema constraint) to ensure the correct type name customizations are applied.

mkTypename :: (MonadReader r m, Has MkTypename r) => Name -> m Name Source #

Apply the type name customization function from the current environment.