-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Haskell High Performance Programming
By :

A typical Haskell project consists of one or several of the following sections:
All of these are supported by Cabal. Starting with a new project from scratch, we can use cabal init
to create a .cabal
file with basic information such as the package name and maintainer details already filled in. Moreover, if you already have a bunch of Haskell source files in your working directory, then Cabal will add those to the .cabal
file and even guess package dependencies for you.
The structure often found in projects that have both a library and an executable is to place library code and the executable's source files under different subdirectories. If we have a single library module, dubbed Lib
, and a main
, the structure would be:
some-package/ src...