DrIFT
Program to derive type class instances
Data.Derive <http://hackage.haskell.org/package/derive> is good another solution for DrFIT.
But DrFIT is Haskell 98 compliant, derive is not.
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>.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 2.4.2 | 2013-11-11 15:35 UTC | KiwamuOkabe | +30/−28 lines, 5 filesdep +filepath | |
| 2.4.1 | 2013-09-04 07:43 UTC | KiwamuOkabe | +6/−3 lines, 2 filesPVP ok | |
| 2.4.0 | 2013-09-03 12:22 UTC | KiwamuOkabe | +7213/−0 lines, 44 filesdep +DrIFTdep +basedep +old-timesetup-changed |
Dependencies of DrIFT-2.4.2
base >=4.0 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
filepath >=0 1.5.4.0 → 1.5.5.0
| 2026-01-20 08:14 UTC | 1.5.5.0 | +68/−12 lines, 8 filesdep +QuickCheckdep +template-haskell-liftdep +template-haskell-quasiquoterPVP ok |
| 2024-11-17 13:06 UTC | 1.5.4.0 | +26/−6 lines, 3 filesdep ~basePVP ok |
| 2024-06-29 15:30 UTC | 1.5.3.0 | +876/−871 lines, 13 filesdep −QuickCheckdep ~basePVP: major bump suggested |
| 2024-01-26 07:02 UTC | 1.5.2.0 | +330/−256 lines, 11 filesdep +generic-derivingdep +generic-randomdep +tastydep ~basedep ~os-stringPVP ok |
| 2023-11-25 08:29 UTC | 1.5.0.0 | +53/−3744 lines, 35 filesdep +os-stringdep ~basePVP ok |
showing 5 of 35 versions
old-time >=0 1.1.0.5 → 1.1.1.0
| 2026-03-07 10:25 UTC | 1.1.1.0 | +495/−331 lines, 6 filesdep +old-timedep +tastydep +tasty-hunitdep ~basedep ~old-localenew-uploaderPVP ok |
| 2026-01-06 08:48 UTC | 1.1.0.5 | +18/−8 lines, 2 filesPVP ok |
| 2023-12-11 08:39 UTC | 1.1.0.4 | +4746/−4619 lines, 4 filesnew-uploaderPVP: major bump suggested |
| 2014-11-21 10:59 UTC | 1.1.0.3 | +50/−186 lines, 5 filesdep ~basesetup-changedPVP ok |
| 2014-03-22 09:43 UTC | 1.1.0.2 | +1128/−904 lines, 9 filesdep ~basedep ~old-localenew-uploaderPVP ok |
showing 5 of 14 versions
process >=0 1.6.29.0 → 1.6.30.0
| 2026-06-11 10:14 UTC | 1.6.30.0 | +19/−1 lines, 2 filesPVP ok |
| 2026-05-24 11:03 UTC | 1.6.29.0 | +5282/−4831 lines, 7 filesdep ~basePVP ok |
| 2026-04-18 12:18 UTC | 1.6.28.0 | +70/−33 lines, 3 filesPVP ok |
| 2026-03-08 19:39 UTC | 1.6.27.0 | +3/−2 lines, 2 filesPVP ok |
| 2026-03-07 13:46 UTC | 1.6.26.2 | +4852/−5346 lines, 7 filesPVP ok |
showing 5 of 57 versions
random >=0 1.3.0 → 1.3.1
| 2025-04-04 14:25 UTC | 1.3.1 | +15/−6 lines, 3 filesPVP ok |
| 2025-01-06 04:03 UTC | 1.3.0 | +2410/−538 lines, 16 filesdep +data-array-bytedep ~basedep ~transformersPVP ok |
| 2024-12-14 20:31 UTC | 1.2.1.3 | +22/−37 lines, 3 filesdep −doctestdep −mwc-randomdep −unliftiodep ~basedep ~containersdep ~primitivePVP ok |
| 2024-02-04 16:26 UTC | 1.2.1.2 | +17/−12 lines, 2 filesdep ~doctestdep ~tastyPVP: major bump suggested |
| 2022-05-09 02:32 UTC | 1.2.1.1 | +8/−9 lines, 3 filesdep −ghc-byteorderdep ~bytestringdep ~doctestdep ~mtlPVP ok |
showing 5 of 15 versions
Reverse dependencies
no known reverse dependencies