File: uri-encode.cabal

package info (click to toggle)
haskell-uri-encode 1.5.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 80 kB
  • sloc: haskell: 86; makefile: 5
file content (82 lines) | stat: -rw-r--r-- 2,166 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
77
78
79
80
81
82
name:                uri-encode
version:             1.5.0.6
description:         Unicode aware uri-encoding.
synopsis:            Unicode aware uri-encoding.
cabal-version:       >= 1.10
category:            Network, Web
author:              Silk
maintainer:          code@silk.co
license:             BSD3
license-file:        LICENSE
build-type:          Simple

extra-source-files:
  CHANGELOG.md
  LICENSE
  README.md

flag tools
  description:       Build executables
  default:           False
  manual:            True

flag network-uri
  description:       Get Network.URI from the network-uri package
  default:           True

source-repository head
  type:              git
  location:          https://github.com/silkapp/uri-encode.git

library
  ghc-options:       -Wall
  hs-source-dirs:    src
  exposed-modules:   Network.URI.Encode
  build-depends:
      base == 4.*
    , bytestring >= 0.9 && < 0.11
    , text >= 0.7 && < 1.3
    , utf8-string >= 0.3 && < 1.1
  if flag(network-uri)
    build-depends: network-uri >= 2.6
  else
    build-depends: network (>= 2.2 && < 2.4.1.0) || (> 2.4.1.0 && < 2.6)
  default-language: Haskell2010

executable uri-encode
  main-is:           URIEncode.hs
  ghc-options:       -Wall
  hs-source-dirs:    src
  if flag(tools)
    buildable:       True
    build-depends:
        base == 4.*
      , bytestring >= 0.9 && < 0.11
      , text >= 0.7 && < 1.3
      , utf8-string >= 0.3 && < 1.1
    if flag(network-uri)
      build-depends: network-uri >= 2.6
    else
      build-depends: network (>= 2.2 && < 2.4.1.0) || (> 2.4.1.0 && < 2.6)
  else
    buildable:      False
  default-language: Haskell2010

executable uri-decode
  main-is:           URIDecode.hs
  ghc-options:       -Wall
  hs-source-dirs:    src
  if flag(tools)
    buildable:       True
    build-depends:
        base == 4.*
      , bytestring >= 0.9 && < 0.11
      , text >= 0.7 && < 1.3
      , utf8-string >= 0.3 && < 1.1
    if flag(network-uri)
      build-depends: network-uri >= 2.6
    else
      build-depends: network (>= 2.2 && < 2.4.1.0) || (> 2.4.1.0 && < 2.6)
  else
    buildable:       False
  default-language: Haskell2010