[Haskell-cafe] Deriving class instances using DrIFT
Einar Karttunen
ekarttun at cs.helsinki.fi
Mon Oct 30 04:18:00 EST 2006
On 29.10 19:56, John Meacham wrote:
> Since DrIFT can only understand haskell source code, it can't derive
> instances for anything you don't have the original source to. such as
> things in the pre-compiled libraries that come with ghc. you will likely
> have to write out those instances by hand.
>
> Another possibility is that you could replicate just the data
> declarations by hand, and use DrIFT -r to just spit out the derivations
> and put those in a file on their own.
How about using Template Haskell for getting the definition and then
giving that to DrIFT?
- Einar Karttunen
More information about the Haskell-Cafe
mailing list