This module reexports the SYB3 library.
It also makes some extensions to SYB3, namely getFieldFun and setFieldFun.
- module Data.Generics.SYB.WithClass.Basics
- module Data.Generics.SYB.WithClass.Derive
- constructors :: Data ctx a => Proxy ctx -> a -> [Constr]
- getFieldFun :: forall a m ctx. (Typeable a, Data ctx m) => Proxy ctx -> Int -> m -> a
- setFieldFun :: forall m a ctx. (Data ctx m, Typeable a) => Proxy ctx -> Int -> m -> a -> m
- gToString :: (Show a, Typeable a) => a -> String
Documentation
constructors :: Data ctx a => Proxy ctx -> a -> [Constr]Source
Returns a set of constructors. This function is undefined for Int, Float, Double and Char
getFieldFun :: forall a m ctx. (Typeable a, Data ctx m) => Proxy ctx -> Int -> m -> aSource
A get field fun: parent -> child