rank2classes-1.3.1.1: standard type constructor class hierarchy, only with methods of rank 2 types

Safe Haskell | None
Language | Haskell2010

Rank2.TH

Description

This module exports the templates for automatic instance deriving of Rank2 type classes. The most common way to use it would be

    import qualified Rank2.TH
    data MyDataType f = ...
    $(Rank2.TH.deriveAll ''MyDataType)

or, if you're picky, you can invoke only `deriveFunctor` and whichever other instances you need instead.

# Documentation

deriveAll :: Name -> Q [Dec] Source #

deriveFunctor :: Name -> Q [Dec] Source #

deriveApply :: Name -> Q [Dec] Source #

unsafeDeriveApply :: Name -> Q [Dec] Source #

deriveApplicative :: Name -> Q [Dec] Source #

deriveFoldable :: Name -> Q [Dec] Source #

deriveTraversable :: Name -> Q [Dec] Source #

deriveDistributive :: Name -> Q [Dec] Source #

deriveDistributiveTraversable :: Name -> Q [Dec] Source #