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

GHC.Generics.Extended

Synopsis

Documentation

constrName :: (HasConstructor (Rep a), Generic a) => a -> String Source #

Return the constructor name of some data with a Generic instance, as a string. Useful when constructing error or trace messages, or debugging.

class HasConstructor (f :: Type -> Type) where Source #

Methods

genericConstrName :: f x -> String Source #