Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- class Constructors f where
- pmap :: (f a -> g b) -> proxy g -> Proxy f
- genericConstructors :: forall a proxy. (Generic a, Constructors (Rep a)) => proxy a -> [[String]]
- class Fields f where
Demo> genericConstructors (Proxy :: Proxy (Either Int Bool))
Demo> genericConstructors (Proxy :: Proxy [Bool])
class Constructors f where Source #
constructors :: Proxy f -> [[String]] Source #
(Constructors f, Constructors g) => Constructors ((:+:) f g) Source # | |
Constructors f => Constructors (D1 d f) Source # | |
(Fields f, Constructor Meta c) => Constructors (C1 c f) Source # | |
genericConstructors :: forall a proxy. (Generic a, Constructors (Rep a)) => proxy a -> [[String]] Source #