yesod-job-queue-0.3.0.4: Background jobs library for Yesod.

Safe HaskellSafe
LanguageHaskell2010

Yesod.JobQueue.GenericConstr

Contents

Synopsis

Demo> genericConstructors (Proxy :: Proxy (Either Int Bool))

Demo> genericConstructors (Proxy :: Proxy [Bool])

class Constructors f where Source #

Minimal complete definition

constructors

Methods

constructors :: Proxy f -> [[String]] Source #

Instances

(Constructors f, Constructors g) => Constructors ((:+:) f g) Source # 

Methods

constructors :: Proxy (* -> *) (f :+: g) -> [[String]] Source #

Constructors f => Constructors (D1 d f) Source # 

Methods

constructors :: Proxy (* -> *) (D1 d f) -> [[String]] Source #

(Fields f, Constructor Meta c) => Constructors (C1 c f) Source # 

Methods

constructors :: Proxy (* -> *) (C1 c f) -> [[String]] Source #

pmap :: (f a -> g b) -> proxy g -> Proxy f Source #

genericConstructors :: forall a proxy. (Generic a, Constructors (Rep a)) => proxy a -> [[String]] Source #

class Fields f where Source #

Minimal complete definition

fields

Methods

fields :: proxy f -> [String] Source #

Instances

Fields U1 Source # 

Methods

fields :: proxy U1 -> [String] Source #

Typeable * a => Fields (K1 i a) Source # 

Methods

fields :: proxy (K1 i a) -> [String] Source #

(Fields f, Fields g) => Fields ((:*:) f g) Source # 

Methods

fields :: proxy (f :*: g) -> [String] Source #

Fields f => Fields (M1 i c f) Source # 

Methods

fields :: proxy (M1 i c f) -> [String] Source #