type sensitive preprocessor for Haskell
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. As a bonus, simple utility functions can also be produced
from a type.
- DrIFT comes with a set of rules to produce instances for all
derivable classes given in the Haskell Prelude. There are also a
number of extra useful rules to derive instances of a variety of
- DrIFT performs import chasing to find the definition of a type.
- Code is generated using pretty-printing combinators. This means
that the output is (fairly) well formatted, and easy on the eye.
- Effort has been made to make the rule interface as easy to use as
possible. This is to allow users to add rules to generate code
specific to their own projects. As the rules are themselves
written in Haskell, the user doesn't have to learn a new language
to express rules.
DrIFT can be extended to use new rules supplied by the user by adding
the new rules to the src/Rules directory of the source and recompiling
DrIFR (see chapter 4 of the manual).
To create a Debian package of DrIFT with your own rules file you have
to download the source package. add you own Haskell source file with
rules, build the package and install the resulting Debian packages:
1. First mak
DrIFT(1) User Commands DrIFT(1)
DrIFT - a type sensitive preprocessor for Haskell
DrIFT [ options ... ] file ...
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
drift-ghc(1) User Commands drift-ghc(1)
drift-ghc - a script to use drift as preprocessor of ghc.
ghc -pgmF drift-ghc -F [ options ... ] files ...
The script drift-ghc enables ghc to use DrIFT as preproces‐
sor. By giving the appropriate commandline options ghc will
call drift-ghc as preprocesso
drift (2.2.3-2.2) unstable; urgency=low
* Non-maintainer upload.
* redid build model, collect deriving rules automatically.
Mon Aug 1
DrIFT was originally created by
* Noel Winstanley
An updated implementation for Haskell 98 was pr
This package was debianized by Arjan Oosting <email@example.com> on
Tue, 30 Nov 2004 23:42:03 +01
Browse inside drift_2.2.3-2.2_hurd-i386.deb
Results 1 - 1 of 1Search over 15 billion files
© 1997-2017 FileWatcher.com