The pcap library only compiles on Linux, so I have set up OS-specific conditional compilation for the libraries that depend on the pcap module.
However, I can't find any examples of how to do conditional compilation for executables and tests, so I am currently just commenting them out when I built on Windows or OS X. This is clearly not ideal, but the cabal documentation is somewhat lacking in this area.
The pcap library only compiles on Linux, so I have set up OS-specific conditional compilation for the libraries that depend on the pcap module.
However, I can't find any examples of how to do conditional compilation for executables and tests, so I am currently just commenting them out when I built on Windows or OS X. This is clearly not ideal, but the cabal documentation is somewhat lacking in this area.