File: sendfile.cabal

package info (click to toggle)
haskell-sendfile 0.7.11.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120 kB
  • sloc: haskell: 549; makefile: 5
file content (75 lines) | stat: -rw-r--r-- 2,466 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
name:          sendfile
version:       0.7.11.6
stability:     provisional
synopsis:      A portable sendfile library
description:   A library which exposes zero-copy sendfile functionality in a portable way. If a platform does not support sendfile, a fallback implementation in haskell is provided.
               .
               Currently supported platforms: Windows 2000+ (Native), Linux 2.6+ (Native), FreeBSD (Native), OS-X 10.5+ (Native), Everything else (Portable Haskell code).

license:       BSD3
license-file:  LICENSE
author:        Matthew Elder <matt@mattelder.org>
maintainer:    Jeremy Shaw <jeremy@n-heptane.com>
homepage:      https://github.com/Happstack/sendfile
category:      Network
build-type:    Simple
cabal-version: >= 1.10

tested-with:
  GHC == 9.8.1
  GHC == 9.6.3
  GHC == 9.4.7
  GHC == 9.2.8
  GHC == 9.0.2
  GHC == 8.10.7
  GHC == 8.8.4
  GHC == 8.6.5
  GHC == 8.4.4
  GHC == 8.2.2
  GHC == 8.0.2

flag portable
    description: Explicitly enable portable sendfile support (implemented in Haskell)
    default:     False

library
    default-language: Haskell2010
    hs-source-dirs:  src

    exposed-modules: Network.Socket.SendFile
                     Network.Socket.SendFile.Iter
                     Network.Socket.SendFile.Handle
                     Network.Socket.SendFile.Portable

    other-modules:   Network.Socket.SendFile.Internal
                     Network.Socket.SendFile.Util

    build-depends:   base       >= 3       && < 5,
                     bytestring >= 0.9.1.4 && < 0.13,
                     network    >= 2       && < 3.3

    ghc-options: -Wall

    if os(windows) && !flag(portable)
      cpp-options: -DWIN32_SENDFILE
      build-depends: Win32 >= 2.2.0.0 && < 2.3
      extra-libraries: mswsock
      other-modules: Network.Socket.SendFile.Win32
    else
      if os(linux) && !flag(portable)
        cpp-options: -DLINUX_SENDFILE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE.
        other-modules: Network.Socket.SendFile.Linux
      else
        if os(freebsd) && !flag(portable)
          cpp-options: -DFREEBSD_SENDFILE
          other-modules: Network.Socket.SendFile.FreeBSD
        else
          if os(darwin) && !flag(portable)
            cpp-options: -DDARWIN_SENDFILE
            other-modules: Network.Socket.SendFile.Darwin
          else
            cpp-options: -DPORTABLE_SENDFILE

source-repository head
    type:     git
    location: https://github.com/Happstack/sendfile.git