calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.Internal.ConstructorName

Description

Get the constructor name of something

Documentation

class CtorName a where Source #

Minimal complete definition

Nothing

Methods

ctorName :: a -> String Source #

default ctorName :: (Generic a, GCtorName (Rep a)) => a -> String Source #

Instances

Instances details
CtorName DispatchData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

class GCtorName f where Source #

Methods

gctorName :: f a -> String Source #

Instances

Instances details
(GCtorName f, GCtorName g) => GCtorName (f :+: g :: k -> Type) Source # 
Instance details

Defined in Calamity.Internal.ConstructorName

Methods

gctorName :: forall (a :: k0). (f :+: g) a -> String Source #

Constructor c => GCtorName (C1 c f :: k -> Type) Source # 
Instance details

Defined in Calamity.Internal.ConstructorName

Methods

gctorName :: forall (a :: k0). C1 c f a -> String Source #

GCtorName f => GCtorName (D1 d f :: k -> Type) Source # 
Instance details

Defined in Calamity.Internal.ConstructorName

Methods

gctorName :: forall (a :: k0). D1 d f a -> String Source #