[Haskell-cafe] Using Cabal during development

Jonathan Daugherty drcygnus at gmail.com
Tue Feb 9 13:51:36 EST 2010

> Then how does the 'Executable' section of your .cabal look like?
> That's what I can't get working.

  Executable vty-ui-demo
    Hs-Source-Dirs:  src
    Main-is:         Demo.hs
      mtl >= 1.1 && < 1.2

The Main-is refers to src/Demo.hs.  This example is from:


The "package description" link on any Hackage package page will link
to the release's cabal file, so you can see how other folks have
written their Executable sections.

Hope that helps,

  Jonathan Daugherty

More information about the Haskell-Cafe mailing list