tagchup-0.4.1: tagchup.cabal
Name: tagchup
Version: 0.4.1
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.10
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.1
Flag buildExamples
description: Build example executables
default: False
Library
Build-Depends:
xml-basic >=0.1.2 && <0.2,
transformers >=0.2 && <0.6,
explicit-exception >=0.1 && <0.2,
bytestring >=0.9.0.1 && <0.11,
containers >=0.1 && <0.6,
non-empty >=0.2.1 && <0.4,
data-accessor >=0.2 && <0.3,
utility-ht >=0.0.13 && <0.1,
base >=3 && <5
Default-Language: Haskell98
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
Test-Suite tagchuptest
Type: exitcode-stdio-1.0
If impl(ghc >= 6.12)
GHC-Options: -rtsopts
GHC-Options: -Wall
Hs-Source-Dirs: testsuite
Other-Modules: Text.HTML.Tagchup.Test
Main-Is: Test.hs
Build-Depends:
tagchup,
xml-basic,
base
Default-Language: Haskell98
Benchmark tagchupspeed
Type: exitcode-stdio-1.0
Build-Depends: old-time >=1.0 && <1.2
GHC-Options: -Wall
Hs-Source-Dirs: src, example
Main-Is: Speed.hs
Build-Depends:
xml-basic,
data-accessor,
explicit-exception,
transformers,
containers,
utility-ht,
bytestring,
base
Default-Language: Haskell98
Executable validate-tagchup
If !flag(buildExamples)
Buildable: False
GHC-Options: -Wall
Hs-Source-Dirs: example
Main-Is: Validate.hs
Build-Depends:
tagchup,
xml-basic,
base
Default-Language: Haskell98
Executable escape-html
If flag(buildExamples)
Build-Depends: hxt >=8.5.2 && <8.6
Else
Buildable: False
GHC-Options: -Wall
Hs-Source-Dirs: example
Main-Is: Escape.hs
Build-Depends:
tagchup,
xml-basic,
base
Default-Language: Haskell98
Executable strip-html
If !flag(buildExamples)
Buildable: False
GHC-Options: -Wall
Hs-Source-Dirs: example
Main-Is: Strip.hs
Build-Depends:
tagchup,
xml-basic,
base
Default-Language: Haskell98