[Haskell-cafe] ANN: ecu-0.0.0

Henning Thielemann schlepptop at henning-thielemann.de
Sat Sep 11 13:46:24 EDT 2010

Brent Yorgey schrieb:

> You want conditional configurations in the .cabal file.  See
>   http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#configurations
> For the OS issue you can do something like
>   if os(windows)
>     Build-depends: canlib-windows
>   else
>     Build-depends: canlib
> or whatever.

Would it be better to write canlib in a way that works on both Windows
and Unix? Otherwise all packages that import canlib have to add this switch.

More information about the Haskell-Cafe mailing list