[Haskell-cafe] Project structure
jwlato at gmail.com
Thu Mar 3 13:07:42 CET 2011
> From: "Hauschild, Klaus (EXT)"
> Hi Haskellers,
> is there a recommended structure for Haskell projects. I like the Maven way
> for Java projects. How to separate productive from test code, how to
> separate source code from other resources?
I like the way the Snap-framework is organized:
Then if you have e.g.
the tests go in
Basically "src" is for all productive code, "test" is for tests of that
code. I sometimes add these to the top level:
"tools" is for code generators or similar tools that auto-generate stuff to
go in ./src which cabal doesn't know about. "resources" would be data
files, images, or similar resources that get bundled with the distribution.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe