derive-2.5.13: A program and library to derive instances for data types

Safe Haskell | None

Data.DeriveMain

Description

Use this module to create your own derive program, supporting custom derivations. As an example:

       import Data.DeriveMain        (deriveMain)
       import Data.Derive.All        (derivations)
       import MyProject.MyDerivation (myDerivation)

       main :: IO
       main = deriveMain $ [myDerivation] ++ derivations

# Documentation

deriveMain :: [Derivation] -> IO ()Source