DrIFT

DrIFT is a type sensitive preprocessor for Haskell. It extracts type declarations and directives from modules and applies rules to them which generate code. 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 separate modules to that containing the type declaration. This allows instances to be derived for a type after the original module has been compiled. Simple utility functions can also be produced from a type.

Tags Software Development Code Generators
Licenses BSD Original
Implementation Haskell

Tweet this project Short link

Rss Recent releases

Changes: Numerous enhancements and bugfixes.

Changes: A derivation rule for instances of GhcBinary was added. Record syntax is now allowed on newtype declarations. The 'drift-ghc' script was added to make DrIFT easier to use from ghc, and the instances generated for 'update' have been improved.

Changes: Deriving 'update' now works with newer versions of ghc. A bug in the precedences specified in derived Show and Read instances was fixed. The generated code no longer produces spurious warnings. Support for strict fields and infix constructors was added.

  • Rrelease-mid
  •  15 May 2003 03:48
  • Rrelease-after

Changes: This version adds help messages and categorization to rules, a small isLiterate fix, printing of debug info in a comment in chaseImports, code cleanups, some changes from Strafunski 1.7, and some autoconf/ automake improvements.

Changes: All development branches have been merged into one project. This is an autoconf/automake directed build, tested with nhc and ghc.

E152aa64804a4b795fd7c15bd2b75cd5_thumb

Project Spotlight

Transmission

A lightweight BitTorrent client.

No-screenshot

Project Spotlight

DisableBackspaceNavigation

A Firefox extension which removes the back function from the backspace key.