pugs-DrIFT: DrIFT with pugs-specific rules.

[ bsd3, library, program, pugs ] [ Propose Tags ]

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.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 2.2.3.0, 2.2.3.1, 2.2.3.2, 2.2.3.20110925, 2.2.3.20120203, 2.2.3.20120717, 2.2.3.20130611, 2.2.3.20150815
Change log ChangeLog
Dependencies base (>=4 && <5), bytestring, containers, hashable, hashtables, HsSyck, mtl (>=2.0.0.0), old-time, pretty, pugs-DrIFT, random, stm, utf8-string [details]
License BSD-3-Clause
Author Noel Winstanley
Maintainer Audrey Tang <audreyt@audreyt.org>
Category Pugs
Home page http://pugscode.org/
Uploaded by AudreyTang at 2015-08-15T07:11:52Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Executables pugs-DrIFT
Downloads 5738 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-08-15 [all 1 reports]

Readme for pugs-DrIFT-2.2.3.20150815

[back to package description]
------------------------------------------------------------------------------

			     DrIFT

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:
    <http://repetae.net/john/computer/haskell/DrIFT/>


------------------------------------------------------------------------------

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

------------------------------------------------------------------------------


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

 $ autoreconf -i

To configure and install DrIFT from source or from Hackage, you have two options.


 AUTOTOOLS

You can install through the GNU Autools, like thus:

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

Where <dir> is the directory in which you want to install the tool. Note that
a Haskell compiler (NHC 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

 CABAL

You can also install through Cabal, the standard Haskell packaging tool with the usual set of commands:

      $ runhaskell Setup configure # optional --user --prefix=/home/user/bin
      $ runhaskell Setup build
      $ runhaskell Setup install # --user

(Remember, from Darcs requires autoreconf to have been run! If you are installing from Hackage, autoreconf should have already been run in the source tarball.)

------------------------------------------------------------------------------


You may optionally set the environmental variable $DERIVEPATH to the list of directories you wish to search for modules.

An example:

 DERIVEPATH=/users/grad/nww/share/hugs/lib:/users/grad/nww/share/hugs/lib/hugs


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