DrIFT-cabalized: Program to derive type class instances

[ bsd3, data-structures, deprecated, program ] [ Propose Tags ]
Deprecated. in favor of DrIFT

DrIFT is a type sensitive preprocessor for Haskell. It extracts type declarations and directives from modules. The directives cause rules to be fired on the parsed type declarations, generating new code which is then appended to the bottom of the input file. The rules are expressed as Haskell code, and it is intended that the user can add new rules as required.

DrIFT automates instance derivation for classes that aren't supported by the standard compilers. In addition, instances can be produced in seperate modules to that containing the type declaration. This allows instances to be derived for a type after the original module has been compiled. As a bonus, simple utility functions can also be produced from a type.

This package was cabalized by gwern gwern0@gmail.com.

[Skip to Readme]


Maintainer's Corner

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,, 2.2.4, 2.3.0
Change log Changelog
Dependencies base (>=4.0 && <5), old-time, process, random [details]
License BSD-3-Clause
Author Noel Winstanley, John Meacham <john@repetae.net>
Maintainer <gwern0@gmail.com>, Kiwamu Okabe <kiwamu@debian.or.jp>
Category Data Structures
Home page http://repetae.net/computer/haskell/DrIFT/
Source repo head: git clone https://github.com/ajhc/drift.git
Uploaded by KiwamuOkabe at 2013-03-28T13:32:07Z
Distributions NixOS:2.3.0
Executables DrIFT-cabalized-ghc, DrIFT-cabalized
Downloads 4762 total (25 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-21 [all 7 reports]

Readme for DrIFT-cabalized-

[back to package description]


This package contains a source distribution of DrIFT, a tool for automatic
derivation of Haskell class instances. DrIFT was formerly known as Derive.

the current homepage is at


Contents of this package:

  - src         Directory with the source files of the DrIFT tool
  - example     Directory with examples of using the DrIFT tool
  - docs        Documentation


To configure and install DrIFT from the source tarball

  ./configure --prefix=<dir>
  make install

Where <dir> is the directory in which you want to install the tool. Note that
a haskell compiler (nhc98 or ghc) must be in your path. Otherwise, supply the
location of a Haskell compiler as follows:

  ./configure --prefix=<dir> --with-hc=<haskell compiler>
  make install

If you have pulled the source from the darcs repository, you must first build
the autotools scripts by running

 autoreconf -i


You may optionally sset DERIVEPATH to the list of directories you wish to search for

as an example:


to run DrIFT, simply pass the haskell file name as an argument. you may run
DrIFT --help to get a summary of the various command line options