The template-default package

[Tags:bsd3, library]

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

Properties

Versions 0.1, 0.1.1, 0.1.2
Dependencies base (>=3 && <6), data-default, template-haskell (>=2.4 && <2.8) [details]
License BSD3
Copyright Daniel Wagner 2012
Author Daniel Wagner
Maintainer Daniel Wagner <daniel@wagner-home.com>
Stability Unknown
Category Data
Home page https://github.com/haskell-pkg-janitors/template-default
Uploaded Sat Apr 28 04:14:48 UTC 2012 by DanielWagner
Distributions NixOS:0.1.2
Downloads 568 total (17 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees