Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Constructors f where
- constructors :: Proxy f -> [[String]]
- 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 c) => Constructors (C1 c f) Source |
genericConstructors :: forall a proxy. (Generic a, Constructors (Rep a)) => proxy a -> [[String]] Source