[Haskell-cafe] Deriving class instances using DrIFT
John Meacham
john at repetae.net
Mon Oct 30 19:07:56 EST 2006
On Tue, Oct 31, 2006 at 07:46:05AM +1300, Daniel McAllansmith wrote:
> Hmmm, seems strange that it can successfully derive for the Data.Maybe type
> but not the Data.Word32 type. I didn't think it would have access to any
> original source from my ghc install, there only seems to be hi files.
It has a few data definitions built into it. Bool,Maybe,Either, and
Ordering.
see src/PreludData.hs for how that is done.
John
--
John Meacham - ⑆repetae.net⑆john⑈
More information about the Haskell-Cafe
mailing list