File: cgi.cabal

package info (click to toggle)
haskell-cgi 3001.3.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 156 kB
  • sloc: haskell: 798; makefile: 3
file content (89 lines) | stat: -rw-r--r-- 2,127 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
83
84
85
86
87
88
89
Name: cgi
Version: 3001.3.0.2
Copyright: Bjorn Bringert, John Chee, Andy Gill, Anders Kaseorg,
           Ian Lynagh, Erik Meijer, Sven Panne, Jeremy Shaw
Category: Network
Maintainer: John Chee <cheecheeo@gmail.com>
Author: Bjorn Bringert
Homepage: https://github.com/cheecheeo/haskell-cgi
bug-reports: https://github.com/cheecheeo/haskell-cgi/issues
License: BSD3
License-file: LICENSE
Synopsis: A library for writing CGI programs
Description:
 This is a Haskell library for writing CGI programs.
Build-Type: Simple
extra-source-files: CHANGELOG.md
Cabal-Version: >=1.8

source-repository head
  type: git
  location: git://github.com/cheecheeo/haskell-cgi.git

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

Flag old-mtl
  description: Use mtl-compat and mtl < 2.2.0.1
  default: False

Library
  Exposed-Modules:
    Network.CGI,
    Network.CGI.Monad,
    Network.CGI.Protocol,
    Network.CGI.Cookie,
    Network.CGI.Compat
  Other-modules:
    Network.CGI.Accept
  Extensions:
    CPP,
    MultiParamTypeClasses
  ghc-options: -Wall

  Build-depends:
    parsec >= 2.0 && < 3.2,
    exceptions,
    xhtml >= 3000.0.0 && < 3000.3,
    bytestring < 0.11,
    base >= 4.5 && < 5,
    time >= 1.5 && < 1.9,
    containers < 0.6,
    multipart >= 0.1.2 && < 0.2
  If flag(network-uri)
    Build-depends: network-uri == 2.6.*, network == 2.6.*
  Else
    Build-depends: network < 2.6
  If flag(old-mtl)
    Build-depends:
      mtl>=2.1.3.1 && < 2.3, mtl-compat >= 0.2.1.1 && < 0.3
  Else
    Build-depends:
      mtl>=2.2.1 && < 2.3

test-suite doctests
  type:             exitcode-stdio-1.0
  ghc-options:      -threaded
  main-is:          DocTestMain.hs
  other-modules:
    DocTest
  hs-source-dirs:   src
  ghc-options:      -Wall
  build-depends:
      base
    , doctest >= 0.8
    , QuickCheck >= 2.8.1 && < 2.12

--Executable:     printinput
--Main-Is:        printinput.hs
--Hs-Source-Dir:  examples

--Executable:     redirect
--Main-Is:        redirect.hs
--Hs-Source-Dir:  examples

--Executable:     upload
--Main-Is:        upload.hs
--Hs-Source-Dir:  examples