#ifdef considered harmful (was: DData)
Wolfgang Jeltsch
wolfgang at jeltsch.net
Fri Apr 16 16:06:44 EDT 2004
Am Donnerstag, 15. April 2004 11:35 schrieb Robert Will:
> [...]
> I think what Haskellers (and others) can do in most cases is to factor out
> platform dependent parts to mini-modules which have different
> implementations but the same interface. The version of such a module is
> choosen by the path it resides in during the build process. (Simplest
> case: the -i option of the compiler.) This also has the advantage, that
> the dependencies are made explicit, while preprocessing is a very implicit
> technique, e.g. you have to check type and even syntactic correctness of
> each possible version separately.
I think, this isn't a solution for the problem I originally spoke about,
namely the inability of Haddock to handle deriving clauses fully. Of course,
the best solution here would be if Haddock would fully support deriving but I
don't want to put pressure onto Simon Marlow ;-).
> [...]
Wolfgang
More information about the Libraries
mailing list