Network.URI - MIN_VERSION_base problem, or finger-trouble?

Herbert Valerio Riedel hvr at gnu.org
Tue Jan 1 15:19:43 CET 2013


Daniel Fischer <daniel.is.fischer at googlemail.com> writes:


[...]

> When hacking on a package without using cabal, you can
>
> a) remove the problematic macro
> b) define it in the file yourself
> c) pass -D"MIN_VERSION_base(x,y,z)=1" on the command line

what about mimicking what cabal does, e.g. create a CPP file
(e.g. 'cabal_macros.h') with the needed definitions and call ghc(i)
something along the lines of

  ghci -optP-include -optPcabal_macros.h TheModule.hs

?



More information about the Libraries mailing list