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
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
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
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