]> gitweb @ CieloNegro.org - Lucu.git/blob - Lucu.cabal
c033bb4fdc1e29134a4155f6902bb3b39b47279e
[Lucu.git] / Lucu.cabal
1 Name:          Lucu
2 Synopsis:      Embedded HTTP Server
3 Description:
4     .
5     Lucu is an embedded HTTP server library.
6     .
7     This isn't a replacement for Apache nor lighttpd. It is intended
8     to be used to build an efficient web-based RESTful application
9     which runs behind a reverse-proxy so it doesn't have some
10     functionalities like logging, client filtering and such.
11     .
12     The library has indeed so many exposed modules, but in general
13     you don't need to import any modules other than
14     "Network.HTTP.Lucu".
15     .
16 Version:       1.0
17 License:       PublicDomain
18 License-File:  COPYING
19 Author:        PHO <pho at cielonegro dot org>
20 Maintainer:    PHO <pho at cielonegro dot org>
21 Stability:     experimental
22 Homepage:      http://cielonegro.org/Lucu.html
23 Bug-Reports:   http://static.cielonegro.org/ditz/Lucu/
24 Category:      Network
25 Tested-With:   GHC == 7.0.3
26 Cabal-Version: >= 1.6
27 Build-Type:    Simple
28 Extra-Source-Files:
29     NEWS
30     examples/HelloWorld.hs
31     examples/Implanted.hs
32     examples/ImplantedSmall.hs
33     examples/Makefile
34     examples/Multipart.hs
35     examples/SSL.hs
36     examples/mise-rafturai.html
37     examples/small-file.txt
38
39 Source-Repository head
40     Type: git
41     Location: git://git.cielonegro.org/Lucu.git
42
43 Flag build-lucu-implant-file
44     Description: Build the lucu-implant-file program.
45     Default:     True
46
47 Flag ssl
48     Description: Enable SSL support.
49     Default:     False
50
51 Library
52     Build-Depends:
53         ascii                      == 0.0.*,
54         attempt                    == 0.3.*,
55         attoparsec                 == 0.10.*,
56         base                       == 4.*,
57         base-unicode-symbols       == 0.2.*,
58         base64-bytestring          == 0.1.*,
59         blaze-builder              == 0.3.*,
60         blaze-html                 == 0.4.*,
61         bytestring                 == 0.9.*,
62         case-insensitive           == 0.4.*,
63         collections-api            == 1.0.*,
64         collections-base-instances == 1.0.*,
65         containers                 == 0.4.*,
66         convertible-text           == 0.4.*,
67         directory                  == 1.1.*,
68         filepath                   == 1.2.*,
69         mtl                        == 2.0.*,
70         network                    == 2.3.*,
71         old-time                   == 1.0.*,
72         stm                        == 2.2.*,
73         stringsearch               == 0.3.*,
74         syb                        == 0.3.*,
75         tagged                     == 0.2.*,
76         template-haskell           == 2.5.*,
77         text                       == 0.11.*,
78         time                       == 1.2.*,
79         time-http                  == 0.4.*,
80         transformers               == 0.2.*
81
82     if flag(ssl)
83         Build-Depends:
84             HsOpenSSL == 0.10.*
85         CPP-Options:
86             -DHAVE_SSL
87
88     Exposed-Modules:
89         Data.Collections.Newtype.TH
90         Network.HTTP.Lucu
91         Network.HTTP.Lucu.Abortion
92         Network.HTTP.Lucu.Authentication
93         Network.HTTP.Lucu.Config
94         Network.HTTP.Lucu.Dispatcher
95         Network.HTTP.Lucu.ETag
96         Network.HTTP.Lucu.HandleLike
97         Network.HTTP.Lucu.Headers
98         Network.HTTP.Lucu.HttpVersion
99         Network.HTTP.Lucu.Httpd
100         Network.HTTP.Lucu.Implant
101         Network.HTTP.Lucu.Implant.PrettyPrint
102         Network.HTTP.Lucu.Implant.Rewrite
103         Network.HTTP.Lucu.MIMEParams
104         Network.HTTP.Lucu.MIMEType
105         Network.HTTP.Lucu.MIMEType.DefaultExtensionMap
106         Network.HTTP.Lucu.MIMEType.Guess
107         Network.HTTP.Lucu.MIMEType.TH
108         Network.HTTP.Lucu.MultipartForm
109         Network.HTTP.Lucu.Parser.Http
110         Network.HTTP.Lucu.Parser
111         Network.HTTP.Lucu.Request
112         Network.HTTP.Lucu.Resource
113         Network.HTTP.Lucu.Response
114         Network.HTTP.Lucu.SocketLike
115         Network.HTTP.Lucu.StaticFile
116         Network.HTTP.Lucu.StatusCode
117         Network.HTTP.Lucu.Utils
118
119     Other-Modules:
120         Network.HTTP.Lucu.Abortion.Internal
121         Network.HTTP.Lucu.Chunk
122         Network.HTTP.Lucu.ContentCoding
123         Network.HTTP.Lucu.DefaultPage
124         Network.HTTP.Lucu.Dispatcher.Internal
125         Network.HTTP.Lucu.Interaction
126         Network.HTTP.Lucu.MIMEParams.Internal
127         Network.HTTP.Lucu.OrphanInstances
128         Network.HTTP.Lucu.Postprocess
129         Network.HTTP.Lucu.Preprocess
130         Network.HTTP.Lucu.RequestReader
131         Network.HTTP.Lucu.Resource.Internal
132         Network.HTTP.Lucu.ResponseWriter
133         Network.HTTP.Lucu.StatusCode.Internal
134
135     ghc-options:
136         -Wall
137
138 Executable lucu-implant-file
139     if flag(build-lucu-implant-file)
140         Buildable: True
141     else
142         Buildable: False
143
144     Main-Is: ImplantFile.hs
145
146     Build-Depends:
147         SHA  == 1.5.*,
148         zlib == 0.5.*
149
150     ghc-options:
151         -Wall -rtsopts