-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Template Haskell support for generating `GenericK` instances -- -- This package provides Template Haskell functionality to automatically -- derive GenericK instances (from the kind-generics -- library). @package kind-generics-th @version 0.2.3.1 -- | Main module of kind-generics-th. Please refer to the -- README file for documentation on how to use this package. module Generics.Kind.TH -- | Given the Name of a data type (or, the Name of a -- constructor belonging to a data type), generate GenericK -- instances for that data type. You will likely need to enable most of -- these language extensions in order for GHC to accept the generated -- code: -- --
DataKinds
FlexibleInstances
MultiParamTypeClasses
TemplateHaskell
TypeFamilies
-- preDeriveGenericK ''MyT1 -- preDeriveGenericK ''MyT2 -- preDeriveGenericK ''MyT3 -- postDeriveGenericK ---- -- You will need to enable the extensions UndecidableInstances -- and PolyKinds (even if your data types are not poly-kinded) -- in addition to those mentioned in the documentation of -- deriveGenericK. preDeriveGenericK :: Name -> Q [Dec] -- | See preDeriveGenericK. postDeriveGenericK :: Q [Dec]