File: tagsoup.cabal

package info (click to toggle)
haskell-tagsoup 0.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 260 kB
  • sloc: haskell: 3,438; makefile: 4
file content (76 lines) | stat: -rw-r--r-- 2,217 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
cabal-version:  >= 1.6
name:           tagsoup
version:        0.13.1
copyright:      Neil Mitchell 2006-2014
author:         Neil Mitchell <ndmitchell@gmail.com>
maintainer:     Neil Mitchell <ndmitchell@gmail.com>
homepage:       http://community.haskell.org/~ndm/tagsoup/
license:        BSD3
category:       XML
license-file:   LICENSE
build-type:     Simple
synopsis:       Parsing and extracting information from (possibly malformed) HTML/XML documents
tested-with:    GHC==7.6.3, GHC==7.4.2, GHC==7.2.2
description:
    TagSoup is a library for parsing HTML/XML. It supports the HTML 5 specification,
    and can be used to parse either well-formed XML, or unstructured and malformed HTML
    from the web. The library also provides useful functions to extract information
    from an HTML document, making it ideal for screen-scraping.
    .
    Users should start from the "Text.HTML.TagSoup" module.
extra-source-files:
    CHANGES.txt
    tagsoup.htm

source-repository head
    type:     git
    location: https://github.com/ndmitchell/tagsoup.git

flag testprog
    default: False
    description: Build the test program

flag download
    default: False
    description: Build with Download module

library
    build-depends: base == 4.*, containers, bytestring, text

    if flag(download)
        build-depends: network
        exposed-modules: Text.HTML.Download

    exposed-modules:
        Text.HTML.TagSoup
        Text.HTML.TagSoup.Entity
        Text.HTML.TagSoup.Match
        Text.HTML.TagSoup.Tree
        Text.StringLike
    other-modules:
        Text.HTML.TagSoup.Generated
        Text.HTML.TagSoup.Implementation
        Text.HTML.TagSoup.Manual
        Text.HTML.TagSoup.Options
        Text.HTML.TagSoup.Parser
        Text.HTML.TagSoup.Render
        Text.HTML.TagSoup.Specification
        Text.HTML.TagSoup.Type

executable tagsoup
    if flag(testprog)
        buildable: True
        build-depends:
            QuickCheck >= 2.4 && < 2.6,
            deepseq >= 1.1 && < 1.4,
            time, directory, process
    else
        buildable: False

    extensions: CPP

    main-is: Main.hs
    other-modules:
        TagSoup.Benchmark
        TagSoup.Sample
        TagSoup.Test