What your cabal file describes is a single executable,
Executable Fonts
main-is: tests/Fonts.hs
This just tells us to build the file tests/Fonts.hs into a single executable named 'Fonts'. You probably want to retructure your project a bit into something like this.
./LICENSE
./README
./Setup.hs
./src
./src/SVGFonts
./src/SVGFonts/KETTriangulation.hs
./src/SVGFonts/PointOfView.hs
./src/SVGFonts/ReadFont.hs
./SVGFonts.cabal
./test
./test/Fonts.hs
./test/GirlsareWeird.svg
./test/LinLibertineO.svg
./test/Scriptin.svg
./TODO
Here's what your cabal file should probably look like:
Name: SVGFonts
Version: 0.1
Description: parse svg-font files and generate outlines of letters and sentences
License: GPL
License-file: LICENSE
Author: Tillmann Vogt
Maintainer:
Tillmann.Vogt@rwth-aachen.deBuild-Type: Simple
Cabal-Version: >=1.2
library
build-depends:
haskell98,
base,
OpenGL,
GLUT,
xml,
parsec
exposed-modules:
SVGFonts.KETTriangulation
SVGFonts.PointOfView
SVGFonts.ReadFont
That isn't exact, but it should be close.
/jve
On Mon, Apr 6, 2009 at 1:32 PM, Tillmann Vogt
<Tillmann.Vogt@rwth-aachen.de> wrote:
John Van Enk schrieb:
It is a real library made of pure Haskell. What is wrong with my .cabal file?
--
/jve