balodja schrieb:
For such purposes I use separate directory for Paths_pkg.hs and don't
notice it in pkg.cabal. For example, imagine src directory with
source files (appropriately mentioned in pkg.cabal with hs-source-dirs:
src) and additional plugs directory with Paths_pkg.hs (that is not
On Thu, Apr 21, 2011 at 11:27:10PM -0500, Antoine Latter wrote:
2. Here's what I do for the paths situation:
In the package description, create a CPP option so you know you're
compiling via Cabal:
Cpp-options: -DCABAL
Then create a module to wrap around the autogenerated paths module,
On Fri, Apr 22, 2011 at 03:46, Richard Cobbe co...@ccs.neu.edu wrote:
Unfortunately, that's not happening. Cabal is clearly generating the
module; I can see it in dist/build/autogen. But my copy is overriding the
autogenerated one, even for cabal builds -- at least, that's what I'm
seeing
On Thu, Apr 21, 2011 at 11:27:10PM -0500, Antoine Latter wrote:
1. A side note - using the 'cabal' command line tool is easier for
many tasks than 'runhaskell Setup'. In particular, it does a user
install by default.
Interesting -- didn't know that was possible. I didn't see that in the
Cabal
On Fri, Apr 22, 2011 at 09:23:32AM +0200, Max Rabkin wrote:
On Fri, Apr 22, 2011 at 03:46, Richard Cobbe co...@ccs.neu.edu wrote:
Unfortunately, that's not happening. Cabal is clearly generating the
module; I can see it in dist/build/autogen. But my copy is overriding the
autogenerated
On Friday 22 April 2011 13:57:36, Richard Cobbe wrote:
On Thu, Apr 21, 2011 at 11:27:10PM -0500, Antoine Latter wrote:
1. A side note - using the 'cabal' command line tool is easier for
many tasks than 'runhaskell Setup'. In particular, it does a user
install by default.
Interesting --
On Fri, 2011-04-22 at 05:51 +0400, Richard Cobbe wrote:
I did some googling and came across a blog post
(http://neilmitchell.blogspot.com/2008/02/adding-data-files-using-cabal.html)
which suggested that I provide my own Paths_pkg.hs file that points to
the
files' location in the development
I'm running Haskell Platform 2011.2.0.1 on a MacOS 10.6.7 machine (the
machine is 64-bit, but I'm running the 32-bit platform).
I'm writing an application for personal use, and I'd like to use Cabal to
package it up and handle installation. This way, when I'm working on the
program, I won't
On Thu, Apr 21, 2011 at 8:46 PM, Richard Cobbe co...@ccs.neu.edu wrote:
I'm running Haskell Platform 2011.2.0.1 on a MacOS 10.6.7 machine (the
machine is 64-bit, but I'm running the 32-bit platform).
I'm writing an application for personal use, and I'd like to use Cabal to
package it up and