Cabal: Conditional code and dependencies

John Goerzen jgoerzen at
Mon Jul 25 09:52:12 EDT 2005

On 2005-07-21, Brian Smith <brianlsmith at> wrote:
> (b) A program requires some unix-specific code (package unix) or
> windows-specific code (package win32) depending on what operating
> system the program is built for.

I just ran into this problem with making MissingH work on Windows.  I
finally wound up providing a batch file for Windows users that hacks the
.cabal file, which then can be used to build the package on Windows.
Ugly, but works.

-- John

More information about the Libraries mailing list