Compare commits
59 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d6f6c1b016 | ||
|
bc33b275cc | ||
|
8cad6df585 | ||
|
14f46f6c78 | ||
|
e4132f15fb | ||
|
ee07e85326 | ||
|
ce66b60698 | ||
|
c639bb983f | ||
|
ee8706a39a | ||
|
b786a99726 | ||
|
80f647306b | ||
|
0013ffd465 | ||
|
ecb2ed7263 | ||
|
9f20ff84f1 | ||
|
0972e7b58d | ||
|
a7ecedb544 | ||
|
9cf1cbd025 | ||
|
8b142b29ce | ||
|
5be5eef36c | ||
|
4064c35cd4 | ||
|
cffd56b59f | ||
|
e80e667897 | ||
|
880417b9e2 | ||
|
9edcf9eb0a | ||
|
6970c8b055 | ||
|
e67335dc70 | ||
|
8a6ed6a641 | ||
|
fea0c3d422 | ||
|
e6cce83b59 | ||
|
b1db1d8ebf | ||
|
7139b23401 | ||
|
aebe2d9588 | ||
|
7761920f0d | ||
|
0d774dc88b | ||
|
f0bf771abe | ||
|
ca094dcda7 | ||
|
e51fb042e3 | ||
|
190e70d040 | ||
|
e6b4fa9633 | ||
|
d062657483 | ||
|
12fd8bc4f4 | ||
|
baf4b30a45 | ||
|
d65b8be2bd | ||
|
91f47a8f40 | ||
|
3d04b8a42a | ||
|
ebf345b89f | ||
|
847a4665f4 | ||
|
66f1a244dc | ||
|
353fd3c45c | ||
|
6e2706d35d | ||
|
e81081af66 | ||
|
5f16589c3c | ||
|
0bb1c16df6 | ||
|
b546267520 | ||
|
16a6ce218c | ||
|
b4e490fce2 | ||
|
991ead50ce | ||
|
3628a45424 | ||
|
91096d7c49 |
12
.gitignore
vendored
12
.gitignore
vendored
@ -5,3 +5,15 @@
|
||||
/snap-core-0.9.2.2.tar.gz
|
||||
/snap-core-0.9.3.1.tar.gz
|
||||
/snap-core-0.9.4.0.tar.gz
|
||||
/snap-core-0.9.6.3.tar.gz
|
||||
/snap-core-0.9.6.4.tar.gz
|
||||
/snap-core-0.9.8.0.tar.gz
|
||||
/time-locale-compat-0.1.1.3.tar.gz
|
||||
/snap-core-1.0.1.0.tar.gz
|
||||
/readable-0.3.1.tar.gz
|
||||
/snap-core-1.0.3.1.tar.gz
|
||||
/snap-core-1.0.3.2.tar.gz
|
||||
/snap-core-1.0.4.0.tar.gz
|
||||
/snap-core-1.0.4.1.tar.gz
|
||||
/snap-core-1.0.4.2.tar.gz
|
||||
/snap-core-1.0.5.0.tar.gz
|
||||
|
@ -1,45 +1,89 @@
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
# generated by cabal-rpm-2.1.0 --subpackage
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
||||
|
||||
%global pkg_name snap-core
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
|
||||
%global readable readable-0.3.1
|
||||
%global subpkgs %{readable}
|
||||
|
||||
# testsuite missing deps: test-framework test-framework-hunit test-framework-quickcheck2
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.9.4.0
|
||||
Release: 2%{?dist}
|
||||
Version: 1.0.5.0
|
||||
# can only be reset when all subpkgs bumped
|
||||
Release: 23%{?dist}
|
||||
Summary: Snap web framework core library
|
||||
|
||||
License: BSD
|
||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
||||
License: BSD-3-Clause
|
||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||
# Begin cabal-rpm sources:
|
||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||
Source1: https://hackage.haskell.org/package/%{readable}/%{readable}.tar.gz
|
||||
Source2: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
||||
# End cabal-rpm sources
|
||||
Patch0: snap-core-0.9.2.2-portable-flag.patch
|
||||
Patch1: snap-core-parseTime.patch
|
||||
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
# Begin cabal-rpm deps:
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros-extra
|
||||
BuildRequires: ghc-HUnit-devel
|
||||
BuildRequires: ghc-MonadCatchIO-transformers-devel
|
||||
BuildRequires: ghc-attoparsec-devel
|
||||
BuildRequires: ghc-attoparsec-enumerator-devel
|
||||
BuildRequires: ghc-blaze-builder-devel
|
||||
BuildRequires: ghc-blaze-builder-enumerator-devel
|
||||
BuildRequires: ghc-base-devel
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-case-insensitive-devel
|
||||
BuildRequires: ghc-containers-devel
|
||||
BuildRequires: ghc-deepseq-devel
|
||||
BuildRequires: ghc-directory-devel
|
||||
BuildRequires: ghc-enumerator-devel
|
||||
BuildRequires: ghc-filepath-devel
|
||||
BuildRequires: ghc-hashable-devel
|
||||
BuildRequires: ghc-io-streams-devel
|
||||
BuildRequires: ghc-lifted-base-devel
|
||||
BuildRequires: ghc-monad-control-devel
|
||||
BuildRequires: ghc-mtl-devel
|
||||
BuildRequires: ghc-old-locale-devel
|
||||
BuildRequires: ghc-network-devel
|
||||
BuildRequires: ghc-network-uri-devel
|
||||
BuildRequires: ghc-random-devel
|
||||
#BuildRequires: ghc-readable-devel
|
||||
BuildRequires: ghc-regex-posix-devel
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-time-devel
|
||||
BuildRequires: ghc-time-locale-compat-devel
|
||||
BuildRequires: ghc-transformers-devel
|
||||
BuildRequires: ghc-transformers-base-devel
|
||||
BuildRequires: ghc-unix-compat-devel
|
||||
BuildRequires: ghc-unordered-containers-devel
|
||||
BuildRequires: ghc-vector-devel
|
||||
BuildRequires: ghc-zlib-enum-devel
|
||||
%if %{with ghc_prof}
|
||||
BuildRequires: ghc-HUnit-prof
|
||||
BuildRequires: ghc-attoparsec-prof
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-bytestring-prof
|
||||
BuildRequires: ghc-case-insensitive-prof
|
||||
BuildRequires: ghc-containers-prof
|
||||
BuildRequires: ghc-directory-prof
|
||||
BuildRequires: ghc-filepath-prof
|
||||
BuildRequires: ghc-hashable-prof
|
||||
BuildRequires: ghc-io-streams-prof
|
||||
BuildRequires: ghc-lifted-base-prof
|
||||
BuildRequires: ghc-monad-control-prof
|
||||
BuildRequires: ghc-mtl-prof
|
||||
BuildRequires: ghc-network-prof
|
||||
BuildRequires: ghc-network-uri-prof
|
||||
BuildRequires: ghc-random-prof
|
||||
#BuildRequires: ghc-readable-prof
|
||||
BuildRequires: ghc-regex-posix-prof
|
||||
BuildRequires: ghc-text-prof
|
||||
BuildRequires: ghc-time-prof
|
||||
BuildRequires: ghc-time-locale-compat-prof
|
||||
BuildRequires: ghc-transformers-prof
|
||||
BuildRequires: ghc-transformers-base-prof
|
||||
BuildRequires: ghc-unix-compat-prof
|
||||
BuildRequires: ghc-unordered-containers-prof
|
||||
BuildRequires: ghc-vector-prof
|
||||
%endif
|
||||
# End cabal-rpm deps
|
||||
Patch1: snap-core-0.9.2.2-portable-flag.patch
|
||||
|
||||
%description
|
||||
Snap is a simple and fast web development framework and server written
|
||||
@ -49,53 +93,201 @@ the Snap framework.
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
||||
%if %{defined ghc_version}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires(post): ghc-compiler = %{ghc_version}
|
||||
Requires(postun): ghc-compiler = %{ghc_version}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%endif
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
|
||||
%if %{with haddock}
|
||||
%package doc
|
||||
Summary: Haskell %{pkg_name} library documentation
|
||||
BuildArch: noarch
|
||||
Requires: ghc-filesystem
|
||||
|
||||
%description doc
|
||||
This package provides the Haskell %{pkg_name} library documentation.
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with ghc_prof}
|
||||
%package prof
|
||||
Summary: Haskell %{pkg_name} profiling library
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
Supplements: (%{name}-devel and ghc-prof)
|
||||
|
||||
%description prof
|
||||
This package provides the Haskell %{pkg_name} profiling library.
|
||||
%endif
|
||||
|
||||
|
||||
%global main_version %{version}
|
||||
|
||||
%if %{defined ghclibdir}
|
||||
%ghc_lib_subpackage -l BSD-3-Clause %{readable}
|
||||
%endif
|
||||
|
||||
%global version %{main_version}
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pkg_name}-%{version}
|
||||
# Begin cabal-rpm setup:
|
||||
%setup -q -n %{pkgver} -a1
|
||||
dos2unix -k -n %{SOURCE2} %{pkg_name}.cabal
|
||||
# End cabal-rpm setup
|
||||
%patch0 -p1 -b .orig
|
||||
%patch1 -p1 -b .orig
|
||||
cabal-tweak-drop-dep bytestring-builder
|
||||
|
||||
(
|
||||
cd %{readable}
|
||||
cabal-tweak-dep-ver bytestring '< 0.11' '< 0.12'
|
||||
)
|
||||
|
||||
|
||||
%build
|
||||
# Begin cabal-rpm build:
|
||||
%ghc_libs_build %{subpkgs}
|
||||
%ghc_lib_build
|
||||
|
||||
|
||||
# requires pureMD5 and test-framework*
|
||||
#%%check
|
||||
#cd test
|
||||
#../Setup configure
|
||||
#../Setup build
|
||||
#./runTestsAndCoverage.sh
|
||||
# End cabal-rpm build
|
||||
|
||||
|
||||
%install
|
||||
# Begin cabal-rpm install
|
||||
%ghc_libs_install %{subpkgs}
|
||||
%ghc_lib_install
|
||||
|
||||
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
# End cabal-rpm install
|
||||
|
||||
|
||||
%files -f %{name}.files
|
||||
%doc LICENSE
|
||||
# Begin cabal-rpm files:
|
||||
%license LICENSE
|
||||
# End cabal-rpm files
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%doc CONTRIBUTORS README*.md
|
||||
%doc CONTRIBUTORS README.SNAP.md README.md
|
||||
|
||||
|
||||
%if %{with haddock}
|
||||
%files doc -f %{name}-doc.files
|
||||
%license LICENSE
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with ghc_prof}
|
||||
%files prof -f %{name}-prof.files
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 17 2023 Jens Petersen <petersen@redhat.com> - 1.0.5.0-23
|
||||
- refresh to cabal-rpm-2.1.0 with SPDX migration
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5.0-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue Jun 07 2022 Jens Petersen <petersen@redhat.com> - 1.0.5.0-21
|
||||
- https://hackage.haskell.org/package/snap-core-1.0.5.0/changelog
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.2-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 1.0.4.2-19
|
||||
- update to 1.0.4.2
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-16
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Fri Jul 17 2020 Jens Petersen <petersen@redhat.com> - 1.0.4.1-14
|
||||
- refresh to cabal-rpm-2.0.6
|
||||
|
||||
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 1.0.4.1-13
|
||||
- update to 1.0.4.1
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.0-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Jens Petersen <petersen@redhat.com> - 1.0.4.0-11
|
||||
- update to 1.0.4.0
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.2-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 1.0.3.2-9
|
||||
- refresh to cabal-rpm-0.13
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.2-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 1.0.3.2-7
|
||||
- update to 1.0.3.2
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.1-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 1.0.3.1-4
|
||||
- update to 1.0.3.1
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 1.0.1.0-1
|
||||
- update to 1.0.1.0
|
||||
- subpackage readable
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Feb 9 2017 Jens Petersen <petersen@redhat.com> - 0.9.8.0-3
|
||||
- build subpackage in main package dir
|
||||
|
||||
* Tue Sep 27 2016 Jens Petersen <petersen@redhat.com> - 0.9.8.0-2
|
||||
- rebuild
|
||||
|
||||
* Thu Aug 25 2016 Jens Petersen <petersen@redhat.com> - 0.9.8.0-1
|
||||
- update to 0.9.8.0
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Tue Jan 20 2015 Jens Petersen <petersen@redhat.com> - 0.9.6.4-1
|
||||
- update to 0.9.6.4
|
||||
|
||||
* Mon Sep 01 2014 Jens Petersen <petersen@redhat.com> - 0.9.6.3-1
|
||||
- update to 0.9.6.3
|
||||
- refresh to clrpm-0.8.11
|
||||
|
||||
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
|
324
snap-core-1.0.5.0.cabal
Normal file
324
snap-core-1.0.5.0.cabal
Normal file
@ -0,0 +1,324 @@
|
||||
name: snap-core
|
||||
version: 1.0.5.0
|
||||
x-revision: 3
|
||||
synopsis: Snap: A Haskell Web Framework (core interfaces and types)
|
||||
|
||||
description:
|
||||
Snap is a simple and fast web development framework and server written in
|
||||
Haskell. For more information or to download the latest version, you can
|
||||
visit the Snap project website at <http://snapframework.com/>.
|
||||
.
|
||||
This library contains the core definitions and types for the Snap framework,
|
||||
including:
|
||||
.
|
||||
1. Primitive types and functions for HTTP (requests, responses, cookies,
|
||||
post/query parameters, etc)
|
||||
.
|
||||
2. A monad for programming web handlers called \"Snap\", which allows:
|
||||
.
|
||||
* Stateful access to the HTTP request and response objects
|
||||
.
|
||||
* Monadic failure (i.e. MonadPlus/Alternative instances) for declining
|
||||
to handle requests and chaining handlers together
|
||||
.
|
||||
* Early termination of the computation if you know early what you want
|
||||
to return and want to prevent further monadic processing
|
||||
.
|
||||
/Quick start/: The 'Snap' monad and HTTP definitions are in "Snap.Core".
|
||||
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
author: Snap Framework Authors (see CONTRIBUTORS)
|
||||
maintainer: snap@snapframework.com
|
||||
build-type: Simple
|
||||
cabal-version: >= 1.10
|
||||
homepage: http://snapframework.com/
|
||||
bug-reports: https://github.com/snapframework/snap-core/issues
|
||||
category: Web, Snap, IO-Streams
|
||||
Tested-With: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3,
|
||||
GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5,
|
||||
GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.1
|
||||
|
||||
extra-source-files:
|
||||
test/TestSuite.hs,
|
||||
cbits/timefuncs.c,
|
||||
CONTRIBUTORS,
|
||||
extra/haddock.css,
|
||||
extra/hscolour.css,
|
||||
extra/logo.gif,
|
||||
haddock.sh,
|
||||
LICENSE,
|
||||
README.md,
|
||||
README.SNAP.md,
|
||||
Setup.hs,
|
||||
runTestsAndCoverage.sh,
|
||||
test/data/fileServe/foo.bin,
|
||||
test/data/fileServe/foo.bin.bin.bin,
|
||||
test/data/fileServe/foo.html,
|
||||
test/data/fileServe/foo.txt,
|
||||
test/data/fileServe/mydir1/index.txt,
|
||||
test/data/fileServe/mydir2/dir/foo.txt,
|
||||
test/data/fileServe/mydir2/foo.txt,
|
||||
test/data/fileServe/mydir3/altindex.html,
|
||||
test/Snap/Core/Tests.hs,
|
||||
test/Snap/Internal/Http/Types/Tests.hs,
|
||||
test/Snap/Internal/Parsing/Tests.hs,
|
||||
test/Snap/Internal/Routing/Tests.hs,
|
||||
test/Snap/Test/Common.hs,
|
||||
test/Snap/Types/Headers/Tests.hs,
|
||||
test/Snap/Util/FileServe/Tests.hs,
|
||||
test/Snap/Util/FileUploads/Tests.hs,
|
||||
test/Snap/Util/GZip/Tests.hs,
|
||||
test/Snap/Util/Proxy/Tests.hs
|
||||
|
||||
Flag portable
|
||||
Description: Compile in cross-platform mode. No platform-specific code or
|
||||
optimizations such as C routines will be used.
|
||||
Default: False
|
||||
|
||||
|
||||
Flag debug
|
||||
Description: Enable debug logging code. With this flag, Snap will
|
||||
test the DEBUG environment variable to decide whether to do
|
||||
logging, and this introduces a tiny amount of overhead
|
||||
(a call into a function pointer) because the calls to 'debug'
|
||||
cannot be inlined.
|
||||
|
||||
Default: False
|
||||
|
||||
|
||||
Flag network-uri
|
||||
Description: Get Network.URI from the network-uri package
|
||||
Default: True
|
||||
|
||||
|
||||
Library
|
||||
Default-language: Haskell2010
|
||||
hs-source-dirs: src
|
||||
|
||||
if !flag(debug)
|
||||
cpp-options: -DNODEBUG
|
||||
|
||||
if flag(portable) || os(windows)
|
||||
cpp-options: -DPORTABLE
|
||||
build-depends: time-locale-compat == 0.1.*
|
||||
else
|
||||
c-sources: cbits/timefuncs.c
|
||||
include-dirs: cbits
|
||||
build-depends: old-locale >= 1 && <2
|
||||
|
||||
exposed-modules:
|
||||
Snap.Core,
|
||||
Snap.Internal.Core,
|
||||
Snap.Internal.Debug,
|
||||
Snap.Internal.Http.Types,
|
||||
Snap.Internal.Parsing,
|
||||
Snap.Internal.Util.FileServe,
|
||||
Snap.Test,
|
||||
Snap.Types.Headers,
|
||||
Snap.Util.CORS,
|
||||
Snap.Util.FileServe,
|
||||
Snap.Util.FileUploads,
|
||||
Snap.Util.GZip,
|
||||
Snap.Util.Proxy
|
||||
|
||||
other-modules:
|
||||
Snap.Internal.Instances,
|
||||
Snap.Internal.Routing,
|
||||
Snap.Internal.Test.RequestBuilder,
|
||||
Snap.Internal.Test.Assertions,
|
||||
Snap.Internal.Util.FileUploads
|
||||
|
||||
|
||||
build-depends:
|
||||
HUnit >= 1.2 && < 2,
|
||||
attoparsec >= 0.12 && < 0.15,
|
||||
base >= 4 && < 5,
|
||||
bytestring >= 0.9 && < 0.12,
|
||||
bytestring-builder >= 0.10.4 && < 0.11,
|
||||
case-insensitive >= 1.1 && < 1.3,
|
||||
containers >= 0.3 && < 1.0,
|
||||
directory >= 1 && < 2,
|
||||
filepath >= 1.1 && < 2.0,
|
||||
lifted-base >= 0.1 && < 0.3,
|
||||
io-streams >= 1.3 && < 1.6,
|
||||
hashable >= 1.2.0.6 && < 1.5,
|
||||
monad-control >= 1.0 && < 1.1,
|
||||
mtl >= 2.0 && < 2.3,
|
||||
random >= 1 && < 2,
|
||||
readable >= 0.1 && < 0.4,
|
||||
regex-posix >= 0.95 && < 1,
|
||||
text >= 0.11 && < 2.1,
|
||||
time >= 1.0 && < 1.14,
|
||||
transformers >= 0.3 && < 0.6,
|
||||
transformers-base >= 0.4 && < 0.5,
|
||||
unix-compat >= 0.3 && < 0.7,
|
||||
-- allow unix-compat-0.6, see https://github.com/snapframework/snap-core/pull/317
|
||||
unordered-containers >= 0.1.4.3 && < 0.3,
|
||||
vector >= 0.6 && < 0.14
|
||||
|
||||
other-extensions:
|
||||
BangPatterns,
|
||||
CPP,
|
||||
DeriveDataTypeable,
|
||||
EmptyDataDecls,
|
||||
ExistentialQuantification,
|
||||
FlexibleContexts,
|
||||
FlexibleInstances,
|
||||
ForeignFunctionInterface,
|
||||
GeneralizedNewtypeDeriving,
|
||||
MultiParamTypeClasses,
|
||||
OverloadedStrings,
|
||||
OverloadedStrings,
|
||||
PackageImports,
|
||||
Rank2Types,
|
||||
ScopedTypeVariables,
|
||||
TypeSynonymInstances
|
||||
|
||||
if impl(ghc >= 6.12.0)
|
||||
ghc-options: -Wall -fwarn-tabs -fno-warn-unused-do-bind
|
||||
else
|
||||
ghc-options: -Wall -fwarn-tabs
|
||||
|
||||
-- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
|
||||
|
||||
if impl(ghc < 8.8)
|
||||
if impl(ghc >= 8.0)
|
||||
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
|
||||
else
|
||||
build-depends: fail == 4.9.*, semigroups >= 0.18 && < 0.20
|
||||
|
||||
if flag(network-uri)
|
||||
-- Leaving network-uri-2.7.0.0 out for now because it is marked deprecated
|
||||
build-depends: network-uri >= 2.6 && < 2.7,
|
||||
network >= 2.6 && < 3.2
|
||||
else
|
||||
build-depends: network-uri >= 2.5 && < 2.6,
|
||||
network >= 2.3 && < 2.6
|
||||
|
||||
if impl(ghc >= 7.6)
|
||||
build-depends: unix-compat >= 0.3
|
||||
else
|
||||
build-depends: unix-compat >= 0.3 && < 0.5.3
|
||||
|
||||
|
||||
Test-suite testsuite
|
||||
hs-source-dirs: src test
|
||||
Type: exitcode-stdio-1.0
|
||||
Main-is: TestSuite.hs
|
||||
Default-language: Haskell2010
|
||||
|
||||
if flag(portable) || os(windows)
|
||||
cpp-options: -DPORTABLE
|
||||
build-depends: time-locale-compat == 0.1.*
|
||||
else
|
||||
c-sources: cbits/timefuncs.c
|
||||
include-dirs: cbits
|
||||
build-depends: old-locale >= 1 && <2
|
||||
|
||||
other-modules:
|
||||
Snap.Core,
|
||||
Snap.Internal.Debug,
|
||||
Snap.Internal.Http.Types,
|
||||
Snap.Internal.Parsing,
|
||||
Snap.Test,
|
||||
Snap.Types.Headers,
|
||||
Snap.Util.CORS,
|
||||
Snap.Util.FileServe,
|
||||
Snap.Util.FileUploads,
|
||||
Snap.Util.GZip,
|
||||
Snap.Util.Proxy,
|
||||
Snap.Internal.Core,
|
||||
Snap.Internal.Instances,
|
||||
Snap.Internal.Routing,
|
||||
Snap.Internal.Test.RequestBuilder,
|
||||
Snap.Internal.Test.Assertions,
|
||||
Snap.Internal.Util.FileServe,
|
||||
Snap.Internal.Util.FileUploads,
|
||||
--------------------------------------------------------------------------
|
||||
Snap.Core.Tests,
|
||||
Snap.Internal.Http.Types.Tests,
|
||||
Snap.Internal.Parsing.Tests,
|
||||
Snap.Internal.Routing.Tests,
|
||||
Snap.Test.Common,
|
||||
Snap.Test.Tests,
|
||||
Snap.Types.Headers.Tests,
|
||||
Snap.Util.CORS.Tests,
|
||||
Snap.Util.FileServe.Tests,
|
||||
Snap.Util.FileUploads.Tests,
|
||||
Snap.Util.GZip.Tests,
|
||||
Snap.Util.Proxy.Tests
|
||||
|
||||
build-depends:
|
||||
HUnit,
|
||||
attoparsec,
|
||||
base,
|
||||
bytestring,
|
||||
bytestring-builder,
|
||||
case-insensitive,
|
||||
containers,
|
||||
directory,
|
||||
filepath,
|
||||
hashable,
|
||||
lifted-base,
|
||||
io-streams,
|
||||
monad-control,
|
||||
mtl,
|
||||
random,
|
||||
readable,
|
||||
regex-posix,
|
||||
text,
|
||||
time,
|
||||
transformers,
|
||||
transformers-base,
|
||||
unix-compat,
|
||||
unordered-containers,
|
||||
vector,
|
||||
--------------------------------------------------------------------------
|
||||
QuickCheck >= 2.3.0.2 && <3,
|
||||
deepseq >= 1.1 && < 1.5,
|
||||
parallel >= 3 && <4,
|
||||
test-framework >= 0.8.0.3 && <0.9,
|
||||
test-framework-hunit >= 0.2.7 && <0.4,
|
||||
test-framework-quickcheck2 >= 0.2.12.1 && <0.4,
|
||||
zlib >= 0.5 && <0.7
|
||||
|
||||
if flag(network-uri)
|
||||
build-depends: network-uri,
|
||||
network
|
||||
else
|
||||
build-depends: network-uri,
|
||||
network
|
||||
|
||||
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -threaded
|
||||
-fno-warn-unused-do-bind
|
||||
|
||||
-- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
|
||||
if impl(ghc < 8.8)
|
||||
if impl(ghc >= 8.0)
|
||||
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
|
||||
else
|
||||
build-depends: fail == 4.9.*, semigroups >= 0.18 && < 0.20
|
||||
|
||||
other-extensions:
|
||||
BangPatterns,
|
||||
CPP,
|
||||
DeriveDataTypeable,
|
||||
EmptyDataDecls,
|
||||
ExistentialQuantification,
|
||||
FlexibleContexts,
|
||||
FlexibleInstances,
|
||||
ForeignFunctionInterface,
|
||||
GeneralizedNewtypeDeriving,
|
||||
MagicHash,
|
||||
MultiParamTypeClasses,
|
||||
OverloadedStrings,
|
||||
Rank2Types,
|
||||
ScopedTypeVariables,
|
||||
StandaloneDeriving,
|
||||
TypeFamilies,
|
||||
TypeSynonymInstances
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: git://github.com/snapframework/snap-core.git
|
12
snap-core-parseTime.patch
Normal file
12
snap-core-parseTime.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up snap-core-1.0.5.0/src/Snap/Internal/Http/Types.hs~ snap-core-1.0.5.0/src/Snap/Internal/Http/Types.hs
|
||||
--- snap-core-1.0.5.0/src/Snap/Internal/Http/Types.hs~ 2001-09-09 09:46:40.000000000 +0800
|
||||
+++ snap-core-1.0.5.0/src/Snap/Internal/Http/Types.hs 2023-01-26 17:11:45.155960424 +0800
|
||||
@@ -1282,7 +1282,7 @@ formatLogTime ctime = do
|
||||
parseHttpTime = return . toCTime . prs . S.unpack
|
||||
where
|
||||
prs :: String -> Maybe UTCTime
|
||||
- prs = parseTime defaultTimeLocale "%a, %d %b %Y %H:%M:%S GMT"
|
||||
+ prs = parseTimeM True defaultTimeLocale "%a, %d %b %Y %H:%M:%S GMT"
|
||||
|
||||
toCTime :: Maybe UTCTime -> CTime
|
||||
toCTime (Just t) = fromInteger $ truncate $ utcTimeToPOSIXSeconds t
|
3
sources
3
sources
@ -1 +1,2 @@
|
||||
a4fb9ae2b77f341507d3c41fb080534c snap-core-0.9.4.0.tar.gz
|
||||
SHA512 (readable-0.3.1.tar.gz) = 237467c4b6dfef9fe090c53e45a1f4261e34fc947b16878575c2b1d2b93400a67678bfde3ad8500f82c56a4b87c5b45e561304c9936572a033d7b295740fb3be
|
||||
SHA512 (snap-core-1.0.5.0.tar.gz) = 4873382625715703531c7cbc61343a29cf7606384e64b92fb2026016018258f5c959ac7dccf0b1093eca39f5b750c19416afc691bec93161fa76ef79a1369b7b
|
||||
|
Loading…
Reference in New Issue
Block a user