Re: [Haskell-cafe] Cabal has trouble with projects that have both src and lib directories?

2008-08-17 Thread Duncan Coutts
On Thu, 2008-08-14 at 22:32 -0400, Nicholas Andrews wrote: Hi! I'm trying to set up a project with both src and lib directories with cabal. My blah.cabal file looks like: Library Build-Depends: base Exposed-Modules:Foo hs-source-dirs: lib/foo Executable hai

Re: [Haskell-cafe] Cabal has trouble with projects that have both src and lib directories?

2008-08-15 Thread Nicholas Andrews
Sorry, I meant runhaskell Setup.hs configure|build. To clarify, I DO have a Setup.hs, and am getting the error in my original post when running it. On Fri, Aug 15, 2008 at 1:42 AM, Ketil Malde [EMAIL PROTECTED] wrote: Nicholas Andrews [EMAIL PROTECTED] writes: $ runhaskell blah.cabal configure

[Haskell-cafe] Cabal has trouble with projects that have both src and lib directories?

2008-08-14 Thread Nicholas Andrews
Hi! I'm trying to set up a project with both src and lib directories with cabal. My blah.cabal file looks like: Library Build-Depends: base Exposed-Modules:Foo hs-source-dirs: lib/foo Executable hai Build-depends: base Main-is:Bar.hs

Re: [Haskell-cafe] Cabal has trouble with projects that have both src and lib directories?

2008-08-14 Thread Ketil Malde
Nicholas Andrews [EMAIL PROTECTED] writes: $ runhaskell blah.cabal configure blah.cabal isn't a Haskell file, you need a file Setup.hs that you can 'runhaskell'. Setup.hs need only contain the following three lines: #!/usr/bin/env runhaskell import Distribution.Simple main = defaultMain -k