
11 Sep
2010
11 Sep
'10
5:46 p.m.
Brent Yorgey schrieb:
You want conditional configurations in the .cabal file. See
http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.ht...
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.