[Haskell-cafe] ANN: SVGFonts 0.1

John Van Enk vanenkj at gmail.com
Mon Apr 6 13:46:07 EDT 2009


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 at rwth-aachen.de
Build-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 at rwth-aachen.de>wrote:

> John Van Enk schrieb:
>
>> This sounds very cool. Is is just a program, or is there a library sitting
>> behind it? From your .cabal file, it seems to be just a binary program.
>>
>> Is this correct?
>>
>> http://hackage.haskell.org/packages/archive/SVGFonts/0.1/SVGFonts.cabal
>>
>> On Mon, Apr 6, 2009 at 1:22 PM, Tillmann Vogt
>> <Tillmann.Vogt at rwth-aachen.de>wrote:
>>
>>
>
> It is a real library made of pure Haskell. What is wrong with my .cabal
> file?
>



-- 
/jve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090406/74ceedb7/attachment.htm


More information about the Haskell-Cafe mailing list