File: publicsuffixlist.cabal

package info (click to toggle)
haskell-publicsuffixlist 0.1-12
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 1,064 kB
  • sloc: haskell: 222; makefile: 4
file content (62 lines) | stat: -rw-r--r-- 2,047 bytes parent folder | download | duplicates (3)
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
name:            publicsuffixlist
version:         0.1
license:         BSD3
license-file:    LICENSE
author:          Myles C. Maxfield <myles.maxfield@gmail.com>
maintainer:      Myles C. Maxfield <myles.maxfield@gmail.com>
synopsis:        Is a given string a domain suffix?
description:     Is a given string a domain suffix?
category:        Network
stability:       Experimental
cabal-version:   >= 1.8
build-type:      Simple
homepage:        https://github.com/litherum/publicsuffixlist
extra-source-files: effective_tld_names.dat

flag create
  default: False
flag runtimelist
  default: False

library
    build-depends: base       >= 4       && < 5
                 , containers
                 , data-default
                 , exceptions
                 , resourcet
                 , bytestring >= 0.9
                 , text       >= 0.11
                 , utf8-string
                 , cereal
    if flag(create)
        build-depends: idna             >= 0.1.2 && < 1.0
                     , conduit          >= 1.0.0 && < 2.0.0
                     , conduit-extra
    exposed-modules: Network.PublicSuffixList.Lookup
                   , Network.PublicSuffixList.DataStructure
    other-modules: Network.PublicSuffixList.Types
                 , Network.PublicSuffixList.Serialize
    if flag(create)
        exposed-modules: Network.PublicSuffixList.Create
    ghc-options:     -Wall
    if flag(runtimelist)
      cpp-options: -DRUNTIMELIST="/usr/share/publicsuffix/effective_tld_names.dat"


Test-Suite test-public-suffix-list
    type: exitcode-stdio-1.0
    main-is: Test/PublicSuffixList.hs
    build-depends: base     >= 4 && < 5
                 , containers
                 , data-default
                 , resourcet
                 , text     >= 0.11
                 , HUnit
                 , idna     >= 0.1.1   && < 1.0
                 , utf8-string
                 , cereal
                 , bytestring

source-repository head
  type:     git
  location: git://github.com/litherum/publicsuffixlist.git