morpheus-graphql-0.0.1: Morpheus GraphQL

Safe HaskellSafe
LanguageHaskell2010

Data.Morpheus.Generics.GDecodeEnum

Documentation

class GDecodeEnum f where Source #

Methods

gToEnum :: Text -> f a Source #

tagName :: Proxy f -> Text Source #

getTags :: Proxy f -> [Text] Source #

Instances
(GDecodeEnum a, GDecodeEnum b) => GDecodeEnum (a :+: b) Source # 
Instance details

Defined in Data.Morpheus.Generics.GDecodeEnum

Methods

gToEnum :: Text -> (a :+: b) a0 Source #

tagName :: Proxy (a :+: b) -> Text Source #

getTags :: Proxy (a :+: b) -> [Text] Source #

(Datatype c, GDecodeEnum f) => GDecodeEnum (M1 D c f) Source # 
Instance details

Defined in Data.Morpheus.Generics.GDecodeEnum

Methods

gToEnum :: Text -> M1 D c f a Source #

tagName :: Proxy (M1 D c f) -> Text Source #

getTags :: Proxy (M1 D c f) -> [Text] Source #

Constructor c => GDecodeEnum (M1 C c (U1 :: Type -> Type)) Source # 
Instance details

Defined in Data.Morpheus.Generics.GDecodeEnum

Methods

gToEnum :: Text -> M1 C c U1 a Source #

tagName :: Proxy (M1 C c U1) -> Text Source #

getTags :: Proxy (M1 C c U1) -> [Text] Source #