[Haskell-cafe] Examples

John D. Ramsdell ramsdell0 at gmail.com
Sun Aug 9 19:29:28 EDT 2009


> Usually I include the example program in the package, but make its compilation conditional using a Cabal flag like buildExamples.

But then the binaries generated from the example program get
installed.  I think the poster wants to share the source code, not
install a demo.

I haven't figure out a way to specify test programs that don't get
installed, but are only intended to be built and run within the
context of a source distribution.

John


More information about the Haskell-Cafe mailing list