Popularity
4.1
Declining
Activity
0.0
Stable
5
3
2

Monthly Downloads: 10
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Data    

template-default alternatives and similar packages

Based on the "Data" category.
Alternatively, view template-default alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of template-default or a related project?

Add another 'Data' Package

README

template-default

declaring Default instances just got even easier

Declaring instances of the Default type class has always been pretty mechanical. This package makes the compiler do the mechanical bit. This has the benefit that even less thought is required, and the instance will automatically be corrected when the definition of the data type changes (say, to add more arguments to the constructor). Usage looks like this:

{-# LANGUAGE TemplateHaskell #-}
import Data.Default.TH
deriveDefault ''MyFancyTypeName