packages feed

tagchup-0.4: tagchup.cabal

Name:           tagchup
Version:        0.4
License:        GPL
License-File:   LICENSE
Author:         Henning Thielemann <tagchup@henning-thielemann.de>
Maintainer:     Henning Thielemann <tagchup@henning-thielemann.de>
Homepage:       http://code.haskell.org/~thielema/tagchup/
Category:       XML
Synopsis:       alternative package for processing of tag soups
Description:
   Tagchup is a package for processing XML, HTML, XHTML documents
   that can also be malformed.
   It allows parsing, formatting and retrieval of such document.
   All functions should be as lazy as possible.
   .
   I use a custom data structure based on types from xml-basic
   for easy interchange with the wraxml package.
   .
   Its lazy monadic parser should be more comprehensible and easier to extend
   than the one of tagsoup-0.6.
   It also handles XML processing instructions and CDATA sections correctly.
   .
   The name Tagchup resembles Ketchup.
Build-Type:  Simple
Cabal-Version: >= 1.6

Data-Files:
   example/Escape/iso8859.xhtml
   example/Escape/iso8859.html
   example/Escape/utf8.xhtml
   example/Escape/utf8.html
   example/Strip/example.xhtml

Source-Repository head
   Type:     darcs
   Location: http://code.haskell.org/~thielema/tagchup/

Source-Repository this
   Type:     darcs
   Location: http://code.haskell.org/~thielema/tagchup/
   Tag:      0.4

Flag buildExamples
   description: Build example executables
   default:     False

Flag buildTests
   description: Build test suite
   default:     False


Library
   Build-Depends:
      xml-basic >=0.1.1 && <0.2,
      transformers >=0.0 && <0.2,
      explicit-exception >=0.1 && <0.2,
      bytestring >=0.9.0.1 && <0.10,
      containers >=0.1 && <0.3,
      data-accessor >=0.2 && <0.3,
      utility-ht >=0.0.1 && <0.1,
      base >=3 && <4
   GHC-Options: -Wall
   Hs-Source-Dirs: src
   Exposed-Modules:
      Text.HTML.Tagchup.Parser
      Text.HTML.Tagchup.Format
      Text.HTML.Tagchup.Tag
      Text.HTML.Tagchup.Tag.Match
      Text.HTML.Tagchup.PositionTag
      Text.HTML.Tagchup.Process

   Other-Modules:
      Text.HTML.Tagchup.Character
      Text.HTML.Tagchup.Parser.Combinator
      Text.HTML.Tagchup.Parser.Core
      Text.HTML.Tagchup.Parser.Status
      Text.HTML.Tagchup.Parser.Stream
      Text.HTML.Tagchup.Parser.Tag

Executable tagchuptest
   If !flag(buildTests)
     Buildable: False
   GHC-Options:    -Wall
   Hs-Source-Dirs: src, example
   Other-Modules:  Text.HTML.Tagchup.Test
   Main-Is:        Test.hs

Executable tagchupspeed
   If flag(buildTests)
     Build-Depends: old-time >=1.0 && <1.1
   Else
     Buildable: False
   GHC-Options:    -Wall
   Hs-Source-Dirs: src, example
   Main-Is:        Speed.hs

Executable validate-tagchup
   If !flag(buildExamples)
     Buildable: False
   GHC-Options:    -Wall
   Hs-Source-Dirs: src, example
   Main-Is:        Validate.hs

Executable escape-html
   If flag(buildExamples)
     Build-Depends: hxt >=8.1 && <8.2
   Else
     Buildable: False
   GHC-Options:    -Wall
   Hs-Source-Dirs: src, example
   Main-Is:        Escape.hs

Executable strip-html
   If !flag(buildExamples)
     Buildable: False
   GHC-Options:    -Wall
   Hs-Source-Dirs: src, example
   Main-Is:        Strip.hs