[Haskell-cafe] Creating binary distributions with Cabal

Christopher Done chrisdone at googlemail.com
Fri Aug 20 05:18:06 EDT 2010

Does Cabal have a way to produce binary distributions from a package?

I need to create a binary distribution of my project which does not
depend on GHC or any development tools. The package should include all
required data files and configuration files. I've got the latter
covered with Data-Files and getDataFileName, but not sure about what
to do regarding configuration files -- read/write to
$HOME/.myproject/config or $HOME/.myprojectrc, etc., or what?

I'm specifically targeting Redhat because that's the production
server, but I'm wondering if there is or will be a way to agnostically
access data files and configuration files without having to think
about what OS it will be running on, in the same way I can use sockets
or file access without worrying about the particular OS.

Something like cabal sdist --binary --rpm/deb/arch/win/etc?

How does everyone else package up their Haskell programs for binary


More information about the Haskell-Cafe mailing list