Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 177 lines (157 sloc) 5.3 kB
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
1 name: snap-core
619b844 @ozataman Bump version and some dependencies
ozataman authored
2 version: 0.6.0
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
3 synopsis: Snap: A Haskell Web Framework (Core)
4
5 description:
dbc512d @gregorycollins Update snap self-description
gregorycollins authored
6 Snap is a simple and fast web development framework and server written in
7 Haskell. For more information or to download the latest version, you can
8 visit the Snap project website at <http://snapframework.com/>.
bad2394 @gregorycollins Snap-core: improve haddock
gregorycollins authored
9 .
10 This library contains the core definitions and types for the Snap framework,
11 including:
12 .
13 1. Primitive types and functions for HTTP (requests, responses, cookies,
14 post/query parameters, etc)
15 .
16 2. Type aliases and helper functions for Iteratee I/O
17 .
18 3. A monad for programming web handlers called \"Snap\", inspired by
19 happstack's (<http://happstack.com/index.html>), which allows:
20 .
21 * Stateful access to the HTTP request and response objects
22 .
23 * Monadic failure (i.e. MonadPlus/Alternative instances) for declining
24 to handle requests and chaining handlers together
25 .
26 * Early termination of the computation if you know early what you want
27 to return and want to prevent further monadic processing
28 .
21401a7 @gregorycollins Rename Snap.Types to Snap.Core
gregorycollins authored
29 /Quick start/: The 'Snap' monad and HTTP definitions are in "Snap.Core",
bad2394 @gregorycollins Snap-core: improve haddock
gregorycollins authored
30 some iteratee utilities are in "Snap.Iteratee".
0fb6c66 @gregorycollins Add some text to the project .cabal description
gregorycollins authored
31 .
32 Higher-level facilities for building web applications (like user/session
33 management, component interfaces, data modeling, etc.) are planned but not
34 yet implemented, so this release will mostly be of interest for those who:
35 .
36 * need a fast and minimal HTTP API at roughly the same level of abstraction
37 as Java servlets, or
38 .
39 * are interested in contributing to the Snap Framework project.
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
40
41 license: BSD3
42 license-file: LICENSE
96f0c71 @syg Add myself to the authors list
syg authored
43 author: James Sanders, Shu-yu Guo, Gregory Collins, Doug Beardsley
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
44 maintainer: snap@snapframework.com
45 build-type: Simple
46 cabal-version: >= 1.6
47 homepage: http://snapframework.com/
48 category: Web
49
d32e8d2 @gregorycollins Add extra files for sdist
gregorycollins authored
50 extra-source-files:
51 test/suite/TestSuite.hs,
52 cbits/timefuncs.c,
53 CONTRIBUTORS,
54 extra/haddock.css,
55 extra/hscolour.css,
56 extra/logo.gif,
57 haddock.sh,
58 LICENSE,
59 README.md,
60 README.SNAP.md,
61 Setup.hs,
62 test/data/fileServe/foo.bin,
63 test/data/fileServe/foo.bin.bin.bin,
64 test/data/fileServe/foo.html,
65 test/data/fileServe/foo.txt,
694b9d7 @cdsmith Add missing test files
cdsmith authored
66 test/data/fileServe/mydir1/index.txt,
67 test/data/fileServe/mydir2/foo.txt,
68 test/data/fileServe/mydir3/altindex.html,
d32e8d2 @gregorycollins Add extra files for sdist
gregorycollins authored
69 test/runTestsAndCoverage.sh,
70 test/snap-core-testsuite.cabal,
21401a7 @gregorycollins Rename Snap.Types to Snap.Core
gregorycollins authored
71 test/suite/Snap/Core/Tests.hs,
d32e8d2 @gregorycollins Add extra files for sdist
gregorycollins authored
72 test/suite/Snap/Internal/Http/Types/Tests.hs,
007431f @gregorycollins Move cookie parsing test from snap-server to snap-core
gregorycollins authored
73 test/suite/Snap/Internal/Parsing/Tests.hs,
d32e8d2 @gregorycollins Add extra files for sdist
gregorycollins authored
74 test/suite/Snap/Internal/Routing/Tests.hs,
75 test/suite/Snap/Iteratee/Tests.hs,
76 test/suite/Snap/Test/Common.hs,
77 test/suite/Snap/Util/FileServe/Tests.hs,
b56d83e @gregorycollins Add missing testsuite file to extra-source-files
gregorycollins authored
78 test/suite/Snap/Util/FileUploads/Tests.hs,
d32e8d2 @gregorycollins Add extra files for sdist
gregorycollins authored
79 test/suite/Snap/Util/GZip/Tests.hs
80
81
1f969fe @jystic Portable version of snap-core can be built on Linux/Mac OS
jystic authored
82 Flag portable
83 Description: Compile in cross-platform mode. No platform-specific code or
84 optimizations such as C routines will be used.
85 Default: False
86
0a5b831 @gregorycollins Add configure-time flag to disable debug logging altogether
gregorycollins authored
87
826b388 @gregorycollins Turn off debugging by default
gregorycollins authored
88 Flag debug
89 Description: Enable debug logging code. With this flag, Snap will
0a5b831 @gregorycollins Add configure-time flag to disable debug logging altogether
gregorycollins authored
90 test the DEBUG environment variable to decide whether to do
91 logging, and this introduces a tiny amount of overhead
92 (a call into a function pointer) because the calls to 'debug'
826b388 @gregorycollins Turn off debugging by default
gregorycollins authored
93 cannot be inlined.
0a5b831 @gregorycollins Add configure-time flag to disable debug logging altogether
gregorycollins authored
94
95 Default: False
96
97
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
98 Library
99 hs-source-dirs: src
100
826b388 @gregorycollins Turn off debugging by default
gregorycollins authored
101 if !flag(debug)
0a5b831 @gregorycollins Add configure-time flag to disable debug logging altogether
gregorycollins authored
102 cpp-options: -DNODEBUG
103
1f969fe @jystic Portable version of snap-core can be built on Linux/Mac OS
jystic authored
104 if flag(portable) || os(windows)
105 cpp-options: -DPORTABLE
5493800 @jystic Compiles and runs all tests successfully on Windows
jystic authored
106 else
107 c-sources: cbits/timefuncs.c
108 include-dirs: cbits
6446437 @gregorycollins Merge branch 'master' into testing
gregorycollins authored
109 build-depends: bytestring-mmap >= 0.2.2 && <0.3,
038fc7d @gregorycollins Merge branch 'master' into 0.6
gregorycollins authored
110 regex-posix <= 0.94.4,
ef6aa41 @gregorycollins Replace openBinaryTempFile with something not so utterly stupid on pl…
gregorycollins authored
111 unix >= 2.4 && <3.0
112 cpp-options: -DUSE_UNIX
c643e0c @gregorycollins Performance improvements
gregorycollins authored
113
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
114 exposed-modules:
21401a7 @gregorycollins Rename Snap.Types to Snap.Core
gregorycollins authored
115 Snap.Core,
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
116 Snap.Types,
117 Snap.Iteratee,
6dd5632 @gregorycollins Add GZip compression utility
gregorycollins authored
118 Snap.Internal.Debug,
119 Snap.Internal.Http.Types,
120 Snap.Internal.Iteratee.Debug,
1774737 @gregorycollins Integrate file upload support into snap-core.
gregorycollins authored
121 Snap.Internal.Parsing,
6446437 @gregorycollins Merge branch 'master' into testing
gregorycollins authored
122 Snap.Test,
99cb1dd @gregorycollins Make the Headers type opaque.
gregorycollins authored
123 Snap.Types.Headers,
aa4d591 @gregorycollins snap-core: first draft of fileServe module (still needs tests)
gregorycollins authored
124 Snap.Util.FileServe,
1774737 @gregorycollins Integrate file upload support into snap-core.
gregorycollins authored
125 Snap.Util.FileUploads,
6a16a3a @mightybyte Added pathArg and Readable.
mightybyte authored
126 Snap.Util.GZip,
127 Snap.Util.Readable
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
128
61b0a1a @gregorycollins Refactor routing stuff a little bit and improve docs
gregorycollins authored
129 other-modules:
9cf1a67 @gregorycollins Move MonadSnap instances out into a new module
gregorycollins authored
130 Snap.Internal.Instances,
7a604e0 @gregorycollins Fix space leak in MonadCatchIO instance, substitute Boyer-Moore-Horsp…
gregorycollins authored
131 Snap.Internal.Iteratee.BoyerMooreHorspool,
61b0a1a @gregorycollins Refactor routing stuff a little bit and improve docs
gregorycollins authored
132 Snap.Internal.Routing,
c9ee25b @roman Adding the Main Snap.Test module and modifying snap-core.cabal
roman authored
133 Snap.Internal.Types,
134 Snap.Internal.Test.RequestBuilder,
135 Snap.Internal.Test.Assertions
61b0a1a @gregorycollins Refactor routing stuff a little bit and improve docs
gregorycollins authored
136
1774737 @gregorycollins Integrate file upload support into snap-core.
gregorycollins authored
137
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
138 build-depends:
acb8a62 @gregorycollins Bump attoparsec dep
gregorycollins authored
139 attoparsec >= 0.8.0.2 && < 0.10,
1774737 @gregorycollins Integrate file upload support into snap-core.
gregorycollins authored
140 attoparsec-enumerator >= 0.2.0.3,
2751f48 @gregorycollins Bump base version to 4.3.
gregorycollins authored
141 base >= 4.3 && < 5,
f0f40f7 @gregorycollins Update deps, repair test suite
gregorycollins authored
142 base16-bytestring <= 0.2,
49c461a @gregorycollins Bump blaze-builder upper bound (closes #70)
gregorycollins authored
143 blaze-builder >= 0.2.1.4 && <0.4,
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
144 bytestring,
e478f4a @gregorycollins Add URL escaping
gregorycollins authored
145 bytestring-nums,
619b844 @ozataman Bump version and some dependencies
ozataman authored
146 case-insensitive >= 0.3 && < 0.4,
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
147 containers,
1c45834 @gregorycollins Update dependencies.
gregorycollins authored
148 deepseq >= 1.1 && <1.3,
aa4d591 @gregorycollins snap-core: first draft of fileServe module (still needs tests)
gregorycollins authored
149 directory,
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
150 dlist >= 0.5 && < 0.6,
4843939 @gregorycollins Upgrade to latest enumerator, which fixes a bug in catchError
gregorycollins authored
151 enumerator >= 0.4.13.1 && < 0.5,
aa4d591 @gregorycollins snap-core: first draft of fileServe module (still needs tests)
gregorycollins authored
152 filepath,
c9ee25b @roman Adding the Main Snap.Test module and modifying snap-core.cabal
roman authored
153 HUnit >= 1.2 && < 2,
6cb92b7 @mightybyte Removed unnecessary type class instance and cleaned up warnings.
mightybyte authored
154 MonadCatchIO-transformers >= 0.2.1 && < 0.3,
bec80fc @mightybyte Got rid of monads-fd.
mightybyte authored
155 mtl == 2.0.*,
5c492bf @gregorycollins Bump mwc-random dependency
gregorycollins authored
156 mwc-random >= 0.10 && <0.11,
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
157 old-locale,
aa4d591 @gregorycollins snap-core: first draft of fileServe module (still needs tests)
gregorycollins authored
158 old-time,
329a10c @gregorycollins Bump text version
gregorycollins authored
159 text >= 0.11 && <0.12,
7952686 @mightybyte Added time version constraint
mightybyte authored
160 time >= 1.0 && < 1.4,
bec80fc @mightybyte Got rid of monads-fd.
mightybyte authored
161 transformers == 0.2.*,
1c45834 @gregorycollins Update dependencies.
gregorycollins authored
162 unix-compat >= 0.2 && <0.4,
163 vector >= 0.6 && <0.10,
6dd5632 @gregorycollins Add GZip compression utility
gregorycollins authored
164 zlib
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
165
c643e0c @gregorycollins Performance improvements
gregorycollins authored
166 ghc-prof-options: -prof -auto-all
167
e5862f2 @mightybyte Added conditional for -fno-warn-unused-do-bind, which is new in ghc
mightybyte authored
168 if impl(ghc >= 6.12.0)
169 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
170 -fno-warn-unused-do-bind
171 else
172 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
d2e0294 @gregorycollins Commit the new re-structured snap-core
gregorycollins authored
173
174 source-repository head
175 type: git
373804f @mightybyte Updated source-repository location
mightybyte authored
176 location: git://github.com/snapframework/snap-core.git
Something went wrong with that request. Please try again.